android

Android programming book

Hey guys, I'm an iPhone, Mac and web developer and I wanna learn how to program for the Android. My Java knowledge is 0. Any book recommendations? ...

Destroy Android application

I have developed an application which is working fine. In that i have used some static variables and also set Application level variables. My problem is that even after setting finish() on each activity, application is showing in Running mode. After closing the application, when i start the application after sometime, it will set the l...

How do I access the views inside the layout when I reuse it multiple times?

I have read the Android UI trick 2 on Android developers, which tells people how to include a layout in another layout file multiple times, and give these included layouts different id. However, the sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this: ...

How to use Android with AMFPHP gateway

I have a amfphp gateway and i would like to use for android developpement. Anyone know if a amfcaller already exist ? ...

Android- SDCard

I am currently working on Windows with android 2.2. I am trying to create an SDCard for the Emulator. I have created Sdcard.iso. I am trying to pull songs and videos into it. But I do no how to do it. ...

Android View losing data on scroll

I have an application made up of an ExpandableList, whose children are data collection widgets like CheckBoxes and EditText. Once data is entered, it is immediately lost when the list is scrolled. What may be the problem or solution? Thanks. ...

Android: Custom button OnClickListener is not getting invoked

I have a custom button, on which I am capturing its onTouchEvent. public class CustomNumber extends ToggleButton { boolean drawGlow = false; float glowX = 0; float glowY = 0; float radius = 30; public CustomNumber(Context context) { super(context); } public CustomNumber(Context context, AttributeSet attrs) { super(context, ...

Android - Get value from HashMap

I have tried to search on HashMap in Android, but getting problem: Consider this example: HashMap<String, String> meMap=new HashMap<String, String>(); meMap.put("Color1","Red"); meMap.put("Color2","Blue"); meMap.put("Color3","Green"); meMap.put("Color4","White"); now i want to iterate it and get the value of eac...

Android: Measure/detect covered area by a finger touch on screen (NOT only touch coordinates)

Hi I would like to get access to the area covered by a finger for each touch event on an Android. Every touch event will result in a coordinate pair X and Y independent of how big the finger and consequently the touch area is that triggered the event. I was wondering if there is a way to get the area data which triggered the touch eve...

synchronize/share one application on several android phones

Here is my issue : I have 2 phones and I don't want to pay twice for an application on the market. Is there a way to share an application I have downloaded and payed for, once, onto the other phone? ...

Android: Gallery within a ListItem?

Hi, I have a class that extends ListActivity and also an have a ArrayAdaptor that populates data loaded from the internet. I would like to have the first list item be a menu that displays add as favorites and use the Gallery for this. Every time I call this I get a NULL EXCEPTION: public class ShowWeatherActivity extends ListActivity {...

Decoding qr code from image stored on the phone with Zxing (on Android phone)

Hi! I have an app that receives qr code from the server. I want to decode it (not with intent and camera) and display the text it contains in my app. I have alredy done this in Java SE with jars from zxing with this code: private class QRCodeDecoder { public String decode(File imageFile) { BufferedImage image; ...

Android: open file in byte array representation with Intents

Hi guys, I'm a litte bit desperate to open a file with intent so that android can decide which application should handle this file. My Problem is that i have only the file as an Base64 representation which i decode to an byte Array Now i want to send an intent and open that file. I try to do save it in the internal storage and open th...

Change title name in Twitter API using Android?

When you use Twitter API and develop your first simple Twitter client, and post a comment to Twitter - it says "from API". Using the Twitter web it says "from the web". Using Siesmic it says "from Seesmic". How do you the set the application name/title so it shows up like "from myApp" using Android? Thanx for listening! Answers will be...

[Android] start application knowing package name

Hi, Can someone tell me how to start new application knowing only its package name? I do not have information about what activity is the main one. ...

Forcing activity to run an activity in landscape in android 1.5

I have an application which is in portrait mode. However, I want to run a particular activity in landscape mode. I have tried the following with no success. 1. android:screenOrientation="landscape" in AndroidManifest.xml 2. this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in activity requiring landscape mode as...

Custom view object using up full height of screen even when layout_height is set to wrap_content

I created an object that extends android.view.View, overriding draw() and have it displaying on the screen. To put you in the picture, it is a display of digits to represent a game score. It's displaying correctly horizontally, however, it is taking up the full height of the screen - pushing all other elements off the screen. I've put l...

showing numbers on textview

What i m trying to do is, just showing numbers from 1 to 100 in a textview, randomly, and keep on changing until the view is active. But i am not able to continuously change random number when view is active. it is just like a timer showing decrement from 10 to 0, but the only difference is i need to show random numbers in between 0 t...

Few questions about android TabHost

Hi, I'm new in android and I have few questions to ask. Is it possible to use the keypad (Left and Right) to move from one TabHost to another? I successfully changed the selector color in listview, then how can I change the text color in ListView as well? Is it possible change the TabHost layout by own graphics? I have created a TabHo...

Android: game not working on Sumsung Galaxy S

Hello everyone, it appears that one of my android games doesn't work on the Samsung Galaxy S. Users are reporting lock ups and blank screens on start up, once they download it from Android Market. I do not have one of these phones to check it out (shame, nice phone!). Has anyone else had this problem? It works perfectly fine on all o...