[android-developers] Re: Test if screenlock is enabled

2012-10-26 Thread Kevin TeslaCoil Software
Aside from Device Admin, there is no API or official way for an app to retrieve for this information. Also, of the top of my head, your query for the pattern won't work on Jellybean (or maybe only works if they configured the pattern before upgrading to Jellybean?). -Kevin On Friday, October

Re: [android-developers] Is it legal to implement APK's silent installation for commercial use?

2012-10-26 Thread Kevin TeslaCoil Software
I would guess that they simulate a user clicking INSTALL from the web based Play Store. I believe this would be technically doable if they either had the user login or had the users Google password. Then the Play Store takes care of pushing the app to the device and installing it in the

[android-developers] Re: Problem with hashing speed

2012-05-30 Thread Kevin TeslaCoil Software
For doing these kinds of benchmark you might want to check out Vogar http://code.google.com/p/vogar and Caliper http://code.google.com/p/caliper/ They can be used for running microbenchmarks on Android (and elsewhere). There's some benchmark's at http://code.google.com/p/dalvik/ that can be

[android-developers] Re: Will we ever be allowed to make custom widget pickers?

2012-04-03 Thread Kevin TeslaCoil Software
Currently there is no way to avoid using the built in widget selection UI (the list of widgets you get in gingerbread when you add a widget). This kind of sucks because it means you can't have anything like the ICS launcher's widget page. Also the system widget picker in ICS doesn't

[android-developers] Custom Permission and installation order

2012-02-21 Thread Kevin TeslaCoil Software
I'm trying to implement a custom permission to be used between two of my apps. In AppA I declare: uses-permission android:name=com.teslacoilsw.TEST_PERMISSION / And in AppB I declare: permission android:name=com.teslacoilsw.TEST_PERMISSION android:label=TeslaCoil Test

[android-developers] Re: Hardware accleration slow down every Canvas app. Why?

2012-01-16 Thread Kevin TeslaCoil Software
The widget / app selector on my Galaxy Nexus does stutter somewhat, but if I scroll it all the way and then back again, it then animates much smoother. Based on this, I'd think it's the app / widget icon cache population, not the drawing. There are stutters at times in the app/widget

[android-developers] Re: AppWidgets Disappearing from list in ICS

2012-01-05 Thread Kevin TeslaCoil Software
I've actually been hacking at the ICS Launcher2 code so I figured I'd give the widget a try. In my case (GSM Galaxy Nexus, 4.0.2) I keep getting a NullPointerException in your AwesomeClockActivity.setTextColour (trace below). Happens with stock 4.0.2 launcher as well as Nova Launcher (my app,

[android-developers] Re: question about lockscreens

2011-12-18 Thread Kevin TeslaCoil Software
But does this mean that you guys are opposed to well known apps such as WidgetLocker, or Lockscreen Agenda? Well I'm the developer of WidgetLocker, so I'm not opposed to it at all :P. But this list is about developing apps that following the documentation, guidelines and restrictions of the

[android-developers] Re: call the default home screen from application?

2011-12-15 Thread Kevin TeslaCoil Software
Since you want to call the default home, you can just send a generic home intent and let the system call the appropriate app. No need to use the resolver manually. Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME);

[android-developers] Re: Detect that user entered the lock screen password

2011-12-15 Thread Kevin TeslaCoil Software
No, I've looked into it as well. Depending on your setup you might be able to time screen off until user present and compare against the system settings, but that's not a very good solution and I wouldn't recommend it. -Kevin On Dec 15, 1:20 pm, CT ctm...@gmail.com wrote: I was wondering if

[android-developers] Re: Can the LVL check for Paid app be done from my free app ?

2011-12-06 Thread Kevin TeslaCoil Software
Recently there was a discussion on reddit.com/r/Android about a new app being unlocked by in-app-purchase. Users were wishing for an unlock key app or pro version. IIRC their reasons were: 1) Permissions could be less on a pro version (no ads) 2) Fear/uncertainty about if the license would carry

[android-developers] Re: ICS Hardware Acceleration crash

