Wi-Fi direct support in Android

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


Sponsored Links
 Hi,

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.

Yes,

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

-niko
--~--~---------~--~----~------------~-------~--~----~

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/
JotDemoMenu.html");
        Intent briogeoContentIntent = new Intent(Intent.ACTION_VIEW,
uri);
        tabHost.addTab(tabHost.newTabSpec("tab_briogeocontent")
                .setIndicator("BrioGeo Content")
                .setContent(briogeoContentIntent));

Exception when clicking on that tab:

D/AndroidRuntime( 1095): Shutting down VM
W/dalvikvm( 1095): threadid=3: thread exiting with uncaught exception
(group=0x4000fe70)
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
android.app.ActivityThread.getPackageInfo(ActivityThread.java:1932)
E/AndroidRuntime( 1095):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2167)
E/AndroidRuntime( 1095):        at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2112)
E/AndroidRuntime( 1095):        at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
127)
E/AndroidRuntime( 1095):        at
android.app.LocalActivityManager.startActivity
(LocalActivityManager.java:339)
E/AndroidRuntime( 1095):        at android.widget.TabHost
$IntentContentStrategy.getContentView(TabHost.java:600)
E/AndroidRuntime( 1095):        at android.widget.TabHost.setCurrentTab
(TabHost.java:310)
E/AndroidRuntime( 1095):        at android.widget.TabHost
$2.onTabSelectionChanged(TabHost.java:126)
E/AndroidRuntime( 1095):        at android.widget.TabWidget
$TabClickListener.onClick(TabWidget.java:268)
...

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

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