android-activity tag

13 questions


2 answers
67 views
0
Prevent Android Activity from Starting

I want to filter whether I want to start Activity or not.I can't finish with onCreate, and I want to prevent activities from starting before that.Instead of finishing in an instant, you can pre-filter...


1 answers
93 views
0
Attribute error I don't know the reason for red letters, please let me know.

<?xml version=1.0 encoding=utf=8?><LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=match_parent android:backgroun...


1 answers
132 views
0
I'm trying to restart my activities on Android

public static void restartActivity(Activity act){ Intent intent=new Intent(); intent.setClass(act, act.getClass()); act.startActivity(intent); act.finish();}This is the restart method that I creat...


1 answers
130 views
0
What should I do if I want to kill all previously generated activities?

The situation is... There are 6 activities including Home, Screen 1 to Screen 5. When you launch the app, you start with Home exists and ->screen1->screen2->screen3->...Go to ->screen5....


1 answers
130 views
0
How do I change the startup activity of an application?

I'm making an app, but I'd like to add other activities such as a login screen. And I want to change it into a starting activityHow can we do that?


1 answers
96 views
0
How to give parameters when you run an activity

Hello, I'm a beginner android developer. I'd like to run an activity that explains the game. I want to include the game ID in that information, but how do I deliver the game ID to the activity? If you...


1 answers
120 views
0
How to Call Activity in Android Service

public class LocationService extends Service {@Override public void onStart(Intent intent, int startId) { super.onStart(intent, startId); startActivity(new Intent(this, activity.class)); }}We create...


1 answers
102 views
0
I want to start a new activity when I click a button on Android, what should I do?

How do I display a new activity when I click the activity button on the Android app?Also, will it be possible to deliver data between these two activities then?


1 answers
153 views
0
I want to make a transparent activity

I want to make a transparent activity on top of other activities What do I do?


1 answers
67 views
0
To call another activity by using an int in an application.

I have two activities in my project. If you click the first button, the activity starts. If you click the button,I'm trying to end the activity, but nothing happens when I click the button in the firs...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.