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. MotionEvent ACTION_DOWN throwing security exception for INJECT_EVENT permission

I am not injecting events in other application. I want to do that when my
activity is running .






> 

2. MotionEvent ACTION_DOWN throwing security exception for INJECT_EVENT permission

Hi,
   I have added this line in my androidManifest.xml

<uses-permission android:name="android.permission.INJECT_EVENT"/>

I am trying to execute following code,

                        long downTime = SystemClock.uptimeMillis();
                        long eventTime = SystemClock.uptimeMillis();

                        Instrumentation inst = new Instrumentation();

                        MotionEvent event = MotionEvent.obtain(downTime,
eventTime,
                        MotionEvent.ACTION_DOWN, x, y, 0);

                        Log.d( LOG_TAG,"injecting motion event down" );
                        *inst.sendPointerSync(event);
                        //wm.injectPointerEvent( event,true );*

Both above lines are throwing exception W/System.err(  762):
java.lang.SecurityException: Injecting to another application requires
INJECT_EVENT permission.

Do we need anything else too to get it working ?

Thanks in advance

-- 

3. Scrolling Programmatically in a table

4. Paging CS XL

5. AVD - Emulator limitations

6. Get Attributes of a media file.

7. DisplayMetrics xdpi and ydpi returning incorrect values