[android-developers] Re: Widget updated without my invoking

2010-05-03 Thread yidongsoft
Can any one help me? I am in help... On 5月3日, 下午4时39分, yidongsoft wrote: > Widget updated without my invoking and text size and colour settings > lost. > > My widget consists of a TextView. I set the text colour and text size > with > > views.setInt(R.id.widg

[android-developers] Re: Android : List View or Spinner - Need your help guys

2010-05-03 Thread yidongsoft
Customize a listview as: String[] lastName; String[] firstName; int[] ids; ... public object getItem(int position){ return ids[position]; } ... Do you understand me? your request is just a piece of cake. On 5月3日, 上午12时39分, Ramesh Sangili wrote: > Team, > > I would like to know how to display a Li

[android-developers] Re: RingtoneManager getRingtone sometimes returns null

2010-05-03 Thread yidongsoft
1. Is your ringtone added to the media lib? 2. Is your tingtone too large? Because it will return null while you cropping an image and the size is too large. This is what I guess. Please test it yourself. Another way to find the answer if reading the android source code. On 5月2日, 下午9时50分, Bowz w

[android-developers] Widget updated without my invoking

2010-05-03 Thread yidongsoft
Widget updated without my invoking and text size and colour settings lost. My widget consists of a TextView. I set the text colour and text size with views.setInt(R.id.widgetText, "setTextColor", getResources().getColor(textColorResource)); views.setFloat(R.id.widgetText, "setTextSize", textSize)

[android-developers] Re: DateFormat of android for AM/PM is not working properly with android 2.0

2010-03-28 Thread yidongsoft
I found it, too. I looked into android code and found it's a bug. There tagged: // FIXME On Mar 8, 6:44 pm, Ritesh Deshmukh wrote: > Hi, > > I have worked on android 1.5 and 2.0. > > Currently iamdoing Migration of Applications available in 1.5 to > android 2.0. > > During the work time i ha

[android-developers] FLAG_ONLY_ALERT_ONCE not working in notification at all

2010-03-18 Thread yidongsoft
I check the flag and find the bit is set. But nothing happens at all. Related information: Pick the sound using system ringtone picker Vibrate once keep playing the ringtone ceaselessly. Touch the title area and stop playing Would anyone help me? thanks! -- You received this message because yo

[android-developers] GPS code works in HTC machines but fails in MOTO's

2010-02-20 Thread yidongsoft
My code to obtain GPS coordinate works perfect in HTC cells. But I find it doesn't work in Moto Droid. I debug it and find eveything seems fine. But the coordinate never obtained. Please read my code first: /// defining listener LocationListener locationListener = new LocationListe

[android-developers] Auto correct fail on soft keyboard

2010-01-27 Thread yidongsoft
I set the editText with these flag EditorInfo.TYPE_CLASS_TEXT|EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES| EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE| EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT And it works when I type in with my computer keyboard( the application is running in a emulator). But it fails wh

[android-developers] Re: icon in Droid is badly scaled

2010-01-14 Thread yidongsoft
't > in compatibility mode re supporting multiple screen resolutions by > setting your uses-sdk and supports-screen manifest elements to avoid > that. See the documentation for > details:http://developer.android.com/guide/practices/screens_support.html > > On Jan 14, 4:25 am, y

[android-developers] icon in Droid is badly scaled

2010-01-14 Thread yidongsoft
In my G2, the icon is ok. But in Droid, the icon look bad. The skeleton is good, but the icon is scaled and the icon looks cheap. I try to set the icon big in resolution, but the button enlarged and the balance of layout is break. Can any one help me to fix it? Thanks! icon is not the icon for app

[android-developers] Re: Droid screen resolution for layout directory

2010-01-14 Thread yidongsoft
Thank you, brother! On 1月14日, 上午9时10分, Mark Murphy wrote: > yidongsoft wrote: > > I am writing layout file for Droid Milestone. I set the directory to > > layout-854x480, but it doesn't work at all. > > That is not a recommended practice. > > > I then use: >

[android-developers] Droid screen resolution for layout directory

2010-01-13 Thread yidongsoft
I am writing layout file for Droid Milestone. I set the directory to layout-854x480, but it doesn't work at all. I then use: // get the screen size DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm);

[android-developers] decode character set with xml parsing

2009-12-05 Thread yidongsoft
Can any one help? When I parse am xml file containing Japanese, nothing but chaos. I set up the input reader with new InputStreamReader(url.openStream(), "UTF-8"); Would any body help me? the xml may contains Chinese, Japanese and English. Is there a general way to handle it? Thanks in advanced!

[android-developers] Re: Importing in aidl file

2009-12-02 Thread yidongsoft
gt; On Wed, Dec 2, 2009 at 5:10 AM, yidongsoft wrote: > > First of all, thank you for replying. > > > My aidl file is like this: > > > //IActions.aidl > > > package com.xyz.a; > > //import java.util.ArrayList; > > > interface IActions{ > > fl

[android-developers] Re: Importing in aidl file

2009-12-02 Thread yidongsoft
On Dec 2, 4:50 pm, sathya subbiah wrote: > Think you need to add the aidl path your make file and have to include in > your file > import com.xyz.fooPackage. > > Hope this helps you. > > On Wed, Dec 2, 2009 at 2:46 AM, yidongsoft wrote: > > I need a aidl file defining:

[android-developers] Importing in aidl file

2009-12-01 Thread yidongsoft
I need a aidl file defining: ArrayList getFoo(); I import ArrayList package and Foo with import java.util.ArrayList; import com.xyz.fooPackage; But eclipse keeps saying that can't find the importing class. Would anybody help me? Thank you! -- You received this message because you are subscrib

[android-developers] Market data loss

2009-11-18 Thread yidongsoft
My app is 10600/6902 moments ago, but now 3050/2038. two unpublished app is: 0/-1, 0/-15 Is Taliban destroying google's data centre? -- 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@go

[android-developers] Re: Android Market Anti-Piracy

2009-11-16 Thread yidongsoft
orderNumber empty or illegal, check the app state: if not free, unstall it. For a better convenience, market app should at least check the app after 2 days the user install it. What's your idea? Thanks! Yidongsoft -- You received this message because you are subscribed to the Google Groups &qu