[android-developers] Will android.permission.VIBRATE permission make my app invisible to tablets(in Android Market)?

2011-09-23 Thread Kakyoin
I've read about Android Market filtering which involve uses-feature tag. But what about permission? Will Android Market filter my app out if the device has no vibrator? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: OpenGL texture display properly on my phone. But 'white box' on some device?

2011-03-20 Thread Kakyoin
Hi. Sorry for taking so long to get back to you. It works now. =) The problem here is the alpha. I tried setting the alpha to 1.0 instead of 0.0 and it works. //solution gl.glColor4f(0.0f, 0.0f, 0.0f, 1.0f); Also thank you for the tips about drawable-nodpi/debugging the actual bitmap after

[android-developers] OpenGL texture display properly on my phone. But 'white box' on some device?

2011-03-17 Thread Kakyoin
Hi. My OpenGL texture display properly on my G1 and Motorola Milestone. (I only have these 2 devices to test) But on many other devices(reported by users), there's only a white box displaying instead of the texture. This bug also appear on Android 2.3 Emulator. My texture size is 128x256 in

[android-developers] Re: OpenGL texture display properly on my phone. But 'white box' on some device?

2011-03-17 Thread Kakyoin
*** Update *** Today I just updated my Motorola Milestone to Android 2.2 and this bug is now happening on my device !! The texture was displaying fine when my Milestone was Android 2.1 yesterday. I hope this piece of info will greatly help solving this problem. -- You received this message

[android-developers] I'm using onSensorChanged(). What should I specify in uses-feature ?

2010-11-30 Thread Kakyoin
Hi. I've checked the doc here: http://developer.android.com/guide/topics/manifest/uses-feature-element.html and found 2 most relevant features: 1) android.hardware.sensor.accelerometer 2) android.hardware.sensor.compass Which one do I need to specify in my manifest? Or both? Yes, I'm sure

[android-developers] Extremely weird Null Pointer exception. Please help.

2010-09-29 Thread Kakyoin
Hi. I'll try to explain the situation as clear as possible. I'll provide all the data I can. My problem is: I click on a checkbox in my PreferenceActivity activity and got a Null pointer exception. I took it from the API demo app. I also borrow LunarView and LunarThread from Lunar Lander

[android-developers] Re: Extremely weird Null Pointer exception. Please help.

2010-09-29 Thread Kakyoin
To point out the problem: How did mLunarThread object suddenly become null at line 352 of GameActivity.java ?? -- 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

[android-developers] What'll happen if I don't call Looper.quit()?

2010-09-28 Thread Kakyoin
Hi. Allow me to make another thread exclusively for this. I'm sure other dev would want to know as well. According to the doc here: http://developer.android.com/reference/android/os/Looper.html#loop() -- public static final

[android-developers] Looper.prepare() question

2010-09-27 Thread Kakyoin
Hi. I'm trying to initialize OpenFeint in my game like this: - protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); OpenFeintSettings settings = new OpenFeintSettings(xxx,

[android-developers] Force close/wait popup while in onCreate().

2010-09-22 Thread Kakyoin
Hi. My situation: I've a lot of initialization code in my main activity's onCreate(). When I launch my game, the screen goes black for a long time, then my game appears. I did logged some message at the start and end of onCreate() and found that onCreate() is executing its code while the screen

[android-developers] Need guidance in making the game's logic supporting multiple screens.

2010-07-25 Thread Kakyoin
Hi. I've read the article Supporting Multiple Screen on Android developers site. But that doesn't apply to game logic. Let me get straight to the point. My situation is as follows: - I'm creating a game using LunarLander code as a base. - In my game, there'll be an object flying up from the

[android-developers] [Copyright question] Can I use Mozart's music in my Android apps/games?

2010-06-26 Thread Kakyoin
Hi. Can I use Mozart or Beethoven music in my Android apps/games? Will I get arrested for doing that? I'm pretty sure their music are in public domain though. Thank you in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] How to detect blowing in to the microphone?

