activity tag

30 questions


2 answers
82 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
109 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
160 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
149 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
150 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
109 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
105 views
0
What is the difference between FragmentActivity and Activity?

While working on Fragment, I used Activity and Fragment Activity alternately, and I want to know the difference between these two. Even if you change Activity to Fragment Activity, there is no change ...


1 answers
139 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...


2 answers
111 views
0
To check if Android Activity is currently running

ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);List proInfos = activityManager.getRunningAppProcesses();for (int i = 0; i < proInfos.size(); i++) { if (proIn...

2 years ago

1 answers
123 views
0
After pressing the home key on the activity screen, can I get the start screen when I re-enter the application?

I opened the ppt through Polaris application by clicking the button on B activity, which is the first screen of application a.In that state, press the Home key to go to the Home screen.At this time, I...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.