2011-12-05 Thread Kevin TeslaCoil Software
On Dec 5, 12:01 pm, Romain Guy romain...@android.com wrote: This setting is unfortunately a double-edged sword, it was intended for developers so they could easily test their application with hardware acceleration turned on. I interpreted the setting as an aggressive move to make developers

[android-developers] Re: Stealing an apk wirelessly

2011-11-30 Thread Kevin TeslaCoil Software
Unless you friend looks like a pirate, you don't have much to worry about :) Well, he wears an eye-patch, but he said it's because he took a peg- leg to it a few years back. Do I have reason to worry? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: How secure are SharedPreferences on rooted devices?

2011-11-24 Thread Kevin TeslaCoil Software
I'm just trying to understand how secure is SharedPreferences and what alternatives are there, that's all. On a rooted device SharedPreferences absolutely can be tampered with. Same with any on-device storage. However this doesn't mean you can't use them. 1) Obfuscation. This is how Google

[android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Kevin TeslaCoil Software
Actually in a normal build the resources.arsc file isn't zip compressed with the other files are and it can be quite large. Manually running aapt can compress it (and does by default), but then you get really weird force closes on some froyo devices. I've been meaning to ask about why this is.

[android-developers] Re: Android 4, still no preprocessing.

2011-10-19 Thread Kevin TeslaCoil Software
Related from the SwiftKey devs: http://www.swiftkey.net/building-apks-with-different-features-from-a-single-source For my setup I use ant to do release builds, eclipse to do debug builds. I build for three markets (Google, Amazon, and direct-purchase/ beta). Each has it's own requirements (copy

[android-developers] Re: Application force close after change it from /system/app to /data/

2011-08-29 Thread Kevin TeslaCoil Software
Removing an APK from /system/app won't clean up the left overs in / data/data. I'd bet that the UID changes and then your properly installed app can't read the database. 1) Don't install apps to /system/app 2) Don't leave crap in /data/data when removing APKs 3) This list is about SDK development,

[android-developers] Re: How to close entire app?

2011-08-12 Thread Kevin TeslaCoil Software
So, if this were a Web app, you would attempt to reboot the user's PC to prevent them from pressing the BACK button in their Web browser? That is exactly how I handle my web apps! So can you send me reboot code for the onBackPressed()? It is urgent. :) -- You received this message because

[android-developers] Re: Just in section

2011-08-08 Thread Kevin TeslaCoil Software
It is a bug, however, that the lock screen tries to engage at all, when I have (since the day I got my Android phone) had it turned off in Settings-Location Security--Set up screen lock (first option set to NONE to Disable screen unlock security). You have disabled the _security_ aspect,

[android-developers] Re: App Widget Automatically Deleted after Reboot

2011-08-05 Thread Kevin TeslaCoil Software
Make sure you have: android:installLocation=internalOnly In your AndroidManifest.xml, Widgets don't work when installed to the sdcard. Full example: manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.teslacoilsw.widgetlocker android:versionCode=25001

[android-developers] Re: Payout much smaller than expected

