Wi-Fi direct support in Android

by Sumanth » Thu, 19 May 2011 22:35:18 GMT

Sponsored Links

We intend to support for Wi-Fi direct with our hardware on Android.
As per 
 http://www.sfonge.com/forum/topic/when-will-android-open-wi-fi-direct-api ,
Wi-Fi direct support may be added in Ice-cream Sandwich.

Existing Android Wi-Fi uses Linux wpa_supplicant for Station mode and
netd for Access point mode.

Other Threads

1. Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.


You should never start another activity directly from your OnCreate.
Instead, use a postDelayed call to a handler in your parent activity,
and inside the Handler function you can then create the child
activity. This ensures that the parent activity actually has the
ability to complete its OnCreate routine.

Look up the info on Handlers and using postDelayed calls on them


2. SecurityException for Browser activity in TabWidget

Here is a SecurityException I don't understand.  The following code is
in onCreate() for a TabActivity object. There is a TabWidget in the
layout file.  The code works for tabs with Views and ViewGroups, but
when I put an Intent as the content in a tab I get this error.

The same intent works find if I call startActivity() directly.  I do
have android.permission.INTERNET set in AndroidManifest.

Are there limitations on the kind of activity intent that can be used
in a tab?

Code from onCreate():

        TabHost tabHost = getTabHost();
        Uri uri = Uri.parse("http://www.jotobjects.net/jotdemo/
        Intent briogeoContentIntent = new Intent(Intent.ACTION_VIEW,
                .setIndicator("BrioGeo Content")

Exception when clicking on that tab:

D/AndroidRuntime( 1095): Shutting down VM
W/dalvikvm( 1095): threadid=3: thread exiting with uncaught exception
E/AndroidRuntime( 1095): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1095): java.lang.SecurityException: Requesting code
from com.android.browser (with uid 10020) to be run in process
com.briogeo.ex2 (with uid 10031)
E/AndroidRuntime( 1095):        at
E/AndroidRuntime( 1095):        at
E/AndroidRuntime( 1095):        at
E/AndroidRuntime( 1095):        at
E/AndroidRuntime( 1095):        at
E/AndroidRuntime( 1095):        at android.widget.TabHost
E/AndroidRuntime( 1095):        at android.widget.TabHost.setCurrentTab
E/AndroidRuntime( 1095):        at android.widget.TabHost
E/AndroidRuntime( 1095):        at android.widget.TabWidget


3. save new file into asset directory from app

4. How to open a dialog immediately after onResume? Is it even possible?

5. How to get custom parameter from custom ui tag

6. How Many OnClickListeners is too many?

7. Silently Block SMS