[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 permis

[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 the

[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 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 looking at the

[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 stop

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

2010-08-07 Thread GodsMoon
sible bug? Thanks, David Shellabarger http://www.nightshadelabs.com twitter.com/godsmoon On Jul 22, 3:23 pm, Joseph Earl 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 awa

[android-developers] Re: IconPreferenceScreen that extends PreferenceScreen

2010-07-28 Thread GodsMoon
that again. On Jul 28, 1:24 am, Mark Murphy wrote: > On Wed, Jul 28, 2010 at 12:55 AM, GodsMoon 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 cli

[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
't know how the GC works. Thanks for the links guys. I'll keep reading. David Shellabarger www.nightshadelabs.com On Jul 22, 5:26 pm, GodsMoon wrote: > Perhaps the difference was because I was declaring my view in the > onCreate method instead of in the onPostExecute method of th

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

2010-07-22 Thread GodsMoon
though the activity is long gone. Am I on the right track here? David Shellabarger www.nightshadelabs.com On Jul 22, 4:09 pm, Joseph Earl wrote: > I am confused somewhat about the issue myself now. Hopefully someone > else it will clear it up once and for all. > > On Jul 22, 9:01 

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

2010-07-22 Thread GodsMoon
the UI 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 wrote: > > > > > T

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

2010-07-22 Thread GodsMoon
result > in a way that does not adversely affect memory usage (as much as > possible). In this case you will also want to use a Thread or Async > task to download/get the info off the UI thread. > > On Jul 22, 7:36 pm, GodsMoon wrote: > > > > > So you'd only want t

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

2010-07-22 Thread GodsMoon
>   } > > } > > > Essentially a weak reference is a weaker reference than a soft > > reference - the GC should free weak references to regain memory before > > soft references. > > > I think that's (mostly) correct, hope it helps. > > > On Jul 22, 6

[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, b

[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 d

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

2010-07-14 Thread GodsMoon
/godsmoon On Jul 14, 1:04 pm, Dianne Hackborn wrote: > What you describe is all there is. > > > > > > On Wed, Jul 14, 2010 at 9:04 AM, GodsMoon wrote: > > I posted this on Stack Overflow and didn't get an answer. Anybody here > > have an answer? > > > &q

[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 wrote: > I asked this on stackoverflow but I didn't get an > answer:http://stackoverflow.com/questions/3241739/detecting-butto

[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] 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 http://d.android.com/reference/android/content/res

[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 wrote: > Did you ever get this resolved? I'm having the same problem. > > Thanks > > On Apr 18, 1:27 am, hacksoft wrote: > > > >

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

2010-06-20 Thread GodsMoon
x27;t work in some > situations.  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. >

[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 wrote: > Sorry, my app disables the keyguard with disableKeyguard(). > This makes inKeyguardRestrictedInputMode() return true so clicking on > the home button brin

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

2010-06-19 Thread GodsMoon
> > > > > On Sat, Jun 19, 2010 at 11:03 AM, GodsMoon 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 contex

[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); intent.addCategory(Intent.CATEGOR

[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 wrote: > Ah! I didn't see put(String key, byte[] value) before in > ContentValues. > That will probably work. Thanks for the info and

[android-developers] Re: Janky Custom Cursor Adapter

2010-05-25 Thread GodsMoon
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 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 sqlit

[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 wrote: > GodsMoon wrote: > > I'm trying to link to the settings menu. > > The following code works great for stock Android but doesn&#

[android-developers] Settings Intent in Sense UI

2010-04-10 Thread GodsMoon
tySettings}; have you declared 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 subsc

[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 unsubscri

[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 wrote: > My 1st ADC 2 judging app is Smart Lock ^_^ interesting! > > On Tue, Sep 15, 2009 at 7:57 PM, GodsMoon wrote: > > > ping... > > > On Sep 8, 4:02 pm, GodsMoon wrot

[android-developers] Re: Home Screen Detection

2009-09-15 Thread GodsMoon
ping... On Sep 8, 4:02 pm, GodsMoon 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 >

[android-developers] Re: Home Screen Detection

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

[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 *"Chil

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
g a video of my app in action for the ADC2 fairly soon. I'll post back here once it is released the video. I'd love to get feedback to make sure I'm not doing anything I'm not suppose to. Thanks for your help. On Aug 29, 7:39 pm, Dianne Hackborn wrote: > On Sat, Aug

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
tton I've 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 wrote: > On Sat, Aug 29, 2009 at 11:52 AM, GodsMoon wrote: > > I'm writing an app that turns off the keyguard and I would like to

[android-developers] Re: Home Screen Detection

2009-08-29 Thread GodsMoon
d > to run home in a shared process, etc. > > > > On Sat, Aug 29, 2009 at 9:59 AM, GodsMoon wrote: > > > I have a solution for home screen detection, but its slow and > > horrible. > > I run this bit of code every 1 seconds. > > > ActivityManage

[android-developers] Re: BroadcastReceiver on Service

2009-08-29 Thread GodsMoon
of course). > > > > On Fri, Aug 28, 2009 at 9:06 PM, GodsMoon 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 wr

[android-developers] Re: Home Screen Detection

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

[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 wrote: > Can I Receive a Broadcast from a Service? > It seem I have to extend BroadcastReceiver to receive broadcasts but

[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, ho

[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 wrote: > ActivityManager : getRunningTasks(int) > > On Thu, Aug 27, 2009 at 6:24 PM, GodsMoon wrote: > > > That might be enough info for my app. > >

[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 wrote: > That might be enough info for my app. >

[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 wrote: > I would also like to know this? > Anybody? > > On Aug 20, 5:41 pm, STuFF wrote: > > > hi, > > > I wonder if it

[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 wrote: > On Aug 27, 5:40 pm, GodsMoon wrote: > > > I'm writing a back ground app and would like to be able to tell which > > app is currently running (actua

[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: get music player state

2009-08-27 Thread GodsMoon
I would also like to know this? Anybody? On Aug 20, 5:41 pm, STuFF 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 > onmusicstate changeme

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

2009-08-27 Thread GodsMoon
com/reference/android/app/AlarmManager.html > > Yusuf Saib > Android > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc

[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 wrote: > Now  I use the code follow: > > IPowerManager.Stub.asInterface(ServiceManager.getService > (Context.POWER_SERVICE)).goToSleep(6) > > But it still does not work. >

[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 (anybod

[android-developers] Re: list adapter for complex dynamic layouts

2008-04-30 Thread GodsMoon
Why does everybody love to extend the listAdapters? Just use the SimpleAdapter it takes an array of textviews. http://code.google.com/android/reference/android/widget/SimpleAdapter.html Here's an example with a curor simple adapter that does exactly what you want except with 2 textviews instead o

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

2008-04-21 Thread GodsMoon
t;? Commence voting! On Apr 21, 10:20 am, GodsMoon <[EMAIL PROTECTED]> wrote: > http://www.easy-poll.com/</a> > usluga.sonda.38109"> > http://www.easy- > poll.com" title="easy-poll.com: free online polls">easy-poll.com: free > online polls >

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

2008-04-21 Thread GodsMoon
http://www.easy-poll.com/ usluga.sonda.38109"> http://www.easy- poll.com" title="easy-poll.com: free online polls">easy-poll.com: free online polls http://www.easy- poll.com/" target="_blank">http://www.easy-poll.com/ sonda.gif" alt="free polls" border="0" /> Do you think Google will have an