: Nexus One Screen Protecto

by Phoenix Wu » Wed, 03 Feb 2010 22:34:00 GMT


Sponsored Links
 Dear all,

numpang bandwidth ada yg jual screen protector Nexus one.

Please japri. Thanks.

-- 
"



Other Threads

1. setResult() for AppWidget

Hi, (resend with heading title)

I'm making a appwidget, and hope to use search UI to let user filter 
some infomation while setup widget on receiving APPWIDGET_CONFIGURE. My 
current problem is APPWIDGET_CONFIGURE intent depends on setResult() to 
decide if adding widget successful. However, using search UI cause 
activity reentry to fail to setResult() to original caller.

Below codes show how and where my code to setResult(),
first when user try to add widget in home screen, we launch the search 
UI on APPWIDGET_CONFIGURE intent, and after search UI return result with 
Intent.ACTION_VIEW to same activity, it failed to setResult() to tell 
caller widget is configured.
But in onUserInteraction()  setResult() work, but it's just not correct 
timing. Tried extend finish() but still in vain.

Any suggest is appreciated!


public void onCreate(Bundle savedInstanceState)
{
  super.onCreate(savedInstanceState);
  Intent launchIntent = getIntent();

  Bundle extras = launchIntent.getExtras();

  if(Intent.ACTION_VIEW.equals(launchIntent.getAction()))
  {
     // this is where to handle search result indent, but failed to set 
result

    if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {
        Intent intent = new Intent();
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
        setResult(RESULT_OK, intent);
    }

  } else if(Intent.ACTION_SEARCH.equals(launchIntent.getAction()))
  {
    String query = launchIntent.getStringExtra(SearchManager.QUERY);

    if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {
        Intent intent = new Intent();
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
        setResult(RESULT_OK, intent);
    }

  } else {
    //  deal android.appwidget.action.APPWIDGET_CONFIGURE here
    onSearchRequested();
  }
}


TIA,
Ollie

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

2. IP broadcast on emulator

Hi,

I have an application that acts as both client and server. I have a
scenario that I need to test that involves three devices. One of them
needs to broadcast a message (UDP) to the other two.
Running on physical devices, this is not a problem, and it works fine.
On the emulator however, this is much harder.
I have managed to get it work for two devices using the emulator. Here
my client thread broadcast the message to 10.0.2.255 port 6002, and
server thread listens on port 6006. By using redir add udp:6002:6006
the server receives the message fine.
Now, if I add another instance and do the same portforwarding, only
one of them receives the message. I also tried to use a different port
number on the server, and forward port 6002 to that number, with the
same result.
It appears as if a port can only be forwarded from one instance.
Does anyone of a method to broadcast using the emulator, without
sending a separate message to each emulator instance?

Thanks,
Anders
--~--~---------~--~----~------------~-------~--~----~

3. Source Code required for Android App

4. Updating one view also causes another view to update

5. NEEDED: Apps to feature on Sprint Microsite

6. Assign EditText android:singleLine="true" programmatically

7. @cyanogen