sms compose activity

by b_t » Fri, 04 Mar 2011 21:19:30 GMT


Sponsored Links
 Hi,

I can start SMS compose activity by

        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:#"));
        startActivity(intent);

Is it possible to set the phone number or contact id? (the "To" field
of the activity)

Thanks,
Tams

-- 



Other Threads

1. Setting Wallpaper

Hi all, I've asked this before but never got a useful answer.

I'm setting wallpaper as follows:

InputStream stream = resources.openRawResource(myResource);

getApplicationContext().setWallpaper(stream);

It works, but the image doesn't fit the screen. Is there a way to
force the image to fit the screen, or is this down to differences in
device types? Are wallpapers specific to each advice depending upon
the resolution and screen dimensions? Am I wasting my time trying to
make a single image available for the wallpaper?

-- 

2. How to actually see log messages in ADT, or anywhere for that matter?

I've deployed an app to my device that calls "Log.v(String, String)".
I'm using the ADT.  I have the "LogCat" view showing.

I step over the line of code that calls "Log.v()".  Nothing appears in
the LogCat view.

I haven't added any filters.  I've tried clicking the "V" toggle
button in the LogCat view, but that makes no difference.

It appears that I'm supposed to set the log level of the device. There
appears to be no way to do that from the ADT.  However, looking at the
various short articles discussing this, I believe that doing this from
the shell is supposed to do it:

  ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE

Where my tag is "SNAPSHOT".  I ran this, and it returned to the prompt
without showing the usage info, so I assume it at least recognized my
input.

The line of code that is executed is this:

Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");

This line doesn't show up in the LogCat view.

What am I missing?

-- 

3. Terimakasih ya.. OOT : Happy Birthday Suhi Enya

4. How to block a BufferedReader when no input is available?

5. Android 2.3 Gingerbread for Nexus One & Galaxy S

6. Android 2.1 bermasalah? Atau sony tdk kompatibel dgn 2.1?

7. [WTA]LCD Milestone Bermasalah