[android-developers] Re: How to differentiate market download app and non-market application

2011-01-13 Thread Hugo Visser
In the case that you distribute your app through different channels, you could produce two builds which of your app and add some metadata to the AndroidManifest.xml to indicate it's a non-market version. You can check that attribute from code. This won't help defeat any piracy, and won't prevent

[android-developers] Re: LVL found to be easy to crack

2010-08-25 Thread Hugo Visser
OK, I see your point, that could slow them down, but it would slow me down for sure, maintaining a native and a Java project. Not the mention the bugs you can get from native code... But agreed, it's an option. Hugo On Aug 24, 5:23 pm, a1 arco...@gmail.com wrote: On 24 Sie, 16:15, Hugo Visser

[android-developers] Re: LVL found to be easy to crack

2010-08-24 Thread Hugo Visser
Even native code doesn't help you, the call to the native method can also be decompiled and patched, without bothering with the native code at all. Like John says, it's an inherit problem of a language that runs on the vm: you can decompile the byte code. You can just make it harder to find the

[android-developers] Re: LVL found to be easy to crack

2010-08-24 Thread Hugo Visser
implementation, it's of course doable, but will take more time. -- Bart Janusz (Beepstreet) On 24 Sie, 08:34, Hugo Visser botte...@gmail.com wrote: Even native code doesn't help you, the call to the native method can also be decompiled and patched, without bothering with the native code at all

[android-developers] Re: double tap zoom on Google maps

2010-07-10 Thread Hugo Visser
Michael gave you the solution, if you can't understand that, maybe building this app is kinda out of your league. On Jul 10, 3:23 am, zeeshan mirza zeeshan.nabeel.mi...@gmail.com wrote: Anyone who can help me BR, shan On Fri, Jul 9, 2010 at 12:28 AM, zeeshan mirza

[android-developers] Using SyncAdapter for syncing application data

2010-06-23 Thread Hugo Visser
Hi, A little app design question: I was wondering if a custom sync adapter would be appropriate when syncing normal application data that is tied to a Google account. For example, I'd like to sync some data to a Google docs spreadsheet in this case. Would a sync adapter be the right choice for

[android-developers] Re: Using SyncAdapter for syncing application data

2010-06-23 Thread Hugo Visser
Let me clarify: In this case I don't need or want to have the sync be very visible. I just want to enter some data on the device and sync it to the server eventually, so when the network connection is available. Batching would be OK too. Because that's kind of like editing a contact or updating a

[android-developers] Re: About maintaining the state of the activity on orientation change

2010-05-06 Thread Hugo Visser
If you want to save state, Android has a built in construct, from http://developer.android.com/intl/zh-TW/reference/android/app/Activity.html In addition, the method onSaveInstanceState(Bundle) is called before placing the activity in such a background state, allowing you to save away any dynamic

[android-developers] Re: Announcement: DynaDroid - an open source micro-framework for Android

2010-04-28 Thread Hugo Visser
Thanks for sharing. I've looked briefly at your code and I'm a bit worried about how un-android like it is. For example: - Prompting the user when the app is exiting: normally a user familiar with Android app will know that the back button will take them back to the previous activity - Killing

[android-developers] Re: Deauthorizing account access in AccounManager

2010-04-26 Thread Hugo Visser
For my Engine Watch app (http://code.neenbedankt.com) I'm using accountmanager to log on to appengine itself. Maybe this tweet of mine helps you get started, it isn't really that hard, I found most of the ingredients on the web and in the appengine google group.

[android-developers] Re: Managing Google apiKeys

2010-04-10 Thread Hugo Visser
Another way to approach this is to build your releases in an automated way. So you run all your dev stuff from Eclipse, and when it's time to release you build it automated. I'm using hudson for this and I've written a post on the hudson ci blog about it here:

[android-developers] Re: Pinch-zooming on maps gives no feedback

2010-02-11 Thread Hugo Visser
As a work around, you don't need to poll...You can register an overlay that doesn't draw anything and checks the current zoom level against the previous draw zoom level and take it from there...On zooming there will be a redraw of the map so it should work out fine. On Feb 11, 8:23 pm,

[android-developers] Re: Signing in to Google for Google Document access

2010-02-07 Thread Hugo Visser
There's no ClientLogin class in the android public api, but you can easy implement it with the instructions that are posted here: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html. If you are targetting android 2.0 up only, you should use the built in AccountManager to get the

[android-developers] Re: creating activity-less packages

2010-01-22 Thread Hugo Visser
I'm curious about what you are trying to do here? Nice that what you are trying is working, but what's your usecase? On Jan 22, 1:19 am, guiha...@gmail.com guiha...@gmail.com wrote: Just in case it will be useful to someone, here's the manifest file application part for my library.    

[android-developers] AvoidXferMode

2010-01-15 Thread Hugo Visser
Hi, Could somebody give me an example of how to use AvoidXferMode on a paint? What I'm trying to do is to replace a color by using canvas.drawPaint() and an AvoidXferMode with the color that I want to replace and the operation TARGET. I can't get this working, maybe I'm understanding the workings