Questions regarding practical and advanced use of Intents, Intent Extras and Pending Intents to start an Activity, Service or to respond to a system or application event/notification via a BroadcastReceiver. (refer to info for basic familiarity)
0
votes
1answer
32 views
Read a pdf file from assets folder
public void DOCS(View btnDocs)
{
File fileBrochure = new File("android.resource://com.project.datastructure/assets/abc.pdf");
if (!fileBrochure.exists())
{
...
0
votes
0answers
4 views
Android zxing startActivityForResult immediately triggering onActivityResult
I am writing an android app to scan a barcode.
In my main activity I have the following code:
public static void getBarcode()
{
Intent intent = new ...
4
votes
1answer
12 views
How to find the call forwarding success or fail from onActivityResult()?
I have done a sample program to do unconditional call forwarding. This code sets the call forwarding as intended in the phone settings. But how can I find in my app that it successfully done it or ...
0
votes
0answers
16 views
correct steps to clear/delete data from internal storage in my case
I have a HashMap object which contains data. I store this HashMap object in my app's internal storage by:
myHashMapObject = myUtil.constructData(); // construct my HashMap data
String fileName = ...
-2
votes
0answers
13 views
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent {act = com.example.aerials.TabHost (has extras)}
I made a test application for a GSM signal
Scenarios such as the following:
1.User enter a project name and the name of the file (csv)
2.make TabHost activity.There are 3 tabs in a TabHost ...
0
votes
1answer
23 views
How to detect if any app has been upgraded from it's base version installed in device?
How Can I detect that any system app (Pre Installed) in android is upgraded from its base package?
As well as , I want to know that Does package contain at least one activity that handles the home ...
0
votes
4answers
38 views
Get data send by one activity to all activities
I have activity A and it calls activity B using Intent and putting some data in intent .Now I want to access data send by A in activity C.Can I do this?If Yes then how?
0
votes
1answer
19 views
How to pass the edit text value to adapter class
I want to pass the text value from below activity to TextAdapter class.
public class SecondActivity extends Activity {
EditText et1;
TextView t1,t2;
Button b1,b2;
String result;
Context context = ...
0
votes
1answer
20 views
How and when does the Android system send the ACTION_BATTERY_CHANGED sticky broadcast?
My goal is : when I call some function, I want to get the exact current battery status(level,voltage and etc..).
First I tried to do it in my application as shown on the website. Then I have found ...
8
votes
0answers
62 views
Few questions about custom permissions in Android
I am learning Android programming and I have kind of understood the concept of custom permission.
Based on my understanding this is how custom permissions works:
'Base app' can protect some of its ...
0
votes
0answers
6 views
Make a native call from WindowOrientationListner
I am facing a huge design issue. I have to provide some feedback from WindowOrientationListner to sensor HAL implemented in C++. I simply cannot get a clear picture of the way calls will flow. Help?
0
votes
1answer
14 views
Modified AOSP app launcher asks complete action using?
For a test, I've modified the AOSP "Music" app a little. In the manifest, I've made the following changes:
Change package name from "com.android.music" to "com.android.mymusic"
Change android:label ...
0
votes
1answer
15 views
Android java.lang.NoClassDefFoundError SherlockFragmentActivity
What i want to do:
I want to start a new SherlockFragmentActivity.(mysecondactivity).
public class mysecondactivity extends SherlockFragmentActivity
I am doing that from a normal Activity:
Intent ...
0
votes
1answer
28 views
How to monitor/sniff Intents systemwide?
I would like to monitor all the Intents running in an Android system.
I found an open-source application, IntentSniffer, in the following link.
...
1
vote
1answer
29 views
What is the best practice for versioning Android intent?
Let say I wrote an app that would respond to a particular custom intent but the behaviour surrounding that intent has changed from one app version to another.
Examples of changes include:
content ...