android

Invoking android apk from another apk

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...

Whiteboard Making

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. ...

What is SharedPreferences in Android?

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 ...

What is a binder callback on Android?

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...

Android emulator with 2.2 AVD continuously generates skia logs

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...

preloading ad view

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...

Animation Drawable does not animate in android?

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...

Retaining persistent information on different versions of the software.

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? ...

Capturing native button clicks in Android phone in javscript

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. ...

Is is possible at build time to merge Android applications?

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...

Huge memory usage in notifications

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 ...

Android - How to setup child views inside a viewgroup

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...

Dynamically loading images

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. ...

How secure are SQLite and SharedPreferences files on Android?

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...

Receiver as inner class in Android

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? ...

How to set text of Image Button (Android)?

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.... ...

what are the packages in Android?

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. ...

Changing values from Cursor using SimpleCursorAdapter

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...

Android: Insert text into EditText at current position

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. ...

Trying to play video from raw folder (VideoView)

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 ...