skip to Main Content

Android Studio – Error: have you declared this activity in your AndroidManifest.xml? when trying to intent a class

Here's my code for clicking the button from my class showInforActivity: btnRegister.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(showInfoActivity.this, InformationFragment.class); startActivity(intent); } }); Whenever I click the button I got error Unable to find…

VIEW QUESTION

Android Studio – Difficulty identifying outgoing and incoming calls (when app is open or closed)

When there are outgoing and incoming calls, toast should appear on the screen but it does not appear. Is the code incorrect? Manifast premissions: <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_CALL_LOG" /> Manifast (receiver): <receiver android:name=".model.CallReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE" />…

VIEW QUESTION

Android Studio – Hello everyone, I created an splash screen using Lottie animation and my problem is after the animation is completed, How do i change activity?

Here is my Lottie animation code: public class Splash extends AppCompatActivity { ImageView logo,splashImg; LottieAnimationView lottieAnimationView; TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_splash); logo = findViewById(R.id.logo); splashImg = findViewById(R.id.img); textView = findViewById(R.id.Motto); lottieAnimationView = findViewById(R.id.lottie); splashImg.animate().translationY(-2800).setDuration(1000).setStartDelay(4000);…

VIEW QUESTION
Back To Top
Search