[android-developers] Re: java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-03-07 Thread Chopcsu
Yeah this happened to me on upgrading to ADT 10, reinstall eclipse,reinstall android sdk and a policy to never update ADT or android SDK anywhere near milestones fixed it fine. On Mar 8, 4:37 pm, Xavier Ducrohet x...@android.com wrote: ugh, we'll fix this asap. Xav On Mon, Mar 7,

[android-developers] java.lang.NullPointerException encountered while running Android Pre Compiler.

2011-02-23 Thread Chopcsu
Hi All, I have just installed ADT 10 with SDK 3.0. Eclipse has been working ok, but now all of a sudden my project has broken down with eclipse either complaining there is something wrong with xml files where there is nothing wrong (tested on a non adt10 eclipse and works fine) or giving errors

[android-developers] ContactsContract.Contact Not fully Aggregated

2010-10-21 Thread Chopcsu
I have found that the ContactsContract.Contact table contains the same contact multiple times for different accounts. i.e I have one 'dave' with com.google account and another in with vnd.sec.contact.sim . I thought the Contact table is supposed to be an aggregate of RawContacts automatically

[android-developers] Why use nested AnimationSets

2010-09-19 Thread Chopcsu
Can anyone explain the use of Nested AnimationSets defined in xml. As far as I can understand it you would use them so that everything within took some of the properties from its parent. I can not really see the use of nesting them, can any one give an example that uses nested AnimationSets and

[android-developers] TrueType fails to load on android 2.2

2010-08-06 Thread Chopcsu
Hi All I am experiencing a problem where I can not load a truetype font in android 2.2 but loads fine in all versions prior. I get the error java.lang.RuntimeException: native typeface cannot be made when calling Typeface.createFromAsset(Resources.getSystem().getAssets(),/ font.ttf); Any

[android-developers] Launching Song picker

2010-07-08 Thread Chopcsu
Was trying to find out how to launch the android music players' song selecter activity, Couldn't find how to do this on the net so I thought I would post it here now that I have figured it out very simple Intent intent = new Intent(Intent.ACTION_PICK);

[android-developers] reverseGeocode(): no feature in GLocation

2010-03-15 Thread Chopcsu
I am trying to run a reverse geocode using a GeoCoder. When calling geoCoder.getFromLocation(double lat,double lon,int maxresults) with the parameters (37.6, -141.1 , 1) I get the error reverseGeocode(): no feature in GLocation Any ideas why this is not working, as it was correctly returning

[android-developers] Re: reverseGeocode(): no feature in GLocation

2010-03-15 Thread Chopcsu
Also the tag on the error isLocationMasfClient -- 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@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: reverseGeocode(): no feature in GLocation

2010-03-15 Thread Chopcsu
The same code is working on a device. -- 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@googlegroups.com To unsubscribe from this group, send email to

[android-developers] PopupWindow on activity start

2010-02-21 Thread Chopcsu
I am trying to make a PopupWindow show straight away when an activity has started. when calling public void showAtLocation (View parent, int gravity, int x, int y) I get the exception ERROR/AndroidRuntime(2500): Caused by: android.view.WindowManager $BadTokenException: Unable to add window --

[android-developers] Re: Widget does not render on wvga854 ?

2009-12-30 Thread Chopcsu
Ive had a similar problem where updateAppWidget does not cause an update. For me it is usually only the first time you install on the emulator (think most 2.0 versions do this, not 1.5, 1.6 does i think) if you restart the emulator (without deleting installed widget) the upate will work. I have

[android-developers] Re: Widget does not render on wvga854 ?

2009-12-30 Thread Chopcsu
on the screen) On Dec 31, 1:11 pm, Chopcsu st...@kilsby.com.au wrote: Ive had a similar problem where updateAppWidget does not cause an update. For me it is usually only the first time you install on the emulator (think most 2.0 versions do this, not 1.5, 1.6 does i think) if you restart

[android-developers] Screen density screen layout size

2009-12-13 Thread Chopcsu
Hi, I am having problems getting Android to use the correct resources. I am trying to have it pick the correct resources across all densitys and screen layouts orientations. So I have created the directory structure as follows drawable drawable-large drawable-large-land drawable-large-port

[android-developers] Re: Detecting screen size group (normal,large, small)

2009-12-07 Thread Chopcsu
On Dec 7, 1:40 pm, Chopcsu st...@kilsby.com.au wrote: I am trying to detect if the screen size isnormal, large or small. I am using Configuration conf =view.getResources().getConfiguration(); (conf.screenLayoutConfiguration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL

[android-developers] Re: Detecting screen size group (normal,large, small)

2009-12-07 Thread Chopcsu
And density detection is done by DisplayMetrics.densityDpi On Dec 8, 4:58 pm, Chopcsu st...@kilsby.com.au wrote: Ok I have determined half the problem Although I was using 480x800(or 854), it still thought it was anormal size screen with hdpi So now im searching for how to detect dpi

[android-developers] Detecting screen size group (normal,large, small)

2009-12-06 Thread Chopcsu
I am trying to detect if the screen size is normal, large or small. I am using Configuration conf =view.getResources().getConfiguration(); (conf.screenLayoutConfiguration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL When testing with the emulator this works for screen

[android-developers] Re: Can't receive UDP packets correctly

2009-11-15 Thread Chopcsu
Does byte[] array actually only have 1 byte in it? Could be that the getLength call is just incorrect. On Nov 13, 6:16 am, Pierre pierredur...@gmail.com wrote: I use Android 1.5 on HTC Hero My code (udp server on my phone) : this.socket = new DatagramSocket(port); byte[] array = new

[android-developers] Locking input language

2009-11-12 Thread Chopcsu
I have got an app that i want input to only be allowed with english characters. I am using a EditText widget in a dialog box, but the user can freely change between english and chinese input. Just wondering if the virtual keyboard can be locked to english input only? -- You received this

[android-developers] Android 2.0 vs 1.6 not running

2009-11-10 Thread Chopcsu
I Have an app that is running fine in 1.6, I have now updated my sdk to 2.0 and the app never starts properly I was wondering if anyone had an idea of what would stop an app running on the newer version that runs fine usually. Once it is started, it runs threads correctly, but nothing gets

[android-developers] Re: Android 2.0 vs 1.6 not running

2009-11-10 Thread Chopcsu
Found the culprit. I was calling Looper.prepare() in a thread outside of the main paint thread, It seemed this stopped the painting. Strange that 2.0 would not work but 1.6 worked. On Nov 10, 5:03 pm, Chopcsu st...@kilsby.com.au wrote: I Have an app that is running fine in 1.6, I have now