[android-developers] how to add new resource in Preference

2011-09-09 Thread Ellen
I want to add some new resources in Preference which like title and summary, it seems that need to add the related id in attrs.xml and public.xml to announce it. When I tried to give an ID for the new resource, it report the id is out of range, so, seems the number couldn't extended. is it

[android-developers] Re: two layner in on PreferenceScreen

2011-09-05 Thread Ellen
AM, Ellen ellen...@hotmail.com wrote: After I insert this group view, it report run-time error android.view.InflateException: Binary XML file line #13: Error inflating class... Anybody know what's the problem? Apparently something with of the XML files at line 13. If you can't narrow

[android-developers] two layner in on PreferenceScreen

2011-09-03 Thread Ellen
I want to group some self-define Style in PreferenceScreen, So I insert another layer for this group. Before the group inserted, everything is work fine and it looks like Settings in Android. What I did is move the self-define style Items from main view to my group view, and this group view

[android-developers] Re: get internet from android device via USB

2011-07-29 Thread Ellen
, Ellen ellen...@hotmail.com wrote: Hi, when a PC connected with an android device via USB, could this PC get connection to internet through android device? 3G or GPRS or wifi, anyway? Not the right list to ask this sort of question, but yes. It's called 'USB tethering', but your carrier

[android-developers] Re: get internet from android device via USB

2011-07-29 Thread Ellen
to internet, and PC couldn't) 4. maybe a desktop app needed to make such configuration On 7月29日, 下午4时18分, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jul 29, 2011 at 3:38 PM, Ellen ellen...@hotmail.com wrote: thanks for your response :) Sorry, I didn't described clearly. What I

[android-developers] Re: get internet from android device via USB

2011-07-29 Thread Ellen
Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jul 29, 2011 at 3:38 PM, Ellen ellen...@hotmail.com wrote: thanks for your response :) Sorry, I didn't described clearly. What I was mean the way PC connect to internet via android USB is by programing. So, is there API or something could do

[android-developers] get internet from android device via USB

2011-07-28 Thread Ellen
Hi, when a PC connected with an android device via USB, could this PC get connection to internet through android device? 3G or GPRS or wifi, anyway? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] how to get USB connection envent

2011-07-11 Thread Ellen
Hi, When a device connect to a PC through USB, how Android could get this envent whatever the connection mode is? I searched a flag Usb.ACTION_USB_STATE, but it seems my application couldn't identify it. (SDK 2.2 API level 8). -- You received this message because you are subscribed to the

[android-developers] install package programingly without any system prompt

2011-06-29 Thread Ellen
Hi, I'm trying to install apks by program (permision has been set), code as following show: Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setAction(Intent.ACTION_VIEW);

[android-developers] Re: install package programingly without any system prompt

2011-06-29 Thread Ellen
By the way, I want to the thread back the main activity after installation finished. now, it seems stay the installing intent, and couldn't back the main process. Any idea? On 6月29日, 下午8时33分, Marcin Orlowski webnet.andr...@gmail.com wrote: On 29 June 2011 14:02, Ellen ellen...@hotmail.com wrote

[android-developers] Re: install package programingly without any system prompt

2011-06-29 Thread Ellen
. Thanks! Ellen On 6月29日, 下午8时33分, Marcin Orlowski webnet.andr...@gmail.com wrote: On 29 June 2011 14:02, Ellen ellen...@hotmail.com wrote: I need to install the apks only by one choice at the very begining, then it will install all of them automatically without any prompt during

[android-developers] Re: how to get phone number through other method

2011-06-28 Thread Ellen
日, 上午8时13分, Indicator Veritatis mej1...@yahoo.com wrote: Did you set the permission READ_PHONE_STATE? On Jun 25, 4:14 am, ellen...@hotmail.com ellen...@hotmail.com wrote: Dear Android experts, I'm trying togetthephonenumberthrough TelephonyManager.getLine1Number(). As many threads

[android-developers] Re: how to get phone number

2011-06-28 Thread Ellen
hello, anybody here .. On 6月26日, 下午1时56分, Ellen ellen...@hotmail.com wrote: Dear Android Experts, I'm trying togetthe SIMnumberby TelephonyManager.getLine1Number(), permision has been set READ_PHONE_STATE. As many thread discussed before, it couldn't work in a real device due

[android-developers] how to get phone number

2011-06-27 Thread Ellen
or SmsManager? 2. is there any difference for the interface from Android side amang different Internet Operator? 3. then where and how to get the phone number? Looking forward for your reponse.. Thanks! Ellen -- You received this message because you are subscribed to the Google Groups Android

[android-developers] how to get phone number through other method

2011-06-27 Thread ellen...@hotmail.com
Dear Android experts, I'm trying to get the phone number through TelephonyManager.getLine1Number(). As many threads discussed before, it couldn't work in a real device, null as the result. Now my question is, whether there is some other way to get the phone number? I searched one method said

[android-developers] use CSS to control the style of HTML in Android

2010-11-01 Thread Ellen
Hello, I want to know how to use CSS to control the style of HTML. it looks like anything defined in CSS does not apply to HTML. here is the mytest.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd html head title TEST PAGE /title link

[android-developers] CSS in Android

2010-11-01 Thread Ellen
I want to know how to use CSS to control the style of HTML. it looks like anything defined in CSS does not apply to HTML. here is the mytest.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd html head title TEST PAGE /title link type=text/css

[android-developers] RuntimeException when launching activity on emulator

2008-12-30 Thread Ellen Spertus
intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest I'd be grateful for any advice. Ellen