id tag

1618 questions


1 answers
105 views
0
What is the difference between the /res directory and the /assets directory on Android?

I understand that the files in the resource folder can be read in R.class, and in the Asset folder, they're written in a file system-like form.What is the exact use of the two?

2 years ago

1 answers
140 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
103 views
0
How do I add a dividing line between items in RecyclerView?

<ListView android:id=@+id/activity_home_list_view android:layout_width=match_parent android:layout_height=match_parent android:divider=@android:color/transparent android:dividerHeight=8dp/>You ...


1 answers
102 views
0
Is getResources().getDrawable() deprecated in API22?

From Android API22, getResources().getDrawable() has been deprecated, so do I just need to use getDrawable()? What's changed?


1 answers
116 views
0
Can you make only the first letter in EditText capitalize?

I'm making an app that shows my personal to-do list. They're all making it well, but there's one small problem. When I try to add a list, I show EditText in the dialog, but the problem is that when I ...


1 answers
72 views
0
To set a bitmap with a resource

bm = BitmapFactory.decodeResource(null, R.id.image);Is this how I set the bitmap in the resource?

2 years ago

1 answers
149 views
0
How to get a bitmap from ImageView

ImageView image = R.findViewById(R.id.imageView);image.setImageBitmap(someBitmap);How do I get a bitmap from the image view when given like this?


1 answers
141 views
0
Is there any way to block the back button on Android?

Is there any way to block the back button while logging out of the application?

2 years ago

1 answers
102 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
90 views
0
How do I prevent Android's EditText from being edited?

How do I prevent EditText from being edited?

« - 58 - »

© 2024 OneMinuteCode. All rights reserved.