android

How can I create custom android virtual device, using my own images?

How can I create custom android virtual device, using my own images? I've been trying to change default *.img-s on my own in sdk\platforms\android\images but it didn't help - the emulator didn't launch or frozen. Thank's in advance! ...

Android keeps caching my intents Extras, how to declare a pending intent that keeps fresh extras?

A few days ago I was struggling to find a way to use custom intents for my alarms. Although I got clear answer that I have to customize the Intents based on some unique ID eg. setAction() still have some problems. I define a PendingIntent this way: Intent intent = new Intent(this, viewContactQuick.class); intent.setAction("newmessage"+...

Setting textview text from a string resource held in an array problem

This should be simple, but driving my crazy. I have the following in my layout, not problems. <TextView android:id="@+id/birdinfo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#00009c" android:text="The Robin is a popular bird" /> Then I have these arrays which are se...

Sqlite database security

Hi, I'm developing Application which storing user sensitive data. My issue is using other application user can view that store data. Then i need to provide better security for data. is their any way to provide better security for sqlite database and table? I'm really appreciate your comments. Thanks, Chandana ...

Android: can not import org.apache.harmony.xml.ExpatReader

I need to parse an UTF-8 encoded input stream, so I think the most appropriate method is to use XMLReader reader = new ExpatReader(); InputSource source = new InputSource(in); source.setEncoding(encoding.expatName); reader.parse(source); For that I need to import org.apache.harmony.xml.ExpatReader but I cannot figure ...

Geting "Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43d98340" in Android

Hi Guys, When I am going from one intent to another intent, I am getting this warning : "Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43d98340" and the view stays on the old intent. the code is : btnCatalog.setOnClickListener(new OnClickListener() { private ProgressDialog ...

Geo tagging in android

Camera.Parameters p = mCamera.getParameters(); p.setGpsLatitude(-81.626470); p.setGpsLongitude(30.084970); java.util.Date dt=new java.util.Date(); p.setGpsTimestamp(dt.getTime()); mCamera.setParameters(p); The code above does not seem to geo tag the image. ...

Animation/dragging of an object in Android

I have a custom view (extends View) that is going to be a game board. What I'd like to do now is create an object (well, a bunch of them, but I can start with one) at a specific location on the board and then have the user be able to move it around by dragging it. I have the board view down, but am at a loss on how to code up the "pieces...

How to Generate HMAC MD5 In Android?

I am new in this Field!I have this Message and Key also i want HMAC MD5 using this two so how it is possible if possible then give some example or sample code of this.The Given link display the overall functionality i want such kind of code.Please help me. Messgae = POSTuserMon,28Jun201010:18:33GMT7FF4471B-13C0-5A9F-BB7B-7309F1AB7F08 k...

Genrate HMAC MD5 in Android

i am new to HMAC MD5 How to Generate HMAC MD5 in Anroid i have message and secrete key But i dont know how to do in Android Any sample Code would be do the job for me.. ...

How to filter a listview with and edit box - Android

I am making a Glossary of legal terms and I would like to be able to narrow the results in the list by typing in an edit box, I have tried finding a solution but none of them have worked for me. ...

Are there any tools to convert an Iphone localized string file to a string resources file that can be used in Android?

I have the localized strings file that is used in the Iphone app that I work on to port to Android. Are there any tools that go through the file taken from the xcode project and build the xml needed to use the strings in android? As the apple file is a simple key value file is there a tool that converts string in this format "key"=...

OpenGL doesn't render on Droid / Milestone

So, I'm writing a game engine. I have a little example (see http://qrcode.kaywa.com/img.php?s=8&amp;d=http://rokonandroid.com/rd.apk), that seems to work fine on every device except Droid / Milestone. It displays a blue screen (due to glClearColor being set to blue), and nothing more. I have tried with/without textures, and with/witho...

reordering of listview items by drag and drop using android

How to drag and drop items in Listview for reordering in android? ...

How to convert date saved in String format to Date format

Hi, I am trying to convert string to date, but getting error. I am getting date using : URL xmlUrl = new URL(path); URLConnection urlconn = xmlUrl.openConnection(); Date = new Date(urlconn.getLastModified()); and then I ma saving this date in a file , which saves in the following format : Mon Jun 21 16:31:24 Asia/Karachi 2010 a...

BitmapFactory.decodeByteArray(data, offset, length) return null value.

where data is array of byte(pixel data) which i have retrieved from another container file.But I am not sure whether it contain only jpeg pixel data, or pixel data + header part. How to find out whether data contain both( header part + pixel data) or not? Or what is wrong with that data? ...

Android Prompt Box

I am new to writing Android Applications, and I need to be able to implement the following functionality. When a user clicks a specific button, I want a customized "prompt" box to appear, containing several fields (a textfield, a password field, and a checkbox field). I would also be nice if I could add an image inside this box. How wou...

Intercept incoming calls

Hi folks, You can intercept a call on Android? ...

Android Service interacting with multiple activities

I'm trying to refactor/redesign an Android app. Currently, I've one UI activity (Activity 1) that creates a DataThread. This thread is responsible for network I/O and interacts (provides data) with the UI activity via a handler. Now, I want to add another activity (a new UI screen with Video) - Activity 2. Activity 1 is still the main ...

android repeater-like functionality

is there any type of 'repeater' type functionality in android? I have a relative layout (inside a row in a listview) and inside that I'd like to have a series of TextViews be displayed one after the other (as if they are child rows in the listview row). The issue is that the number of those "child rows" will vary. is there any way to ...