[android-developers] How to startup one application programmatically from other application

2010-07-15 Thread Jeruliu
Say I have app A, in app A i want to set a schedule to startup the app B and C at specific time? Is it possible to do that? if yes how? Just need to know the code to fire the outside app. -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: How to startup one application programmatically from other application

2010-07-15 Thread Jeruliu
. On Jul 15, 3:28 pm, Jonas Petersson jonas.peters...@xms.se wrote: On 07/15/2010 09:05 AM, Jeruliu wrote: Say I have app A, in app A i want to set a schedule to startup the app B and C at specific time? Is it possible to do that? if yes how? Are you sure your user will appreciate this? You

[android-developers] Re: how to deal with button clickevent in a listview?

2010-07-13 Thread Jeruliu
Well, that will be similar with handling the checkbox in the item. I handled it in my customized adapter with a dirty approach. On Jul 12, 4:55 pm, 苗忠良 mzl...@gmail.com wrote: hi,Jeruliu: I need not that how to handle the item, in my code, I wrote it , I want to know is that how

[android-developers] Re: how to deal with button clickevent in a listview?

2010-07-12 Thread Jeruliu
Please find my working code snippet below: // get a reference to the ListView listView = (ListView) findViewById(android.R.id.list); ... // single click event listView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? arg0, View arg1, int arg2, long

[android-developers] Android paid apps in China

2010-07-12 Thread Jeruliu
Hi I'm going to publish my first app as paid one, but sadly i realized that i may have problems to get paid from China. Before I paid that $25 dollars i just need to make sure: Can i provide my Chinese bank account detail with my Chinese billing/ posting address? China is excluded from the

[android-developers] Re: How to access shared preference outside of Activity

2010-07-10 Thread Jeruliu
Thanks, you solved my problem, again. On Jul 9, 7:40 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jul 9, 2010 at 5:03 AM, Jeruliu jeru@gmail.com wrote: Thanks, actually i need to access the shared preference in a class that extends from BroadcastReceiver, how can i call

[android-developers] Re: How to define some smart layout?

2010-07-10 Thread Jeruliu
=1 /         Button                 android:text=@+id/Button01                 android:id=@+id/Button01                 android:layout_width=wrap_content                 android:layout_height=wrap_content / /LinearLayout On Jul 9, 5:35 am, Jeruliu jeru@gmail.com wrote: I will have

[android-developers] How to access shared preference outside of Activity

2010-07-09 Thread Jeruliu
Dear all, I need to access the shared preference in a background service instead of activity on phone boot up. But getSharedPreferences function is define in the activity, so how can i access the data without creating the activity? Thanks. -- You received this message because you are

[android-developers] Re: How to access shared preference outside of Activity

2010-07-09 Thread Jeruliu
Thanks, actually i need to access the shared preference in a class that extends from BroadcastReceiver, how can i call the context then? On Jul 9, 4:21 pm, Mika mika.ristim...@gmail.com wrote: getSharedPreferences is defined in Context. Service is a Context also. On Jul 9, 9:08 am, Jeruliu

[android-developers] How to define some smart layout?

2010-07-09 Thread Jeruliu
I will have a list view on the top and a button on the bottom in the view. Regardless the height of the list view i would like to fix the button position on the bottom all the time. If the list view is too long then make it scrollable. How to do this? thanks. -- You received this message

[android-developers] Re: How to set current tab in the sub activity pop up dialog

2010-07-08 Thread Jeruliu
...@wipro.com wrote: HI, Try using getTabHost().setCurrentTab(1/*tab2*/); once you enter/leave the tab2 activity On Jul 1, 9:01 pm, Jeruliu jeru@gmail.com wrote: I have a TabActivity class A with 2 tabs, a sub activity class B in tab 2. Now a dialog pops up from the UI in B, once i

[android-developers] I can't change the checkbox state due to multiple getView call in custom adapter

2010-07-07 Thread Jeruliu
After researched in this group, I have a conclusion that the number of calling getView function in adapter is not guaranteed, normally this function will be called 3 times. It's causing issue to my app. I have a custom list view, 2 text and 1 check box in each row. I also defined my own adapter

[android-developers] Set current tab from a dialog box?

2010-07-05 Thread Jeruliu
Hi all, I have a main TabActivity contains 2 tabs, each tab is an activity. By default the TabActivity will display the content of the first tab. From the second tab, a edit form will be pop up as dialog box. Now in this dialog box, once i click the save button, i would like to 1. close the

[android-developers] Re: Set current tab from a dialog box?

2010-07-05 Thread Jeruliu
I just found my own solution: passing a parameter into intent to specify which tab screen to display. On Jul 5, 3:45 pm, Jeruliu jeru@gmail.com wrote: Hi all, I have a main TabActivity contains 2 tabs, each tab is an activity. By default the TabActivity will display the content

[android-developers] How to set current tab in the sub activity pop up dialog