2011-08-04 Thread Kevin TeslaCoil Software
On Aug 3, 11:32 am, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Aug 4, 2011 at 1:27 AM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: Mine was split into 4% 96% and I only see the smaller one :(. Definitely will be contacting Google Checkout if I don't see the other

[android-developers] Re: Payout much smaller than expected

2011-08-03 Thread Kevin TeslaCoil Software
Mine was split into 4% 96% and I only see the smaller one :(. Definitely will be contacting Google Checkout if I don't see the other deposit in a day or two. Bank is ING Direct. -Kevin On Aug 3, 10:56 am, Jon F Hancock jonfhanc...@gmail.com wrote: Yeah. I've been selling in the market for about

[android-developers] Re: Skinning an app

2011-08-01 Thread Kevin TeslaCoil Software
I think a library project will do what you want, and be pretty easy to manage to. You'd create your basic app as a library, then create a new app for each customer, and include that shared library. Any customer specific changes, including drawables, just get placed in a non- library project. The

[android-developers] Re: Film Use of Android Device

2011-07-25 Thread Kevin TeslaCoil Software
The adb user also has access to /dev/graphics/fb0 so theoretically you could do this with a shell script over adb instead of rooting the device. On Jul 25, 5:47 pm, lbendlin l...@bendlin.us wrote: If you have a rooted phone and a large SD card  you could run a background service that grabs the

[android-developers] Re: Google checkout updates

2011-07-21 Thread Kevin TeslaCoil Software
I highly recommend AppMonger to monitor app sales: https://market.android.com/details?id=com.rectangularsoftware.appmongerfeature=search_result It has some quirks, but it's nicely polished and gives pretty looking charts. On Jul 21, 11:03 pm, Jim Graham spooky1...@gmail.com wrote: On Thu, Jul

[android-developers] Re: Droid X 2 issue

2011-06-25 Thread Kevin TeslaCoil Software
Most likely it's just hdpi. qHD is the name of the resolution. The Atrix handles this just as extra space, like the older motorolas did with the 854x480 rather than 800x480, it could just display a bit more of your layout but it wouldn't scale up images or anything. So if you are assuming that the

[android-developers] Re: How to give a APK file to customer for testing

2011-06-22 Thread Kevin TeslaCoil Software
This is what lawyers and contracts are for. If a user emails me with a legit bug report, they seem to be pleased with a reply including an APK to test. Somehow I don't think they'd appreciate a contract nearly as much. And is the lawyer really going to try to enforce things all over the world,

[android-developers] Re: How does launcher get the applications' icons and corresponding text

2011-06-17 Thread Kevin TeslaCoil Software
It does. Source for Launcher2 is available: https://android.git.kernel.org/?p=platform/packages/apps/Launcher2.git;a=summary On Jun 17, 10:37 am, June Hello junehelloworld.he...@gmail.com wrote: Does launcher load icons by using PackageManager as well, I think I need to learn the source code.

[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help

2011-06-15 Thread Kevin TeslaCoil Software
tesla Hey! That's my keyword (TeslaLED Flashlight)! I do agree that keyword spam doesn't seem big enough of an offense for your whole account to be deleted. Any chance one of your other apps did something that could've been considered malware? Maybe Tiny was just caught in the mix and the

[android-developers] Re: Users unable to download from the market

2011-06-13 Thread Kevin TeslaCoil Software
Earlier today I had a ton of Customer review in progress stalls, market comments and a user that email me asking if I was planning on doing something about the download issues people were experiencing. Oh I wish I could. Anyway now things have picked up and my total sales for the day still look

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

2011-06-08 Thread Kevin TeslaCoil Software
I don't remember anyone asking how to prevent the user from pressing the power key to unlock the phone :) That's be because the power key doesn't unlock the phone :P, it wakes it up, then you slide to unlock. I do actually get user requests to disable the power key from waking the device, but

[android-developers] Re: LVL - license validity timestamp

2011-06-06 Thread Kevin TeslaCoil Software
I recommend ignoring the timestamp (and retry count) if the last non- retry response you've received was a licensed response. Yes it could theoretically be taken advantage of, but it can really reduce the number of false positives. I used to do this and the only false positives are when people

[android-developers] Re: Grant SU to app before it accesses root

2011-06-06 Thread Kevin TeslaCoil Software
This group is probably not the best place to ask rooted related questions as it focuses on SDK development which root is not. XDA or StackOverflow might be a better bet, in general use of root in development is poorly documented though. But no, an Android app cannot* run as root (And as annoying

[android-developers] Re: Amazon AppStore, are you earning something from there?

2011-06-04 Thread Kevin TeslaCoil Software
I'm pleased with the Amazon Appstore, but I do still get the majority of my sales from the Android Market. My app has been ranked pretty high on Amazon since the beginning. I believe part of the reason is that it's oriented at power users and that overlaps with the early adopters of the Amazon

[android-developers] Re: How to block the Status Bar

2011-05-25 Thread Kevin TeslaCoil Software
A normal app cannot get the STATUS_BAR permission or disable the status bar. It's for system apps only. On May 25, 9:19 am, jhonny jhonny...@gmail.com wrote: Hi all, So I'm trying to do an app, but I must to block the status bar, like when you are calling and you can't push down the bar.

[android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-23 Thread Kevin TeslaCoil Software
I quit my day job several months ago for my Android Apps career and am doing very well and love it. But it's not like I set out to be an Android App developer. I taught myself programming and programmed the hell out of whatever I could, went to university for Electrical Engineering/Robotics, got a

[android-developers] Re: Does the Samsung Galaxy Tab 10.1v work with OSX?

2011-05-17 Thread Kevin TeslaCoil Software
I think the 10.1v is actually the fatter one and the 10.1 is the thinner one that was handed out at Google I/O and not publicly released yet? Anyway the whole Doesn't work with Mac, the world is ending news about the Google I/O tab was totally blown out of proportion. I use a Mac for development

[android-developers] Re: On CRC32, LVL and tamper-proof app

2011-05-13 Thread Kevin TeslaCoil Software
I mostly agree with the blog post but some additional thoughts: 1) Google just opened up paid apps in more countries. There's potential to turn current pirates into legit users. However if they're already used to downloading your app from the pirate sites then even after you release an update

[android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-06 Thread Kevin TeslaCoil Software
moveTaskToBack is what you're asking for, but check the rest of the documentation about the lifecycle too to make sure it's what you actually need. http://developer.android.com/reference/android/app/Activity.html On May 6, 11:07 am, Cel kristjan.la...@gmail.com wrote: i know how to cancel back

[android-developers] Re: Battery Log using service

2011-05-03 Thread Kevin TeslaCoil Software
 The suggest to create an alarm to wake up every 5 minutes is a good one.  That will actually be more robust than having a service always running. Would it be possible to expand on this at all? My (perhaps incorrect) method of testing behavior with a service that is always running is by killing

[android-developers] Re: Developing on Inspire 4G

2011-04-30 Thread Kevin TeslaCoil Software
Actually on ATT you can't use http or dropbox to install APKs because ATT block sideloading. But enabling the phone's System Settings Applications Development USB debugging and using eclipse or adb is easier anyway. (And like Mark said you may need the usb driver) -Kevin On Apr 30, 12:47 am,

[android-developers] Re: How launch activity from live wallpaper

2011-04-15 Thread Kevin TeslaCoil Software
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.livecubes/com.example.android.livecubes.c ube1.XmlSample}: android.view.InflateException: Binary XML file line #11: Error inflating class net.youmi.android.AdView Your activity is starting, but the

[android-developers] Re: widget on lockscreen

2011-04-04 Thread Kevin TeslaCoil Software
It's not a Widget like an AppWidget. It's an activity that starts when the screen is off, similar to the alarm clock popup. Check out FLAG_DISMISS_KEYGUARD and FLAG_SHOW_WHEN_LOCKED. HTC customized the actual keyguard to pull layout resources from an APK (but only their own APK, except on the EVO

[android-developers] Re: Amazon appstore order reports

2011-04-04 Thread Kevin TeslaCoil Software
You're not alone. I also suspect during the short time that reporting was available the numbers were wrong. I'm also in the top paid apps for Amazon and really want to know what my numbers are. I contacted them and they said they're aware of the issue and working on it. Hope we get to see some

[android-developers] Re: New Android Phone

2011-04-03 Thread Kevin TeslaCoil Software
There's something wrong with your phone. He already said that: I have a Samsung Galaxy S phone. -Kevin On Apr 3, 2:25 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 3 April 2011 21:04, Andrei Gherzan and...@gherzan.ro wrote: Hello to all, I have a Samsung Galaxy S phone.

[android-developers] Preprocess AndroidManifest.xml ?

2011-03-30 Thread Kevin TeslaCoil Software
With all these Markets, apks are starting to get more complicated. I'm taking the approach of a different APK for different Markets. There's some permissions I need in some cases and not in others. Like: com.android.vending.CHECK_LICENSE It doesn't hurt anything to have it on the Amazon store

[android-developers] Re: Amazon Appmarket is now open!

2011-03-29 Thread Kevin TeslaCoil Software
Opera has just launched its own Mobile App Store And instead of contacting developers to get them to submit their apps before launch, Opera just populated it with pirated software... Not a good way to gain developer support or credibility. -Kevin On Mar 25, 2:07 pm, Fernando Cassia

[android-developers] Re: Amazon Appmarket is now open!

2011-03-29 Thread Kevin TeslaCoil Software
and Handango and Opera are all the same store. A quick check shows that other warez, like Beautiful Widgets, is still available. -Kevin On Mar 29, 4:02 pm, Nathan critter...@crittermap.com wrote: On Mar 29, 1:19 pm, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: Opera has just launched its own

[android-developers] Re: Developers Phone Program

2011-03-24 Thread Kevin TeslaCoil Software
I root all my phones. Root lets you access your app's data directory, which is handy for viewing/editing a database or shared preferences file. But I don't run custom roms (Unless I'm actually tested something related to that rom). Custom roms definitely can lead to ridiculous problems. I've

[android-developers] Re: Double press home button side effect...

2011-03-19 Thread Kevin TeslaCoil Software
Android gives priority to the default Home application, to prevent it from being removed from memory. Launchers require lots of memory. Without this protection there is a good chance the actual launcher will be killed and need to reload, which is slow and the user sees the widgets redraw on the

[android-developers] Re: Charge backs

2011-03-18 Thread Kevin TeslaCoil Software
I've gotten a few chargebacks. The email Google sends when this happens includes this nice piece of information: Please note that for Android Marketplace chargebacks received after June 1, 2010, Google will not assess a chargeback fee. And references:

[android-developers] Re: Charge backs

2011-03-18 Thread Kevin TeslaCoil Software
You tested with an actual Credit Card Chargeback and not just a Google Checkout cancel/refund/whatever? -Kevin On Mar 18, 1:24 pm, TreKing treking...@gmail.com wrote: On Fri, Mar 18, 2011 at 11:57 AM, Kevin TeslaCoil Software ke...@teslacoilsw.com wrote: What's weird is that Google

[android-developers] Re: NullPointerException onCreate for a small number of users

2011-03-13 Thread Kevin TeslaCoil Software
Do you have howtoplay_button defined in your layout-port/main.xml and not in your layout-land/main.xml ? (Or in general if you have multiple main.xml files, for different screen sizes or whatever, and forgot to update one of them, this can happen) -Kevin On Mar 13, 11:40 pm, acr acr...@gmail.com

[android-developers] Re: Experiences with Application Licensing?

2011-03-09 Thread Kevin TeslaCoil Software
The pirates will often miss that and catch a lot of well deserved flack from users who have downloaded the broken app. Careful. You ARE going to get bug reports from pirates. And they will waste your time by leaving out the very important point that they downloaded some random apk from some

[android-developers] Re: Attempt to read preferences file without permission

2011-03-05 Thread Kevin TeslaCoil Software
The CTS needs to be updated to test that shared_prefs (and all app data) is actually deleted during an uninstall. Especially if the vendor randomly picked /dbdata/databases rather than /data/data. Or maybe just ban Samsung. I finally got my hands on an affected phone. This one is a Galaxy S

[android-developers] Re: Lock status bar

2011-03-03 Thread Kevin TeslaCoil Software
The method used by the stock lock screen and while in a call is signatureOrSystem only: !-- Allows an application to open, close, or disable the status bar and its icons. -- permission android:name=android.permission.STATUS_BAR android:label=@string/permlab_statusBar

[android-developers] Re: Toast not disappearing

2011-02-28 Thread Kevin TeslaCoil Software
I think I've seen something like if you show a toast and then your activity is destroyed before the toast disappears it might get stuck. Easier to reproduce if you're calling finish(). Probably could avoid it if you save the toast reference and do a .cancel() in onDestroy. -Kevin On Feb 28, 8:53 

[android-developers] Re: Toast not disappearing

2011-02-28 Thread Kevin TeslaCoil Software
Well I could be wrong about the cause, but I have definitely seen them stuck before. Killing the process fixed it. It wasn't in production code so I never dug into it. -Kevin On Feb 28, 11:22 pm, Zsolt Vasvari zvasv...@gmail.com wrote: On Mar 1, 1:01 pm, Kevin TeslaCoil Software ke

[android-developers] Re: Check permissions

2011-02-26 Thread Kevin TeslaCoil Software
What the others have said is true, but if you want to check the permissions you can with the PackageManager's checkPermission http://developer.android.com/reference/android/content/pm/PackageManager.html#checkPermission(java.lang.String, java.lang.String) On Feb 26, 1:40 am, Miguel Morales

[android-developers] Re: GOOGLE TO BAN PAYPAL?!

2011-02-26 Thread Kevin TeslaCoil Software
I cannot think of another enterprise that earns that much money from you and won't support you. It's especially funny (? not the right word for it) when compared to our users. We write apps that the user pays $1 or $2 for and then demands customer support and updates for the rest of their

[android-developers] Re: Graphical corruption upon setting Live wallpaper

2011-02-23 Thread Kevin TeslaCoil Software
leave a complaint in the Market Don't do this. A comment like 1 star. Has graphical errors is useless to any developer and the developer has no way of responding. A detailed email on the other hand can actually help improve the app/ wallpaper/whatever and the developer can reply if they have

[android-developers] Re: Checking if phone is ROOTED

2011-02-16 Thread Kevin TeslaCoil Software
If you're trying to block features on a rooted phone, then as Dianne said, there is no guaranteed way. Hackers aren't going to let you block them. If you just want to know for analytics or a warning or something a simple test that still covers most rooted phones is checking for the Superuser.apk

[android-developers] Re: How to delete...?

2011-02-15 Thread Kevin TeslaCoil Software
Pls. *don't* use this style of writing SQL queries! Otherwise you'll always have to watch your back for Little Bobby Tables. http://xkcd.com/327/ On Feb 15, 7:07 am, Sebastian Roth sebastian.r...@gmail.com wrote: On Tue, Feb 15, 2011 at 3:19 PM, Abhilash baddam

[android-developers] Re: LVL behavior on client side license validity check for free apps

2011-02-04 Thread Kevin TeslaCoil Software
You cannot change a paid app to free. Once a paid app, always a paid app. This is not true (Unless this was recently changed). Once a free app, always a free app, but a paid app can become a free app (And then always be a free app). -Kevin -- You received this message because you are

[android-developers] Re: SmaliHook.java found on my hacked application.

2011-02-01 Thread Kevin TeslaCoil Software
This looks like Anti-LVL http://androidcracking.blogspot.com/ Anti-LVL can work through obfuscation/reflection, but it's mostly just find/replace. Though it's automated for the kiddies. Extract the app and read the fingerprints.xml and make your interesting bits harder to find. -Kevin On Feb

[android-developers] Re: Android SDK is so slow that is ridiculous.

2011-01-26 Thread Kevin TeslaCoil Software
And wouldn't you like to have *some* kind of working HC emulator now before devices ship? I just wanted to say yes, absolutely. Thanks for getting this to us soon, even in an unfinished/preview state rather than making us wait for the device to ship and our apps to be broken on customers

[android-developers] Intent-filter to handle *.foo.zip but avoid handling other zips

2011-01-24 Thread Kevin TeslaCoil Software
Hi, I believe I have figured things out correctly, but I would appreciate input of others to avoid breaking things. I'm hoping to setup my app to be able to download files such as Gingerbread.wltheme.zip from any website and be handled with my app. However I do not want my app to be used for

[android-developers] Re: Using internal Android string resources

2011-01-24 Thread Kevin TeslaCoil Software
I actually had this very conversation with my (bilingual) wife the other day. Another potential problem with using system strings in your own project is that if your default language is English and a user has their phone set for a language you don't support, they'll then see English for all your