Downgrading 2 app to 1.5

by MartinM » Thu, 22 Apr 2010 22:36:23 GMT

Sponsored Links
 I've a (non-google maps) app that I want to install on a 1.5 phone.
However, it was originally built for 2 (can't remember if it was 2.0
or 2.1), and when I set the target as 1.5 I get some errors:

1. 'invalid resource directory name' - the directory exists and is
unchanged, the contents are listed in the Eclipse browser. Errors
shown on re/drawable-hdpi, re/drawable-ldpi and re/drawable-mdpi

2. 'R cannot be resolved'. This appears to be the fact that is
no longer present. I've fixed this by importing android.R (not sure
why it needed to be done again), but now

setContentView(R.layout.main); cannot be resolved.

I see that I still don't have an

A bit confused here :)


Other Threads

1. Problem Implementing NumberPicker in Preferences.


I'm currently newbie at android development, but intermediate at
As practice I'm creating a weight/bmi tracking tool for Android 2.1
(API 7).
 But I've got stuck onto an issue with preferences:

The issue is with implementing NumberPicker from Quietly Coding:
While I got the widget to work, I've had a hard time figuring out how
to get it to work as a popup in the preferences.

 I've written a class to handle both the conversion of metric and
imperial units, as the popup should be dependant on the units of
measurement selected in a ListPreference (either centimeters, or
separated feet and inches):

So the current issue would be the custom popup for the widget. How
would I proceed with this? Do I create a layout for each possible
variation and then have additional activities for each one? Or is
there a much more efficient method of doing so?



2. Issue on post data to service in android


i Am Getting issue on posting data to restful service using http post

I am getting Response body from service:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">
    <title>Request Error</title>
    <div id="content">
      <p class="heading1">Request Error</p>
      <p>The server encountered an error processing the request. See
server logs for more details.</p>

Response Code:400

Response Message : Bad Request

my code is:

String address="
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(address);
product1 =new ArrayList<NameValuePair>();
ProductStatus mb = new ProductStatus(product);
Gson gson = new Gson();
String json = gson.toJson(mb);
product1.add(new BasicNameValuePair("Jsonstring",json));
try {
UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(product1);
try {
HttpResponse response = client.execute(post);
HttpEntity resEntity = response.getEntity();
tring vv=resEntity.toString();
String responseBody = EntityUtils.toString(response.getEntity());
int responseCode = response.getStatusLine().getStatusCode();
String x=response.getStatusLine().getReasonPhrase();
Log.i("Responsecode", x);
String s=x;
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block

thats url accepts json string value only

please Help me....



3. How to draw a circle on an image

4. help for chart/graph?

5. Crash Reports - ACRA v4 beta started

6. Contacting customers via the email address in Google Checkout?

7. Judul Skripsi