2010-04-08 Thread Kakyoin
How to detect blowing in to the microphone? I saw an iPhone app which simulate flute instrument. You blow through the mic and use your fingers to play. Can Android do that? I've looked at the voice recognition in the API demos but it seems that is not the case. -- You received this message

[android-developers] What to do when other 'Home' app crashes? Reboot only?

2009-03-11 Thread Kakyoin
Hi. I should post this as a follow-up to my previous thread. But I think this problem (may be) somewhat big so I create a new thread: 1. If a user install an alternative to 'Home'. (I'll call it 2nd Home) 2. He set this 2nd Home to launch by default for 'Home' action. 3. Whenever this 2nd

[android-developers] Is it possible to clear defaults by code? (after setting 'Use by default for this action'')

2009-03-10 Thread Kakyoin
Topic. I'm playing with the alternative Home app that comes with the SDK. I can set this as default for 'Home' action. I can unset this by --Setting-Manage Application-My Alternative Home- clear defaults Question: How to do this clear defaults by code? I've browsed the forums but cannot

[android-developers] How to explicitly launch the system's Home application by code?

2009-03-10 Thread Kakyoin
Topic. Short and sweet question. And I did browse the forum before asking. Thank you in advance. --~--~-~--~~~---~--~~ 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] Re: How to explicitly launch the system's Home application by code?

2009-03-10 Thread Kakyoin
/android/content/Intent.html On Tue, Mar 10, 2009 at 2:20 PM, Kakyoin lgmc...@gmail.com wrote: Topic.  Short and sweet question. And I did browse the forum before asking. Thank you in advance. Hi. Thank you for the reply. But actually I do have another Alternative Home application (which

[android-developers] Re: Is it possible to clear defaults by code? (after setting 'Use by default for this action'')

2009-03-10 Thread Kakyoin
If it's not possible, then is there a way to check if my Alternative Home is currently being set as default or not ? Thank you again. =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Is it possible to clear defaults by code? (after setting 'Use by default for this action'')

2009-03-10 Thread Kakyoin
If it's not possible, then is there a way to check if my Alternative Home is currently being set as default or not ? Thank you again. =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Is it possible to clear defaults by code? (after setting 'Use by default for this action'')

2009-03-10 Thread Kakyoin
If it's not possible, then is there a way to check if my Alternative Home is currently being set as default or not ? Thank you again. =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: How to explicitly launch the system's Home application by code?

2009-03-10 Thread Kakyoin
Hi. Thank you all for the answers. Launching by class name was very helpful for now but following your advice, I'll not use that method. _ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] How to draw an image on top of another drawable?

2008-11-30 Thread Kakyoin
Hi. I'm playing with the Home sample (the one that is bundled with the SDK) I can change the Home screen background using this: getWindow().setBackgroundDrawable(image_mountain); Now I have a mountain as a background of my Home screen. Now let's assume I have a picture of a moon.

[android-developers] How to get the current city/country name?

2008-11-25 Thread Kakyoin
Is it possible to get the city name(I mean the city where the phone is in at the current time)? I need it as a parameter for google weather API, like this: http://www.google.com/ig/api?weather=city_name,country_name I tried browsing the classes in android.location package but have yet to find

[android-developers] How to make a Service run ONLY when no other app is running?

2008-11-17 Thread Kakyoin
I've successfully created a service that change the wallpaper every 2 seconds. My next goals: I want this service to... - auto-stop itself when user launch other app. - auto-start itself when the wallpaper is visible. (eg. when users close all other apps) The only clue I have is, when user

[android-developers] Need help animating the System Wallpaper.

2008-11-17 Thread Kakyoin
This is my Service. It's a simple service which use Handler to invoke setWallpaper() every 2 seconds. [code] package com.mseer.testservice; import java.io.IOException; import java.io.InputStream; import android.app.Service; import android.content.Context; import android.content.Intent; import

[android-developers] How to check if System Wallpaper is now Visible to the user?

2008-11-17 Thread Kakyoin
Hi. I'm creating a Service that will run in the background and do many tasks. And one of those tasks will need to verify that the wallpaper is currently visible to the user or not. Is threre a way to check(by code) if the System Wallpaper is currently 'visible' to the user? (eg. when the user