android

How to restore state after calling another activity ?

My android app is simple : a single activity contains a webview which shows user my website,in it I have a link which when user clicks on it ,the default sms program will be called. That all works well,but when I return from the sms ,It restarts the program(call the onCreate() method ) instead of returning to the origin state , how can ...

how to make different user application out of same source code.

i have made an android application that retrieves data from internet and performs further operation on that data. i have 4 urls for retrieving data. so i want to make 4 different applications for 4 different urls, each application receiving data from one of the URL. and i also want to run all four application on the single device. now ...

Receiving payments from Android Market

So I've recently been selling away on the Android Market. As of yet, nothing has appeared in my bank but after reading this, it appears that payments are supposed to appear in your bank after so many days after being charged from the users account. I was just wondering, is this every single sale? Separately appearing in your statement? ...

storing data in databases in android

i am having a program in which i am having 4 edittext name,age,contact,email. I am having 2 buttons save and view.I want a program of how to save values. I will be very thankful to you. ...

Issues with padding in RelativeLayout.

<View android:id="@+id/first_sep" android:layout_width="fill_parent" android:layout_height="1dip" android:paddingTop="100dip" android:layout_below="@id/calculate" android:background="#FFCCCCCC" /> I have this View in a RelativeLayout and the android:paddingTop property doesn't seem to work. Tried it with various values and ...

Multi Touch Events in android

Hi Here i want to solve the problem regarding multitouch in android. Is this possible to fire events of 2 buttons together if this is possible then how can i do this. please help regarding this. In my game application i want to do something after pressing two buttons together. How can i do this. ...

Android Textures appear unclear/fuzzy

Hi all I'm having trouble making my texture rendered correctly in my applications. the artwork I use is precise and already scaled and the right size but when I render it on phone suddenly my texture are not as clear/precise as the original artwork and I can't figure out why. has anybody had this issue before? ...

Exception after starting emulator : ddms null

Hello, After I start the emulator or AVD, in the eclipse Console window I see, [2010-10-21 14:03:46 - ddms]Exception during activity from Selector. [2010-10-21 14:03:46 - ddms]null java.lang.NullPointerException at com.android.ddmlib.Debugger.accept(Debugger.java:151) at com.android.ddmlib.Debugger.accept(Debugger.java:125) ...

Generating sine, square, triangle, sawtooth audio signals using Android's AudioTrack Class

Hi, My objective is to generate sine, square, triangle and sawtooth signals with Android's AudioTrack Class. I have made an attempt based on a tutorial. It works relatively well, although I'm not always sure how accurate the frequency generated corresponds with the frequency aimed at. I would like to make square, triangle etc. functi...

xml parsing in android

Possible Duplicate: xml parsing in android i am new to android . hows can i do parsing of the url http://simplyappointments.com/[email protected] can anyone help me in doing parsing. I will be very thankful to you. ...

Sending a C++ struct over UDP in Java

Hi all, I'm a C++ programmer and have a need to set up some UDP communications between a java android app and the C++ server running on a PC. I have structure that I need to receive on the PC that consists of the following: int int float Unfortunately I'm totally at a loss as to how I can do this with Java. I need to create a Datag...

Progress bar in Android

At the time of application installation i need to set the progress bar .How to create this? thanks in advance !! Note: I have the Android application.When i Install that application it will take some time to install at that time i wish to show some Progress Message.Is it Possible? ...

Android: how to install twice 1 app I write?

Hey, I need to have both earlier and later versions of App I write in Eclipse. What do I need to change (activity name?) to upload new version of the app to my phone without overwriting the old one? Any fast way to do it? ...

[Android] : How much time can be taken inside onDestory() before the activity is killed?

Hi, I know my question caption must have sounded really vague. But let me clear it out here. Say I have an android application over a middleware stack. In onCreate() of my activity, I initialise my middleware modules. In its onDestroy(), I must de-initialise the middleware. Now my middleware calls may take quite some time to process....

Java Protected method in an Interface?

Hi, i am trying to create a interface where its methods are protected or only visible to the class that implements it. The issue is this. i have two classes that do more or less the exact same thing but with different parameters and behaviour, but the actual steps it takes is identical. i was thinking ok i have two similar classes so l...

WebView how to force ContentHeight to update

I am using Load data as below, however getContentHeight never changes value. How can I force it to update. I have called this many times and the content height does not update till I manually click on the webVeiw. Any ideas? TIA private void UpdateMessageDisplay() { //loadData fires onPageFinished but without the new data brows...

Using Android libs on a desktop Java VM (like OpenJDK or OracleJDK)

I have never tried out the Android SDK and do not own an Android phone. However it seems that certain libraries are excellent, for example the text to speech lib. Is it possible to use this library with a desktop VM and did anybody here try this? ...

TextViews inside a loop

I want to display String Array values inside a for loop. I need to display the each value to each TextView. How can I create TextView dynamically corresponding to the size of Array? How can I specify ID for each one ? Please give me the solution... Thank You.. ...

Get string value in Android

There are some string resources in my android application and some helper-classes, which are only java-classes (no android classes). Is it possible to get string value of string resource variable from an java class?! Mur ...

find nearest Gps point to the user location form a list

hello to all. what i am trying to do: the user selects start and destination on a map and then from their coordinates i want to show the closest point location from a list of locations on map. i have a simple Sqlite database containing the longitude,latitude and name of the possible locations. i did some research and this is what i fou...