start-activity Questions
3
Solved
I have application A defined as below:
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="com.example.MyExampleActivity"
android:label=...
Product asked 5/2, 2010 at 18:46
13
Solved
I am developing an android app and I need to send a message to specific contact from WhatsApp.
I tried this code:
Uri mUri = Uri.parse("smsto:+999999999");
Intent mIntent = new Intent(Intent.ACTIO...
Cardialgia asked 31/3, 2016 at 22:25
9
Solved
I am writing an application where Activity A launches Activity B using
startActivityForResult(intent, -101);
but when called, it responded back with following error log:
E/AndroidRuntime( 1708...
Alkahest asked 27/8, 2014 at 14:27
6
Solved
I would like to add this to another list of questions about resultCode == 0 and requestCode == 0.
Here is the synopsis:
NoteActivity calls NoteSettingsActivity using startActivityForResult().
I h...
Phane asked 30/4, 2015 at 15:44
3
Solved
I updated my OS version to android 10 last night, and since then the startActivity function inside the broadcast receiver is doing nothing. This is how I try to start the activity based on the answ...
Villiform asked 7/9, 2019 at 11:22
2
Solved
I'm checking my app with the Android Q [beta 6] in order to add all the required changes to be fully-compatible with the last SO. However, I found out that I am using a Receiver to start an Activit...
Ashaashamed asked 14/8, 2019 at 11:25
3
I'm trying to bring my app from background to foreground. In onHandleIntent() of my custom IntentService class, I have:
Intent intent = new Intent();
intent.setClass(getApplicationContext(), MainA...
Slugabed asked 14/10, 2015 at 19:45
2
Solved
I'm taking photo from dialog fragment. And also I need something like startActivityForResult(takePictureIntent, actionCode);
@Override
public void onActivityResult(int requestCode, int resultCod...
Innovation asked 21/3, 2014 at 11:50
2
Solved
As you may see that
this@MainActivity or MainActivity@this
is valid while starting activity in kotlin. I tried to find out answer but I did not found anything. Can anyone know about exact differenc...
Elwina asked 9/1, 2019 at 8:23
4
I am trying to open an activity from the launcher activity when an FCM-generated notification gets clicked. The startActivity function does nothing even when the log statement written above gets ex...
Anabiosis asked 28/11, 2016 at 10:43
9
When I move from one Activity to another Activity, a white screen is displayed for 2 seconds. I am using this code:
Intent intent = new Intent(this, SecondActivity.class);
startActivity(intent);
...
Ricarda asked 16/10, 2015 at 4:18
2
Solved
I need to pass some data between two activities MainActivity and ChildActivity. Button click on MainActivity should open ChildActivity and send event with data. I have singleton:
Subject<Objec...
Catlike asked 21/9, 2016 at 14:59
3
Solved
I have started a new activity of itself by calling start activity. But after the activity get started, in the method onNewIntent the finish() is not get called!!.
WebActivity.java
@Override
prote...
Burdock asked 13/2, 2017 at 6:5
1
I am creating Two activities as below now when click on button from MainActivity it shows SecondActivity and on click button from SecondActivity shows MainActivity normally but now on click soft ba...
Albina asked 14/8, 2014 at 11:2
2
Solved
I am trying to get an image directly from the Google Photos app. I wish to bypass the app chooser usually started when using Intent.ACTION_GET_CONTENT and instead go directly to Google Photos if th...
Np asked 1/9, 2015 at 22:1
1
Solved
I'm following the answer https://mcmap.net/q/167632/-how-to-call-android-contacts-list to add a contact picker to my app.
The problem is that onActivityResult is immediately invoked with the corre...
Trela asked 18/9, 2015 at 5:31
2
Solved
I have an Activity that calls another Activity, that calls some other Activities.
I send to the last Activity to get a result, and then i send back the result to the fist Activity.
The flow is som...
Renee asked 1/12, 2014 at 9:14
1
I am trying to test an activity in a module. I am just trying to start this activity in the test method, but I always have a AssertionFailedError. I searched the web for this issue but could not fi...
Tosspot asked 4/7, 2014 at 14:57
0
I have simple app with widget. Widget works good for some time. After open and close another app (e.g. some game for the most cases) my widget stops responding to clicks. Do you know how to fix wid...
Decanter asked 13/4, 2015 at 5:38
1
Solved
This issue is happening on Android 5.0 Lollipop only. I dont have access to a phone with Lollipop, I have developed the code in Genymotion Android Emulator but this issue does not happen in the emu...
Fp asked 10/1, 2015 at 8:17
1
It is easy to open the Android Contact App to show all contacts and pick one of them:
in Activity:
private int PICK_CONTACT = 853456;
// ...
// open contact list
void openContactPicker() {
...
Rewarding asked 27/4, 2013 at 13:45
3
Searching high and low has yielded no result for my problem. Hence I'm finally posting to plead for some assistance.
I have two app, both written by me. App A launches App B, passing in parameters...
Courtland asked 12/8, 2012 at 2:32
1
Solved
My app is trying to install an APK.
Intent installIntent = new Intent(Intent.ACTION_INSTALL_PACKAGE);
installIntent.setData(Uri.fromFile(new File(pathToApk)));
installIntent.putExtra(Intent.EXTRA_...
Cultured asked 7/11, 2013 at 0:19
2
As the share pop up appears, I shared the content on WhatsApp successfully, but still returns RESULT_CANCELLED. Same result when I send a email using Gmail.
Calling Sharing intent, ACTION_SEND wit...
Cipolin asked 18/5, 2013 at 7:59
2
Solved
Hi All I want to open the "Text-To-Speech output" fragment of Settings from my application. I think first I need to open the settings activity and then its fragment. I tried setting the ComponentNa...
Jagatai asked 30/5, 2013 at 12:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.