[android-beginners] How can I open an application using my code in android?

2008-07-08 Thread jxmao
hi , I want to open an application using my code in android. just like the browser. I've found the path is "/system/app/ browser.apk". and how can I open it? can I use the Runtime.getRuntime().exec(path); method? If can ,what's the path? --~--~-~--~~~---~--~~ You

[android-beginners] Re: How can I open an application using my code in android?

2008-07-08 Thread Mark Murphy
jxmao wrote: > hi , > I want to open an application using my code in android. > just like the browser. I've found the path is "/system/app/ > browser.apk". > and how can I open it? You send an email to the developer, asking her what a valid Intent is for opening the application. Then, you call

[android-beginners] Re: How can I open an application using my code in android?

2008-07-08 Thread jxmao
Hi Mark Murphy : thanks , I've solved it. On Jul 8, 8:28 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > jxmao wrote: > > hi , > > I want to open an application using my code in android. > > just like the browser. I've found the path is "/system/app/ > > browser.apk". > > and how can I open it? > >

[android-beginners] Re: attach pictures to button

2008-07-08 Thread zoumengdie
On 7月7日, 下午9时55分, Mark Murphy <[EMAIL PROTECTED]> wrote: > zoumengdie wrote: > > Hi everyone! > > I want to attach a picture onto a button. Here is my code: > > .. > > Button button1 = (Button)findViewById(R.id.Button1); > > Drawable pic = new PaintDrawable().createFr

[android-beginners] Custom Intent

2008-07-08 Thread ZaNkY
I just recently got the SDK and have been playing around with it. It's pretty solid, even though it's not completed yet. I understand the basics of how Intents work, but I'm getting lost when it comes to defining custom intents. Practical application: Suppose I want a dialog box (or any other co

[android-beginners] Re: this thing is driving me crazy!!

2008-07-08 Thread Muhammad Farhan Bashir
Salam, I think you have already answered your question.Definitely you have to type cast the integer to the string if the setText function did not take values other than string. On Mon, Jul 7, 2008 at 5:04 PM, Maryam Naveed <[EMAIL PROTECTED]> wrote: > hey all!! > i have a little quest

[android-beginners] Custom Intent

2008-07-08 Thread ZaNkY
I just recently got the SDK and have been playing around with it. It's pretty solid, even though it's not completed yet. I understand the basics of how Intents work, but I'm getting lost when it comes to defining custom intents. Practical application: Suppose I want a dialog box (or any other co

[android-beginners] changingcolor on TextView

2008-07-08 Thread zoumengdie
Hi. I want to know how to set the background color of TextView and the color of the text on TextView. Is it about "android:shadowColor" and "android:textColor"? The documents say the value of them “Must be a color value, in the form of ‘#rgb’, ‘#argb’, ‘#rrggbb’, or ‘#aarrggbb’” (http://code.goog

[android-beginners] Re: changingcolor on TextView

2008-07-08 Thread Mark Murphy
> Hi. I want to know how to set the background color of TextView and the > color of the text on TextView. Is it about "android:shadowColor" and > "android:textColor"? The documents say the value of them “Must be a > color value, in the form of ‘#rgb’, ‘#argb’, ‘#rrggbb’, or > ‘#aarrggbb’” (http:/

[android-beginners] Re: Custom Intent

2008-07-08 Thread Mark Murphy
> Practical application: Suppose I want a dialog box (or any other code) > to run when any text box (EditText) gets the focus. I'm not sure that's possible. > This is an > external EditText, so say, the browser. Putting aside Activities, I > build an app that consists of only an IntentReceiver:

[android-beginners] Re: custom component in a list

2008-07-08 Thread Sylvester Steele
On Jul 8, 11:44 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > The id you pass to the constructor of the ArrayAdapter is the id of > the XML layout to inflate. This means you have to use something like > R.layout.my_layout. If you do not want to use XML (and you should > because it's more flexibl