I used this code and it was working but now it does not. I need any intent to open a url in Facebook directly. This post helped me, Open Facebook page from Android app? Answer Open facebook url Add query in manifest
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 to get all the apps that can open file to arrayList
how i can get all the apps that can open file to ArrayList? i am using this code to open file:- preview Answer intead of calling startActivity just use queryIntentActivities you can also try with MATCH_ALL flag or whatever you need. more to inspect in DOC
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
Intent with multiple if statements
I am learning the concept of Intents and the application I am working on crashes when I try to go from any other intent that’s not “Arabica” intent, the intent object is fired on onItemSelectedListener on a spinner. I want to make it so that when the user selects the other options on the spinner it will execute that intent
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
AndroidStudio: java. How can i return an arraylist to main activity?
I tried this way: The application stops working on setResult only when the arraylist is not empty. SECONDARY ACTIVITY CATEGORIES INITIALIZATION: MAIN ACTIVITY in the method onActivityResult: Answer buy_categories2 must be Serializable
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