Android2.3 released (Gingerbread)

by sogan xie » Fri, 25 Feb 2011 12:57:23 GMT


Sponsored Links
  http://www.android.com/ 
Some new feature pulled into.

-- 
B.R.
Sogan.X
------------------------------------
Mail:    soga...@gmail.com

-- 



Other Threads

1. set default APN programmatically

Is there a way to set the default APN through code?
I'm trying with this snippet:


                        String id = null;
                        Uri contentUri = 
Uri.parse("content://telephony/carriers/
preferapn");
                        Cursor cursor = null;
                        ContentResolver resolver = getContentResolver();

                        try {
                            cursor = resolver.query(contentUri, new 
String[]{"_id"}, null,
null, null);
                            if (cursor != null) {
                                while (cursor.moveToNext()) {
                                    id = cursor.getString(0);
                                    System.out.println("Found APN with id: " + 
id);
                                }
                            }
                        } catch (Exception ex){
                            //Handle exceptions here
                        } finally {
                            if (cursor != null) cursor.close();
                        }
                        if(id != null){
                                 ContentValues values = new ContentValues();
                             values.put(id, "new apn value"); //does this works?
                             resolver.update(contentUri, values, null, null);
                        }

However, once it is done, if we read again the default APN it remains
unchanged. I'm testing this on sdk 1.5.
Thanks in advance.

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

2. HelloMapView Tutorial not working

Hi,

im trying to launch the HelloMapView tutorial from the Android Dev
Guide. I copy-pasted the things from the tutorial, but i always get a
ClassNotFound Exception.

Heres the detail message:
com.hellomapview.HelloMapView in loader dalvik.system.PathClassLoader

com.hellomapview is my package name, HelloMapView is the MapActivity
Class.

What could be the reason for this? I'm trying to get this working
since 2 days.

Regards,
Daniel
--~--~---------~--~----~------------~-------~--~----~

3. access to data from the rtsp stream

4. Android communication

5. Wake Locks and the Cellular antenna...

6. Deployment best practice for trial / full version of an app

7. Emulator is extremely slow after upgrade to SDK 1.6