[android-developers] System signing a test suite

2011-02-27 Thread GodsMoon
I'm writing a testing suite (for personal use only) for my other apps that triggers system intents. I know I need to add android:sharedUserId=android.uid.system to my android manifest in the manifest tag and I need to install my app in / system/app instead of the normal /data/data to have

[android-developers] Re: Parental Control Applications for Android

2011-01-24 Thread GodsMoon
I would check out my app, Smart Lock. It is the only Android app that I am aware of that allows you to white list apps that are safe for kids. I'm working on a more comprehensive parental controls solution. I'd love to hear from you. Find out more on my website: www.nightshadelabs.com On Jan 21,

[android-developers] Re: how to detect if a phone is running HTC sense UI

2010-09-27 Thread GodsMoon
Looks like a good solution for an unfortunate problem David. Anyone know what package is MotoBlur would be? @Dianne I'm using this to instruct the user to change the Lock phone after or the Security lock timer for SenseUI or MotoBlur respectively. I need to use the right terminology. Also these

[android-developers] Re: Apkbuilder problems with new android SDK tools revision 7

2010-09-14 Thread GodsMoon
I have the exact same problem. I'll check ant_rules_r3.xml for the fix tonight. On Sep 14, 1:10 pm, Xavier Ducrohet x...@android.com wrote: To support library projects properly (with dependencies on library), we've had to change this custom task a bit (also did some clean up). I'd recommend

[android-developers] SeekBar.OnSeekBarChangeListener only Touch Events

2010-08-30 Thread GodsMoon
Anybody else find it weird that OnSeekBarChangeListener has a onStartTrackingTouch and a onStopTrackingTouch method but no corresponding non-touch methods? I have a SeekBar that acts as the volume control of the phone. When I slide it I want to play a sound. I only want to play a sound when it

[android-developers] Re: LOCK_PATTERN_ENABLED on API 8 (Froyo)

2010-08-07 Thread GodsMoon
Shellabarger http://www.nightshadelabs.com twitter.com/godsmoon On Jul 22, 3:23 pm, Joseph Earl joseph.w.e...@gmail.com wrote: It is working correctly.LOCK_PATTERN_ENABLEDtells you only about if the lock pattern is enabled. It has nothing to do with the password as far as I am aware. I'm afraid

[android-developers] Re: IconPreferenceScreen that extends PreferenceScreen

2010-07-28 Thread GodsMoon
. On Jul 28, 1:24 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jul 28, 2010 at 12:55 AM, GodsMoon godsm...@gmail.com wrote: I can copy that into my project without problem, but I'd like the behavior of the PreferenceScreen instead of just the Preference Class. I could like to click

[android-developers] IconPreferenceScreen that extends PreferenceScreen

2010-07-27 Thread GodsMoon
I would like to have a Preferences activity that has icons like the system settings has had since Eclair. It uses a special Preference called IconPreferenceScreen. Link: http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/IconPreferenceScreen.java

[android-developers] Re: What is a WeakReference?

2010-07-23 Thread GodsMoon
the GC works. Thanks for the links guys. I'll keep reading. David Shellabarger www.nightshadelabs.com On Jul 22, 5:26 pm, GodsMoon godsm...@gmail.com wrote: Perhaps the difference was because I was declaring my view in the onCreate method instead of in the onPostExecute method of the AsyncTask

[android-developers] What is a WeakReference?

2010-07-22 Thread GodsMoon
Google just posted a new blog post on http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html. I understand the AsyncTask and I'm even using one in a list with images already. But I don't understand what a WeakReference is. I gather is is a garbage collector directive,

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread GodsMoon
it helps. On Jul 22, 6:48 pm, GodsMoon godsm...@gmail.com wrote: Google just posted a new blog post onhttp://android-developers.blogspot.com/2010/07/multithreading-for-per I understand the AsyncTask and I'm even using one in a list with images already. But I don't understand what

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread GodsMoon
a Thread or Async task to download/get the info off the UI thread. On Jul 22, 7:36 pm, GodsMoon godsm...@gmail.com wrote: So you'd only want to use WeakReference when you think your activity might run out of memory? But a list view already does efficient memory management for you right

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread GodsMoon
thread no longer exists. Thus the downloader thread should only store a weak reference to the ImageView so that if the UI thread is killed the GC may reclaim the memory associated with the ImageView. On Jul 22, 8:34 pm, GodsMoon godsm...@gmail.com wrote: The blog post is confusing. Note

[android-developers] Re: What is a WeakReference?

