I tried invoking an android apk (AA1) from another apk (BB1) by raising intent. But BB1 starts starts AA1 in its own process space and it does not use the existing running process of AA1. How can I achieve
a. I want BB1 to use existing AA1 if it is already running.
b. If it is not already there, it should invoke AA1 as an independent ap...
Hy!!
I want to make a Whiteboard app, but i don't know how to make only some pixels black and let the others white.
...
Hi All!
Can anybody please clear me about the SharedPreferences in Android.
How can I set a condition of displaying a "Alert Message" only once when the Activity gets loaded initially in the Application?
How it is done by using SharedPreferences?
Thsnks,
John
...
I have been watching the Google I/O presentation by Virgil Dobjanschi on the correct way to implement REST on Android with services and content providers. http://code.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html
Based on the video I'm doing things the wrong way, which is not surprising given how hard the righ...
Typically after some network operation my android emulator starts emitting following logs continuously. It's making difficult to see logs of other programs in logcat. what could be issue. I'm performing some network operation in my application using AndroidHttpClient. But my program does not do anything related to image download.
What...
i have aplication with a very short lifespan.
in most cases a services pops a activity and the user reacts within a few seconds and dismisses the poped activity.
In this activity i show a mobclix advertisment.
But loading of this takes about 5 seconds, this is to long for my use.
So can i preload this ad in the service , and display it...
I have created an animation drawable and image view in my main game thread which is configured from the activity that handles the game thread (starting it etc.). My code in this handling activity looks like this:
mDistractionsThread.animation.addFrame(getResources().getDrawable(R.drawable.one), 1000);
mDistractionsThread...
I am planning to write a free version and a full version of a software. I want the information stored by the free version of the software to be accessible by the full version also (I don't want to use Content Providers). And I also want to make sure this data is not lost when the software is updated. How do I achieve this?
...
Is there a way by which we can capture the click of HOME and BACK button in the html file in android application using phonegap/jqtouch/javascript.
...
This question is related to this one. I have two Android projects inside Eclipse. One activity of one project calls an activity of the other project. This results in two independent applications being deployed on Android phone.
Is there any way to merge at build time (inside or outside Eclipse) both applications in only one so only an A...
Hi,
I am developing an application with a service which show the progress of a timer in the notification area (with a progress bar and a text). I have extracted below a simpler example with the same problem.
The code of the Service:
public class TNService extends Service {
private NotificationManager nm;
private Notification ...
Can someone help me with my Syntax/Methodology? I would like to set up a bunch of different views in a viewgroup. My code fails at the addView method.
Unfortunately, I can’t find jack for examples (which is how I learn) using the ViewGroup class online.
Thanks all.
public class TileView extends ViewGroup {
private TestClass mTestCla...
Hi all,
I am stuck in an peculiar scenario, while developin an app in android.
My app, downloads image from internet and populates the same in a thumbnail format in the application.
As i am not aware of the number of picture's/thumbnails at design time, i am creating image view controls dynamically by using the below mentioned code.
...
First, a bit of my background. I have been working on large web systems for over a decade, Android is something I have been looking at for the past two months; as you can imagine, the gap is quite wide :)
Looking at Android's Security and Permissions and Data Storage part of documentation, talking directly to developers, reading books a...
Hello all,
I am having an inner class which extends BroadcastReceiver.
And I have added following line to AndroidManifest.xml:
<receiver android:name="OuterClass$InnerClass android:enabled="true"/>
But I am getting error Unable to instantiate receiver org.example.test.OuterClass$InnerClass:
Whats the issue?
...
In my Android project, I've a image button whose background is set to some image. I want so set some text on the image button. How do i do that/
I want to set the text because localization would be used in the project....
...
Hi Friends,
Can anyone tell me what are the packages available in Android, and which package is frequently used and for what purpose they are used. Anybody please help me regarding in this.
Thanks in Advance,
Tilsan.
...
Hey guys!!
I have database table with the columns {Name, Time (UTC format) , Latitude, Longitude}
I display the table using a ListActivity with a SimpleCursorAdapter.
I would like that the column Time show the time in a human readable format (13-07-2010 10:40) rather than in UTC format (18190109089).
How can I specify that the values...
I want to insert a constant string into an EditText by the press of a button. The string should be inserted at the current position in the EditText.
If I use EditText.append the text gets inserted at the end of the EditText.
How can I do that? I couldn't find a suitable method.
...
I can play a video from the Internet by inserting the URL like below:
mPath = Uri.parse("http://commonsware.com/misc/test2.3gp");
mVid.setVideoURI(mPath);
mVid.requestFocus();
mVid.start();
But now I have a video in my raw folder so the path is res/raw/testing.3gp. The code below doesn't work, and I've tried some other ways too to ...