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. Android OS

Hi,

Is there any possibility to download the Android OS.

If yes, on which existing models in the market can we install that?

Thanks and Regards,
Pradeep


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

--~--~---------~--~----~------------~-------~--~----~

2. dual activity

Once user selects yes in dialog I start activity to open url in droid
browser:

public void onClick(DialogInterface dialog, int whichButton) {
   String url =
SubmitActivity.this.getString(R.string.SubmitActivity_report_url);
   Intent i = new Intent(Intent.ACTION_VIEW,Uri.parse(url));
   startActivity(i);
   startActivityForResult(i, 1);
   // return to first page
   // ...
}

I realized that after the user does what ever they need to in browser
they are clicking back button and ending up on the last page in my
android app instead of first page. So thought of doing this by using
startActivityForResult catching result and starting another activity:

somewhere in onActivityResult {

else if (resultCode == RESULT_CANCELED && requestCode == 1) {
   Intent j = new Intent(SubmitActivity.this,
MainAppPanelActivity.class);
   startActivity(j);
   finish();
}

}

Seems this activity does not work the way I expect. My question, is
there any way to start two activities that would complete independent,
one that opens browser, and one that completes move to first page. If
I have to create a new thread that is fine, just thought there maybe
easier solution.

Thanks all.

-- 

3. How can I change my developer's country setting?

4. Bluetooth file transfer

5. Creating URI from resource Id

6. AudioTrack: ObtainedBufferTimeout

7. Getting my Views to re-draw