Skip to content
Advertisement

Tag: android-intent

Using NFC to open my application causes a separate version of it to be opened instead of the one that was open when RFID was found

I am attempting to create an application centered around NFC paired with multiple RFIDs. For this reason I am programming the RFIDs with NDefRecords that open a specific activity in my application. The NdefMessage doing this is as follows And my manifest for the activity I am opening uses the following intent filter: The code that is writing to the

How do I pass ArrayLists to another activity, modify it, and return it back to use?

I’m trying to create a login/register part of a project, and I’m having trouble with passing the sign-up information back to the login activity. I initialized username_info, password_info, and name_info in MainActivity, and I want to send it to SignUpActivity through Intent. After values are added in the other activity, it’s sent back like this (the arraylists have the same

From Adapter into Intent

I have an Adapter for a ListView I have. Every item in that list has a Button, when the user presses that Button, it will go into another activity with info about that specific item’s info (info is gotten from it’s associated object). How can I make it so when I press the Button, I will make a new Intent

On Activity App Bar back pressed go to the parent activity with the fragment it was called

I’m having an issue that maybe is happening to other community members and I wanted to ask if somebody knows the solution. I have an app with these Two activities (MainActivity, UserProfileActivity). The MainActivity contains a NavigationDrawer that navigates through fragments. So here it’s the problem. While navigating in the second fragment and pressing a button in that fragment. It

How to pass a list of objects from one activity to another using parcelable

I want to pass the list of itemselected or ItemsInCart to another activity. My Items Model implements parcelable. The problem is am getting error below in my SecondActivity class. Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void androidx.recyclerview.widget.RecyclerView.setLayoutManager(androidx.recyclerview.widget.RecyclerView$LayoutManager)’ on a null object reference at com.example.Project1.SecondActivity.onCreate(SecondActivity.java:59) Below is the code Model Item; } First Activity; The list that i want

How to share image via intent in android 10

I’m fetching an image from a URL as a bitmap using glide, and onResourceReady() I’m trying to share the image via intent, but I’m getting an exception. I’m using Android 30. My method for providing file URI. Source MY Error I also tried using the IntentShare Library But there I was getting an error that content Uri is needed. Answer

Advertisement