Questions tagged as 'android-intent'

1
answer

How can I solve this Intent problem?

In my program I have two activity, the first one calls the second using Intent, the second one returns some String variables and returns to the first one also using Intent, the problem is that I have an error when starting the 1st activity becau...
asked by 26.11.2018 / 19:37
2
answers

Error: NullPointerException to null object reference (Android)

I have a project in Android in which I send the value of a variable from Adapter to Activity like this: public void onClick(View v) { Intent inicioIntent = new Intent(context, Activity2.class); inicioIntent.putExtra("idU",...
asked by 13.09.2018 / 19:48
1
answer

Avoid going back to the previous screen

I'm doing a game in Android Studio and at a certain moment I'm going to another screen. How can I say "block" that new screen to avoid going back? Thanks!     
asked by 10.03.2018 / 18:37
2
answers

How can I change that instead of showing a menu, just show me another layout

I charge the menu the onCreateMenu that contains in a ListView are some telephone contacts , that when you press them (Item) they take me to a activity called Details. public class MainActivity extends Activity implements...
asked by 09.11.2017 / 03:26
1
answer

How to catch a url between Android Intents

I have a native android app with 2 Activities. 1.- Main.java: contains a webview where a web POS is displayed with url: www.posWeb.com 2.- Camera.java: this activity sends a barcode reader to scan the products that are going to be searched...
asked by 18.08.2017 / 03:04
2
answers

help with sending data to two activitys

My problem is that I do not know how to direct the data to two activitys of the selected item ... I am a newbie and I was testing with the if and it seems to be wrong because I can not select the other items. viewHolder.setOnClickListener(new...
asked by 29.11.2018 / 16:54
0
answers

Retrieve status when calling the new Intent

I am developing an app to play music in which I have included a notification with the playback controls which allows you to continue listening to the music even if you close the application. The notification allows you to return to the app by cl...
asked by 05.11.2018 / 18:06
2
answers

I have a problem with trying to open another activity

Good evening friends puej the truth I do not know what is wrong I'm drowning in a small problem because I tell you that an attempt to open another activity does not work for me not that it is wrong but the other intents if: here the code: @Ove...
asked by 26.10.2018 / 05:18
1
answer

How to implement SharedReferences in Android Studio?

Good day, I have a code model using intent in the following way and I want to pass it, I do not know how to use SharedReferences unidades=(EditText)findViewById(R.id.editTextunidades); Intent miinten = new Intent(Calculate.this...
asked by 20.10.2018 / 20:41
2
answers

Error in android attempt

I have created a very simple attempt that by clicking on a button with onClick() leads to another Activity : public void ejecutarInfo(View view){ Intent intento = new Intent(this, InfoClass.class); startActivit...
asked by 15.10.2018 / 21:12