2010-07-22 Thread GodsMoon
, 9:01 pm, GodsMoon godsm...@gmail.com wrote: I have done something like that and got a null pointer reference. I was starting a AsyncTask and if you backed out of the activity before the AsyncTask was finished I would get a null pointer when I tried to refer to the activities elements

[android-developers] Re: Any chance to deactivate the lock pattern in Froyo from code?

2010-07-18 Thread GodsMoon
@Anders and @Brad Gies, If you are frustrated with not having a lock timer, I'd suggest checking out Smart Lock. Its a good alternative while we wait for Google to make the lock screen situation better. Smart Lock lets you use one app, and only one app at a time, without unlocking your phone. It

[android-developers] Re: problem accessing widget in Preference widgetLayout

2010-07-14 Thread GodsMoon
I think you need to do findPreference instead of findViewById. so like: ib = (Preference) findPreference(displayimagekey); Hope that helps. On Jun 1, 3:20 pm, Noah noah.belc...@gmail.com wrote: Did you ever get this resolved? I'm having the same problem. Thanks On Apr 18, 1:27 am, hacksoft

[android-developers] Detecting button type of front nav keys

2010-07-14 Thread GodsMoon
I posted this on Stack Overflow and didn't get an answer. Anybody here have an answer? I would like to detect if the navigation keys of the front of the phone (Home,Menu,Back,Search) are hard-keys (ex. G1) or soft-keys (ex. Nexus One). This api

[android-developers] Detecting button type of front nav keys

2010-07-14 Thread GodsMoon
I asked this on stackoverflow but I didn't get an answer: http://stackoverflow.com/questions/3241739/detecting-button-type-of-front-nav-keys Can anybody help me out? I would like to detect if the navigation keys of the front of the phone (Home,Menu,Back,Search) are hard-keys (ex. G1) or soft-keys

[android-developers] Re: Detecting button type of front nav keys

2010-07-14 Thread GodsMoon
Sorry dup. please ignore. Google Groups is acting strangely for me. There is not a link to this post from my profile page... On Jul 14, 3:06 pm, GodsMoon godsm...@gmail.com wrote: I asked this on stackoverflow but I didn't get an answer:http://stackoverflow.com/questions/3241739/detecting

[android-developers] Re: Detecting button type of front nav keys

2010-07-14 Thread GodsMoon
/godsmoon On Jul 14, 1:04 pm, Dianne Hackborn hack...@android.com wrote: What you describe is all there is. On Wed, Jul 14, 2010 at 9:04 AM, GodsMoon godsm...@gmail.com wrote: I posted this on Stack Overflow and didn't get an answer. Anybody here have an answer? I would like to detect

[android-developers] Re: Mimic Home button in software

2010-06-20 Thread GodsMoon
.  For example starting in Froyo it will not work when a device admin is requiring the user have a lock screen, since disabling uncontrollably (not using one of the newer window flags) would conflict with the security the admin is enforcing. On Sat, Jun 19, 2010 at 6:10 PM, GodsMoon godsm

[android-developers] Mimic Home button in software

2010-06-19 Thread GodsMoon
I would like the back button to work exactly like the home button in my activity. I know that doesn't sounds like something I would want to do, but it makes sense in the context of my app. I've tried an intent: Intent intent = new Intent(Intent.ACTION_MAIN, null);

[android-developers] Re: Mimic Home button in software

2010-06-19 Thread GodsMoon
, 2010 at 11:03 AM, GodsMoon godsm...@gmail.com wrote: I would like the back button to work exactly like the home button in my activity. I know that doesn't sounds like something I would want to do, but it makes sense in the context of my app. I've tried an intent: Intent intent = new Intent

[android-developers] Re: Mimic Home button in software

2010-06-19 Thread GodsMoon
special lockscreen looks like this btw http://nightshadelabs.appspot.com/static/lockscreen.png On Jun 19, 9:10 pm, GodsMoon godsm...@gmail.com wrote: Sorry, my app disables the keyguard with disableKeyguard(). This makes inKeyguardRestrictedInputMode() return true so clicking on the home

[android-developers] Re: Janky Custom Cursor Adapter

2010-05-26 Thread GodsMoon
It looks like the Twitter app does AsyncTask correctly in a list view. Can't wait for it to be open sources! On May 25, 4:53 pm, GodsMoon godsm...@gmail.com wrote: Ah! I didn't see put(String key, byte[] value) before in ContentValues. That will probably work. Thanks for the info and the link

[android-developers] Re: Janky Custom Cursor Adapter