2010-07-01 Thread Jeruliu
I have a TabActivity class A with 2 tabs, a sub activity class B in tab 2. Now a dialog pops up from the UI in B, once i click the save button in this dialog it goes back to the TabActivity but the tab is set to 1, however i want to set the current tab to 2 once the dialog box closed. In short i

[android-developers] How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Dear all, I used AlarmManager to set the pending intent. I need to find out the state of the pending intent, in other word, is this pending intent working or not. Boz i may need to cancel this pending intent, but before canceling it i want to make sure it's active. But i see no function in

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
if this will not fail one day. ++ Reda On 22 juin, 08:08, Jeruliu jeru@gmail.com wrote: Dear all, I used AlarmManager to set the pending intent. I need to find out the state of the pending intent, in other word, is this pending intent working or not. Boz i may need to cancel

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
app, and only setting a single alarm for the next item in time, instead of having multiple in the alarm manager.  See the alarm clock app for an example. On Tue, Jun 22, 2010 at 1:30 AM, Jeruliu jeru@gmail.com wrote: Maybe i didn't make myself clearly. I have no problem to set multiple

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
Hi Mark, Good hint, but how do you know a alarm goes off? BTW, may i know where is your tutorials version 2.1? On Jun 22, 7:13 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 5:29 AM, Jeruliu jeru@gmail.com wrote: 2. Sometimes i have to create multiple pending

[android-developers] How to autostart a service instead of activity?

2010-06-22 Thread Jeruliu
Hi, I can managed to autostart my activiy when reboot. But however I realized that what should i autostart is not the activiy with UI but a one time function call in background. I used to define the receiver in manifest xml to autostart the activity, this is working good. receiver

[android-developers] Re: How to autostart a service instead of activity?

2010-06-22 Thread Jeruliu
Oh yes, too stupid a question, i forgot that BootUpREceiver is my own class, thought it was a system class. Thanks a lot. On Jun 23, 3:57 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 3:55 PM, Jeruliu jeru@gmail.com wrote: Hi, I can managed to autostart my activiy

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread Jeruliu
got it, thanks. You are the man. On Jun 23, 3:56 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jun 22, 2010 at 3:47 PM, Jeruliu jeru@gmail.com wrote: Good hint, but how do you know a alarm goes off? Your PendingIntent is run. Whatever component is started via that PendingIntent

[android-developers] TableRow Layout issue on ImageView

2010-06-22 Thread Jeruliu
This should be a very simple one but i can never feel comfortable after tried so many options. I've defined a text view in left and a image view in right in a TableRow, no matter what i tried, the image always aligns to the right side. I found out that it's because the text view occupies most of

[android-developers] Re: Not able to place the custom view to dialog

2010-05-28 Thread Jeruliu
= LayoutInflater.from(context); View view = inflater.inflate(R.layout.brightness, null); setView(view); -- Paweł Zięba dziobas.blogspot.com On 28 Maj, 02:47, Jeruliu jeru@gmail.com wrote: I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog -http

[android-developers] Couldn't get the seekbar by findViewById

2010-05-28 Thread Jeruliu
I'm building a dialog including seekbar but i can't locate the seekbar by findViewById, it only returns nullpoint. My code: Context mContext = this; LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); View layout =

[android-developers] Re: Couldn't get the seekbar by findViewById

2010-05-28 Thread Jeruliu
Wow, thanks Mark, you are absolutely not just a common guy!!! On May 29, 2:09 am, Mark Murphy mmur...@commonsware.com wrote: Jeruliu wrote: I'm building a dialog including seekbar but i can't locate the seekbar by findViewById, it only returns nullpoint. My code: Context mContext

[android-developers] SeekBarPreference ClassCastException why?

2010-05-27 Thread Jeruliu
Hi All, I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog - http://android.hlidskialf.com/blog/code/android-seekbar-preference I copied the class from above link into my project. Then created the xml as brightness.xml: ?xml version=1.0

[android-developers] SeekBarPreference ClassCastException why?

2010-05-27 Thread Jeruliu
Hi All, I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog - http://android.hlidskialf.com/blog/code/android-seekbar-preference I copied the class from above link into my project. Then created the xml as brightness.xml: ?xml version=1.0

[android-developers] Not able to place the custom view to dialog

2010-05-27 Thread Jeruliu
I'm suffering from this for a week, i was trying to use the famous SeekBarPreference in a dialog - http://android.hlidskialf.com/blog/code/android-seekbar-preference I copied the class from above link into my project. Then created the xml as brightness.xml: ?xml version=1.0 encoding=utf-8?

[android-developers] Frustrated with CheckBox/CheckedListView in listview

2010-04-27 Thread Jeruliu
Dear all, I've tried my every effort to fight with this issue for two days but no any luck. What I want to do is: Display a list view with 3 elements: title, subtitle and a checkbox. It will be ideal that the event handler only fires when user click on the CheckBox but not the list item. I