New TypeName for NetworkInfo

by Kenny » Wed, 03 Feb 2010 22:49:27 GMT

Sponsored Links
 Has anyone notice that Android 2.1 (or may be even earlier) has
additional Network Type?  Namely:

ConnectivityManager.MOBILE_MMS 2
ConnectivityManager.MOBILE_SUPL 3
ConnectivityManager.MOBILE_DUN 4
ConnectivityManager.MOBILE_HIPRI 5

In addition to the original types in the document.

Does anyone know what those new types corresponds to?


Other Threads

1. does anybody know how to copy files to the internal storage?

does anybody know how to copy files to the internal storage?



2. Display a dialog in landscape irrespective of current screen orientation


I have an activity displaying a list of items. Upon clicking an item,
I display a full-screen dialog with some buttons and an image. This
looks great in landscape, but doesn't look good in portrait (Due to
the image aspect ratio). I would like to know if its possible to
always display this dialog in landscape irrespective of current screen
orientation. And after the dialog is dismissed, I'll handover the
orientation back to the sensor. Here's what I have so far:

OnItemClickListener listlistener = new OnItemClickListener() {

                public void onItemClick(AdapterView parent, View arg1, int 
                                long arg3) {

                        final Dialog dialog = new Dialog(getParent());

                        final int orientation =

                        if (orientation == 1){



                        ImageView img = (ImageView) 
dialog.findViewById(; //A
static image for testing UI

                        //BUTTON LISTENERS HERE


                        dialog.setOnCancelListener(new OnCancelListener() {

                                public void onCancel(DialogInterface dialog) {




But by doing so, the screen changes orientation first and then tries
to display the dialog. But on orientation change the screen is
restarting the activity and my dialog isn't shown. Is there a simpler
way to do this? Could I use two different layout for the dialog and
load a corresponding one depending on the orientation? If so, then
what would the XML for the portrait mode  look like?



3. Gingerbread SDK incompatibility to Froyo: Conversion to Dalvik format failed

4. making ethernet interface as wifi interface

5. Unexpected resume of activity

6. How to use a SQLiteDatabase object in an Activity

7. 2.3 Emulator instability