2010-05-25 Thread GodsMoon
...@gmail.com wrote: A Cursor returned by a SQLiteDatabase query can indeed get a blob. http://developer.android.com/reference/android/database/Cursor.html#g...) http://www.tutorialforandroid.com/2009/10/how-to-insert-image-data-to... On May 24, 11:16 pm, GodsMoon godsm...@gmail.com wrote

[android-developers] Janky Custom Cursor Adapter

2010-05-24 Thread GodsMoon
I have a Custom Cursor Adapter. It shows a list of installed applications with an icon, name and checkbox on each line item. I cache the list of applications in a database for faster retrieve and to store the state of the checkbox. However, I can't store the application icon in the db because

[android-developers] Settings Intent in Sense UI

2010-04-10 Thread GodsMoon
this activity in your AndroidManifest.xml? I don't have a phone with the HTC Senese UI. How do I link to settings menu on the HTC Legend? Thanks David Shellabarger www.goldfishview.com twitter.com/godsmoon -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Settings Intent in Sense UI

2010-04-10 Thread GodsMoon
I was actually looking for Settings.ACTION_SECURITY_SETTINGS but your comment lead me right to it. Thanks. On Apr 10, 5:36 pm, Mark Murphy mmur...@commonsware.com wrote: GodsMoon wrote: I'm trying to link to the settings menu. The following code works great for stock Android but doesn't work

[android-developers] Re: Reusable Android library packaging: interest?

2010-03-29 Thread GodsMoon
To be honest, I would prefer to be able to specify package dependencies, much like linux distros do. That way I wouldn't have to bloat my app with source from other libs and I would make a non open source app a dependency even. However, I don't think we can do that without Google getting involved.

[android-developers] ADC2 Results Post

2009-11-05 Thread GodsMoon
Since the Android Challenge Group seems to be closed I'll post here. What results did you get from Google? -- 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] Re: Home Screen Detection

2009-09-24 Thread GodsMoon
Hong, I hope you like it. If you have any issues please email me :) On Sep 24, 4:03 pm, Hong lordh...@gmail.com wrote: My 1st ADC 2 judging app is Smart Lock ^_^ interesting! On Tue, Sep 15, 2009 at 7:57 PM, GodsMoon godsm...@gmail.com wrote: ping... On Sep 8, 4:02 pm, GodsMoon godsm

[android-developers] Re: Home Screen Detection

2009-09-15 Thread GodsMoon
ping... On Sep 8, 4:02 pm, GodsMoon godsm...@gmail.com wrote: Dianne, I've published a video to give you a better idea of the problem I'm having with the back button protection. Hopefully my video helps show the problem I am having.http://www.youtube.com/watch?v=ipue9Yhi5VA The bug I

[android-developers] Re: Home Screen Detection

2009-09-08 Thread GodsMoon
and I'm excited to release it soon. Thanks for the input, David Shellabarger On Sep 3, 5:39 pm, Hong lordh...@gmail.com wrote: I found the video:http://www.youtube.com/watch?v=ipue9Yhi5VA NICE WORK! On Sat, Aug 29, 2009 at 9:23 PM, GodsMoon godsm...@gmail.com wrote: I admit that what I'm

