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 R.java 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 R.java.


A bit confused here :)

--



Other Threads

1. Problem Implementing NumberPicker in Preferences.

Greetings!

I'm currently newbie at android development, but intermediate at
Java:
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:
(http://www.quietlycoding.com/?p=5):
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?

Thanks,
MAL

-- 

2. Issue on post data to service in android

hi,

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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Request Error</title>
  </head>
  <body>
    <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>
    </div>
  </body>
</html>

Response Code:400

Response Message : Bad Request



my code is:

String address="http://bb5739d189b24f6a9078b5fd03f87d88.cloudapp.net/
SjaapperService.svc/Update";
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);
post.setEntity(formEntity);
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
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

thats url accepts json string value only

please Help me....

thanks

-- 

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