Category "android-activity"

Should I turn my Activities into Fragments?

I went to the YouTube Academy for Kotlin Android Development and created a semi complex app with Google FireBase, I have hit a roadblock in some code using an E

How to Pass a List of Objects from activity A to activity B in Kotlin?

I have 2 Activities, I want to pass an arraylist of an Object and show it on a ListView Activity A: btnGuardar.setOnClickListener{ i

Data binding: Missing required view with ID

I create an app using binding and I get an error that I couldn't solve. The error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exam

Data binding: Missing required view with ID

I create an app using binding and I get an error that I couldn't solve. The error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exam

how to get the Context Inside the FirebaseMessagingService?

I have an app and It Uses FCM for sending and receiving messages. I have implemented every thing as suggested in docs. Now on generation of token I want to sa

Popup menu goes out of the screen

Popup menu on inflate goes out of the screen for this activity, works fine for other Extending custom AppCompatActivity Styles: <style name="AppTheme.Ac

How can I use an API to implement a search functionality on Android?

I am attempting to create a search functionality in an android application and have been doing research on how I can accomplish this while taking in data from a

Android: How to hide or close topmost activity?

In my app, I need to start the built-in camera application using the action INTENT_ACTION_STILL_IMAGE_CAMERA. The reason of this action is that in this case, I

Duplicate Classes to handle app flow (with explicit intents)

I have three different options in my app that allow the user through several of the same classes but at different times, ie 1) Sharing with friend: MainClass

Activity Conditional Flow

I have a movie ticket booking app. My initial activity is the login activity where there is a "continue as guest" option in case he doesn't want to sign in or r

Communication between BroadcastReceiver and Activity - android

I have a broadcast receiver in my app which is fired every time the user gets an incoming call. Now, when it happens, I need the broadcast receiver to invoke a

how to call function from other fragment class

I'm trying to call this function public void arrowClick() is inside my main fragment public class CounterMain extends Fragment implements View.OnClickListen

How do I maintain the Immersive Mode in Dialogs?

How do I maintain the new Immersive Mode when my activities display a custom Dialog? I am using the code below to maintain the Immersive Mode in Dialogs, but w

When using Immersive Mode with dialogs, nav. bar reappears and resizes my layout

I'm using Immersive Mode in my app when it's running on Android 4.4+. (http://developer.android.com/training/system-ui/immersive.html) My activity indeed shows

Error while adding Galaxy Store review broadcast

I publish my apps and games on Galaxy Store some apps are here in this LINK Using official (document)[https://developer.samsung.com/galaxy-store/customer-review

In Activity.onCreate(), why does Intent.getExtras() sometimes return null?

This was probably a false alarm, see my own answer. Original question below: An activity has a button that takes the user to another activity. To launch the ne

Full managing of fragments flow in Android

I have a special flow of fragments in my app, so I need to be able to switch to any fragment, while keeping fragments in memory whenever possible (so if it's ti

Android gallery with caption

I have been following the gallery example here: http://developer.android.com/resources/tutorials/views/hello-gallery.html and adding a text to show up under the

Android Game Activity Flow - Back to Start

I am looking for the best way in which you would setup navigation in an Android game; a best practice for Android Game Activity Navigation. I have the following