[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-02 Thread GodsMoon
Tools: Smart Lock Description: Smart Lock increases the usability and security of your phone. It allows you to instantly and securely use the last application you opened after your phone goes to sleep. Smart Lock is perfect for: *Listening to Music while Running *Using Google Maps on the Go

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
this? On Aug 28, 2:41 pm, Dianne Hackborn hack...@android.com wrote: They are described here:http://developer.android.com/guide/topics/fundamentals.html On Fri, Aug 28, 2009 at 10:53 AM, GodsMoon godsm...@gmail.com wrote: What's the difference between a Task and a Process for ActivityManager

[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread GodsMoon
() in onDestroy() of course). On Fri, Aug 28, 2009 at 9:06 PM, GodsMoon godsm...@gmail.com wrote: Looks like I answered my own question. There is a  peekService  method in BroadcastReceiver for interacting with existing Services. On Aug 28, 11:50 pm, GodsMoon godsm...@gmail.com wrote: Can I

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
in a shared process, etc. On Sat, Aug 29, 2009 at 9:59 AM, GodsMoon godsm...@gmail.com wrote: I have a solution for home screen detection, but its slow and horrible. I run this bit of code every 1 seconds. ActivityManager actvityManager = (ActivityManager) this.getSystemService

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
created a bug report. http://code.google.com/p/android/issues/detail?id=3715 Thanks for your help. On Aug 29, 3:41 pm, Dianne Hackborn hack...@android.com wrote: On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon godsm...@gmail.com wrote: I'm writing an app that turns off the keyguard and I would like

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
, GodsMoon godsm...@gmail.com wrote: Dianne Hackborn, Are you familiar with the KeyguardManager class? Its really cool, I haven't seen anything like it on any other platform and I'm excited to take advantage of it. http://developer.android.com/reference/android/app/KeyguardManager.html Yes I am

[android-developers] Re: Home Screen Detection

2009-08-28 Thread GodsMoon
I was looking at the Package Manager api, but it looks like the Process api might be more useful. http://developer.android.com/reference/android/os/Process.html Has anybody used this before or have an example? On Aug 27, 6:24 pm, GodsMoon godsm...@gmail.com wrote: That might be enough info

[android-developers] Re: Home Screen Detection

2009-08-28 Thread GodsMoon
What's the difference between a Task and a Process for ActivityManager? On Aug 28, 1:46 pm, Hong lordh...@gmail.com wrote: ActivityManager : getRunningTasks(int) On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon godsm...@gmail.com wrote: That might be enough info for my app. Which api are you

[android-developers] BroadcastReceiver on Service

2009-08-28 Thread GodsMoon
Can I Receive a Broadcast from a Service? It seem I have to extend BroadcastReceiver to receive broadcasts but I'm already extending Service and I can't extend 2 classes. Do I set up an additional Activity to receive broadcasts and then just pass stuff to the already running Service. And if so,

[android-developers] Re: BroadcastReceiver on Service

2009-08-28 Thread GodsMoon
Looks like I answered my own question. There is a peekService method in BroadcastReceiver for interacting with existing Services. On Aug 28, 11:50 pm, GodsMoon godsm...@gmail.com wrote: Can I Receive a Broadcast from a Service? It seem I have to extend BroadcastReceiver to receive broadcasts

[android-developers] Re: How to make device to sleep?

2009-08-27 Thread GodsMoon
, GodsMoon godsm...@gmail.com wrote: I would like to know how to put the device tosleepand how to wake it up as well. Anybody? On Jul 20, 9:45 pm, Sansiro wangjiangfeng0...@gmail.com wrote: Now  I use the code follow: IPowerManager.Stub.asInterface(ServiceManager.getService

[android-developers] Re: get music player state

2009-08-27 Thread GodsMoon
I would also like to know this? Anybody? On Aug 20, 5:41 pm, STuFF nchall...@gmail.com wrote: hi, I wonder if it's possible to getmusicplayer state, like which is the currentmusicplaying, title, author and so on ? Better, is it possible for an activity (or a service) to be notified

[android-developers] Home Screen Detection

2009-08-27 Thread GodsMoon
I'm writing a back ground app and would like to be able to tell which app is currently running (actually has focus). I'm particularly interested in if the Home screen is being shown. Can anyone help with this? --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Home Screen Detection

2009-08-27 Thread GodsMoon
That might be enough info for my app. Which api are you looking at? On Aug 27, 6:06 pm, Chris Stratton cs07...@gmail.com wrote: On Aug 27, 5:40 pm, GodsMoon godsm...@gmail.com wrote: I'm writing a back ground app and would like to be able to tell which app is currently running (actually

[android-developers] Re: get music player state

2009-08-27 Thread GodsMoon
Look's like this might do the trick. http://developer.android.com/reference/android/media/MediaPlayer.html On Aug 27, 4:19 pm, GodsMoon godsm...@gmail.com wrote: I would also like to know this? Anybody? On Aug 20, 5:41 pm, STuFF nchall...@gmail.com wrote: hi, I wonder if it's possible

[android-developers] Re: How to make device to sleep?

2009-08-25 Thread GodsMoon
I would like to know how to put the device to sleep and how to wake it up as well. Anybody? On Jul 20, 9:45 pm, Sansiro wangjiangfeng0...@gmail.com wrote: Now  I use the code follow: IPowerManager.Stub.asInterface(ServiceManager.getService (Context.POWER_SERVICE)).goToSleep(6) But it

[android-developers] Re: How would you like your app marketed?

2008-05-30 Thread GodsMoon
Ideally I would like a Google run store that was loaded on all google phones so all users to browse and rate apps. Maybe even watch a video of the app in action before they made a purchase. Have a very flexible sales scheme: free, free trial, one time purchase, subscription, shareware, etc

[android-developers] Will Google have an App Store?

2008-04-21 Thread GodsMoon
script type=text/javascript src=http://www.easy-poll.com/ usluga.sonda.38109/script div style=margin : 5px; background-color : #EE; width: 160px; border : 1px solid #CC; padding : 2px;a href=http://www.easy- poll.com title=easy-poll.com: free online pollseasy-poll.com: free online