android

How do I retrieve two field values received from an HTTP POST to PHP?

Here is what I am trying to do. From my Android App code I do an HTTP POST which is as below HttpPost httppost = new HttpPost("http://xyz.com/Retrieve.php"); The PHP code is supposed to send back an image and an URL. $q=mysql_query("SELECT image, url FROM testblob WHERE id = 'id[0]'"); list($data) = mysql_fetch_row($q); echo $data; ...

Error installing ADT plugin in Eclipse on Ubuntu 10.04

I have installed the plugin many times before, but this time I keep getting this error: 'Install' has encountered a problem An error occurred while installing the items Eclipse has some memory issues when running on my machine, so I just want to install the bare minimum plugins, etc. Has anyone got any ideas how to get arou...

Android Multipart Upload

As part of my Android app, I'd like to upload bitmaps to be remotely stored. I have simple HTTP GET and POST communication working perfectly, but documentation on how to do a multipart POST seems to be as rare as unicorns. Furthermore, I'd like to transmit the image directly from memory, instead of working with a file. In the example ...

Show Yes/No-Dialog instead of OK/Cancel

Hello, I hate the OK/Cancel dialogs, because if my application ask somebody if (s)he really want to do something you should never answer with "Cancel". A little example: final AlertDialog.Builder b = new AlertDialog.Builder(this); b.setIcon(android.R.drawable.ic_dialog_alert); b.setTitle("Hello World"); b.setMessage("Did you do your ho...

Navigating an Array (Android String Array)

Hi. I'm new to android developing but right now I'm working on an application that displays Random Facts. Since I don't want it to be in a random order, I would like to have them in a list. I would like to order through them one by one and show them using TextView. Resources res = getResources(); myString = res.getStringArray(R.array.Fa...

Android Listview Items not redrawn when they scroll off the screen in Froyo

I have a listview that when scrolled and the items go off of the screen they are not redrawn when I scroll back to them (the text and checkbox). In fact, items that are off the bottom of the screen in the listview never get drawn when scrolling to them. This only happens in Froyo. Any other version it works just fine. I have checked ...

Android SAX parser

I am trying to implement a robust RSS/Atom reader for android, and since Xerces won't compile I am struggling to find an alternative. I am using org.xmlpull.v1.sax2.Driver(), however this just wraps a DOM parser with SAX callbacks. Is there anything comparable to Xerces on Android? ...

How to create Browse File Button functionality in Android

Hi guys, I have a RadioButton that is when clicked, it will bring to a popup window. Currently, I am planning to make the popup window to contain a browse Button with TextEdit left of it. What it does is, when a user click on browse Button, a window explorer (something like that) will appear and let the user to traverse the phone's pri...

app installations overwriting each other

I have developed two android apps...when i install them on my phone to test them.. they overwrite each other. I do not want this to happen. The intent is to have both installed on the phone as separate apps.. how do i fix this? I developed them with eclipse. ...

how to add icon in alert dialog before each item?

dear friends, i am using alert dialog with code below now i want to put image before each text for example email icon then text Email, facebook icon then text Facebook etc.. in alert dialog using following code please guide how to add icon before each text value? final CharSequence[] items = { "Email", "Facebook","Tw...

Building multiple apks from on android app source

The application reads a key from a file to hit production vs test server. I want to create a test apk build that will pick test key and second build apk for release that will pick the production key I am currently building app using eclipse ...

Which version of photoshop for android

Hi, I am looking at buying photoshop to be able to use some of the .psd files on the develop.android.com site (eg. http://developer.android.com/intl/zh-TW/guide/practices/ui_guidelines/widget_design.html). In addition, ideally, there would be many tutorials for that version, so I can learn quickly. I see multiple versions of photoshop;...

Android : ImageView getID(); returning integer

I've set up an onTouch class to determine when one of my 40 buttons is pressed. The problem I am facing is determining which button was pressed. If I use: int ID = iv.getId(); When I click on button "widgetA1" I receive the following ID: 2131099684 I would like it to return the string ID "widgetA1" from:game.xml <ImageView andro...

Launching an application using browser??

Hi, I want to launch an application in the phone by clicking its link in the browser..How can I do this??? ...

Android IndexOutOfBoundsException

I'm getting crash reports from my app in the marketplace throwing an IndexOutOfBoundsException outside of my code with the following stack trace: java.lang.IndexOutOfBoundsException: charAt: -2 < 0 1. android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:110) 2. android.text.TextUtils.getCapsMode(TextUtils.java:1573) 3....

json changes the order of elements

Hello, I am trying to send a list of objects from an android mobile phone app to a j2ee webserver. I create json objects and then put the objects into an jsonarray(in an order) and then send it. I am able to receive the jsonarray on the server, obtain the objects individually too, but the order of how I inserted the objects into the jso...

Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so

In eclipse, I open a android project, click the layout xml file. then pop the dialog "Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so" and the file didn't be opened. How can I open the xml normally, it seems jdk6 is installed with error or the path is wrong. os is ubuntu 9.04. ...

Compositing Android MapView and SurfaceView

I have an application with a SurfaceView and a MapView. They are displayed in a single view, like so: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainlayout" android:layout_width="fill_parent" android:layout_height="fill_parent" > <co...

Gesture in listview android

hi i have to add a gesture to my listview,i want to implement the same functionality of contact application. when i left swipe it should send a message,right swipe it should call. can anyone help me how to do those gesture detection... i have implemented it in various other views... but i couldn't do for listView... i don't what going wo...

E/ddms IllegalArgumentException 'Bad version' with both 32 and 64 bit Java JRE installed

E/ddms IllegalArgumentException 'Bad version' with both 32 and 64 bit Java JRE installed Hello. Working on a Windows 7 Pro 64-bit system, that has the 64-bit Java JDK (and via the JDK the JRE) installed, and using Eclipse 3.5.2 and the latest Android SDK (rev 7). Everything works fine. If I then install the 32-bit Java JRE on the sam...