Re: [android-developers] Re: appwidget icon set

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 19:14, Marcin Orlowski  wrote:


>> or setImageViewUri calls.
> that would be more lucky for "file" or "content" schemes though.

I just found this thread:
http://stackoverflow.com/questions/2249174/looking-for-an-elegant-appwidget-skin-solution
which is quite close to your current problem, so you may want to check it out

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: appwidget icon set

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 18:59, b_t  wrote:
> RemoteViews.setImageViewResource

setImageViewResource takes just resource' id (int), so no luck for
obvious reasons. I think you might work that around by getting the
drawable resource from other package, then create Bitmap object from
it and eventually setting it with setImageViewBitmap().

> or setImageViewUri calls.

that would be more lucky for "file" or "content" schemes though.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to handle the volume keys??

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 16:39, Felipe Monteiro de Carvalho
 wrote:
> Hello,
>
> I would like to execute an event when the volume keys are pressed. Any
> ideas how I can do that?

listen to keycodes in onKeyDown and react on codes shown there:
http://developer.android.com/reference/android/view/KeyEvent.html

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Service Process Vs background process

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 14:11, Sivaprakash  wrote:

> there are two things Service Process and Background Process, how they differ
> each other?

Background process is not a system element/feature you can use (as
Service is). It's a *state* of process (same as "foreground process"
or "visible process"). If you want to run your code in background use
Service.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] appwidget icon set

2011-02-17 Thread Marcin Orlowski
> I don't want to store every icon set in the apk, only the default,

Depending on for what you are using your icons, it may be still
fine to store additional sets in separate APKs. You can then reach
them from your main app (however, as said, some API calls
require "local" resources)

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Service Process Vs background process

2011-02-17 Thread Marcin Orlowski
On 17 February 2011 12:08, Sivaprakash  wrote:
> Can some one tell how exactly service process and background process Service
> differs - Process Life Cycle Stand point? Because both of them are the to
> serve same purpose?

What exactly you mean by "background process" if you mean something different
than service?

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Cannot use AXMLPrinter2 to translate binary xml correctly in Honeycomb-version apk

2011-02-16 Thread Marcin Orlowski
On 15 February 2011 08:22, Gary Wang  wrote:

> Any format change to binary XML in Honeycomb?!

My *guess* is some new elements 3.0 brings (like i.e. Fragment) could
perhaps be the cause there? You may simply want to check AXMLPrinter2
sources for confirmation though:
http://code.google.com/p/android4me/downloads/list

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Publishing / log.d

2011-02-16 Thread Marcin Orlowski
On 15 February 2011 18:23, Dianne Hackborn  wrote:

>> http://developer.android.com/reference/android/util/Log.html
>
> It's a lie.  Well I think it is trying to say that they aren't shown by
> default, but the code is definitely not stripped, and you absolutely do not
> want to leave those in shipping products.

Can that be corrected? I am certain more people than got this point literaly

BTW: are you aware of any plans to make developer documentation commentable?
-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread Marcin Orlowski
On 16 February 2011 14:13, Kevin R. Octavian  wrote:
> how to make an app can be autostartup?

Do not "pollute" existing threads with new questions. Start new thread.
As for your question set up broadcast listener on that:
http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Small feature request for forthcoming Market android client

2011-02-16 Thread Marcin Orlowski
Hi,

Since Market devs lurks among subscribers - can next version of Market
use Intent.EXTRA_SUBJECT to prefil mail subject with application name
(and/or package name) while user hit "Send email to developer" on
app's details page? And another request: could "View more
applications" (button above said "Send email...) be somehow rephrased?
I got couple of users being confused by this and they thought it would
get them i.e. back to app index. Once they know what it does it gets
better, but IMHO "View more apps by this developer" would do the job
much better (or such info added in smaller font below "View more
applications".

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread Marcin Orlowski
On 16 February 2011 13:53, San Zhang  wrote:
> My app can be autostarted when system completed boot. However, this feature
> would be disabled if user intall the app on SD card. I want to disable
> AUTOSTART option in settings screen  in my own code if it may be detected
> whether the app is installed on SD card. Is it possible? If answer yes, how
> to do it?

Use PackageManager to read ApplicationInfo and check
FLAG_EXTERNAL_STORAGE flag. But I'd rather show popup saying
"Autostart does not work if app is on SD card" instead of silently
graying option out. Most users won't get why it "does not work"

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Update activity A from another activity B

2011-02-15 Thread Marcin Orlowski
> persist state to DB. Both of them require some significant effort in

You can use SharedPreferences


-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Securing WEB Service

2011-02-15 Thread Marcin Orlowski
On 14 February 2011 12:31, Kishen  wrote:
> Hi,
>
> I am developing an android app for my company. Therefore I have built
> a WCF REST Webservice. But the problem is that this webservice is
> available to everyone in the world. I just want secure it and make
> that only the app I created has access to it, how can I achieve this?
> Is there a way I can use the certificate thumbprint with which the
> application is signed? How can I achiev this?

Make service available over SSL only and set it up to require client
to use specific certificate (i.e. signed by your CA) to connect.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android Currency Display: Device vs. Emulator

2011-02-15 Thread Marcin Orlowski
> When I run this in the Android emulator, I get the cool and funky
> characters, but I do not when I run it on my device.

If you will be posting technical question be next time more precise.
We do not know what characters are "cool and funky" for you and most
won't bother guessing.

> the device was native to Algeria, the characters would display as they
> do in the emulator. Is my assumption a good one?

If I guess your problem right your phone crashes on parseDouble()? If
so it looks close to case I had and it looked device disliked "," as
decimal separator (while it worked fine on  simulator) and expected
".". Substituting all commas with dots prior parsing solved the issue.
If this is not your case post the stack trace from device having
problem.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Problem SDK Eclipse install

2011-02-15 Thread Marcin Orlowski
On 12 February 2011 16:27, Mark Thiebaut  wrote:
> Hello, i'm new in SDK development, i have installed SDK android cf
> screen, but in new project i did nt see android project\\Please can
> you help me ??

Android branch shall be in File -> New -> Other... if you do not see
it could be you simply got no ADT installed correctly. Check
developer.android.com for step by step install


-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Archos API?

2011-02-15 Thread Marcin Orlowski
On 12 February 2011 06:50, Wik Pun  wrote:

> I would like to know where can I find the Archos API. I saw something
> like archos.permission.FULLSCREEN.FULL but I have no idea where it is
> coming from. Thanks a lot!

what about googling for "archos android sdk" which would offer you
this link in the 1st place:
http://www.archos.com/support/support_tech/updates.html?lang=en
-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Create a UI

2011-02-15 Thread Marcin Orlowski
On 12 February 2011 03:53, Igor Nesralla Ribeiro  wrote:

> I'm a new on developer Android and my question ishave any application to
> build a layout , like a DroidDraw...

There's also visual designer when you use ADT in eclipse. It's however not
any sort of tool for "visual programmers". It let you set up your UI elements'
layout but you need to write handling code yourself

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] The most popular way to build a app

2011-02-15 Thread Marcin Orlowski
On 12 February 2011 03:57, Igor Nesralla Ribeiro  wrote:

> I’m a new on Android developer...and i have a questionwhat the most
> popular way to build app ???...like a build views and activitys and java or
> web app….the both work off-line ?!

I bet Eclipse + ADT is most popular environment. Not the perfect one but
it just works and is fast to set up. I'd recommend you start with it and
focus on android, and when you "mature" you also will be able to tell
what you like and dislike in Eclipse and its setup and then search for
alternatives would be more efficient.


-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Preventing surface resize on orientation change

2011-02-15 Thread Marcin Orlowski
On 12 February 2011 16:58, André Santee  wrote:
> I'm making a game with direct OpenGL rendering and I want my menu
> always to be vertical. Is there a way I can prevent the phone to reset
> it's surface on orientation change?

You can enforce certain activity orientation so user won't be able to change it:
http://developer.android.com/guide/topics/manifest/activity-element.html#screen


-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Securing the SharedPreferences file using AESObfuscator in LVL

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 18:46, rajorshi  wrote:

> But, if someone can edit my preferences file to modify the stored
> validity time stamp, grace period and max. retry count to very

Any code can be cracked. It's matter of time (and driven cracker). You
can make your app harder to crack try to do some own tricker to make
it stand against automated cracking tools. Hopefuly rooted phones
aren't that popular to make significant difference. Most people are
just "joe users". Access to your prefs does not make much difference
as LVL returns crypto signed content. Unless private key (which is on
the server side) leaks (or the key is computed, which is not trivial)
you are still fine as your app can verify if the LVL response is
signed and signed with expected key. And since you can't tamper that
data and still have the signature intact,  tweaking DB content is not
enough as one have to hack the app too to think this modified content
is legitimate. And if you can make app think so why not to strip the
LVL completety or fool it to always think is licensed without even
touching the LVL.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Mobile Ad Serving Technologies for direct ad sales - which is best?

2011-02-15 Thread Marcin Orlowski
> I'm trying to pick an ad serving technology that will allow me to service ads 
> that I sell directly in my Android app. Hoping is would work for Android, 
> iPhone, W7P, etc.
>
> Any ideas which technology is good for this?

All you need is just plain server software which would deliver your ad
content over the net and do sane distribution and statistics, so do
not abuse "technology" word here. There's couple out there (google for
"ad server"). In most cases these are tailored for web use but you can
easily adapt them to your needs as some open source are quite fine
(i.e. OpenX formerly OpenAds)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android 2.0.1 Platform source code

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 16:25, peeyush varshney  wrote:

> How would i get the Android 2.0.1 Platform SDK.

Use SDK Manager: http://developer.android.com/sdk/index.html

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android: first open and free mobile platform?

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 15:40, Marcin Orlowski  wrote:

> the first of the last. I do care size of user base, Platfrom

"of" shall be "or" in "the first of the last"

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android: first open and free mobile platform?

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 15:33, Dudero  wrote:

> I think some others, like the OpenMoko project was there before?!

Even if, so what? I do not bother how each of them call their
platform. It's marketing buzz. Use to it. For example there's hell lot
of apps of certain type on Market and each of them claim to be the #1
of that type. Do I care? No.  Same for Android. I do not care if it
the first of the last. I do care size of user base, Platfrom
development and my revenue. It can be "best and real #1" but if
there's no users who care the platfom. How many real, paying users you
got on OpenMoko? Rethoric question.

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Density independent values through code for views

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 15:03, Deepak Kumar  wrote:

>                One of the solution can be multiplying these values with
> ratio (according to device).Is there any other way to do the same?

Don't think there're much alternatives. What I do is keep all the
values in dip in my code (for items I need to draw/adjust etc from
code) and on setting/drawing have them multiplied by
getResources().getDisplayMetrics().density and that's shall do the
trick ( +0.5f for rounding).

-- 
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Unique device id - which one to choose

2011-02-15 Thread Marcin Orlowski
> Using a Hash of all the ID's is most likely the best solution, gather
> all the ID's, append your own signature if you like (optional) and
> hash the long concatenation of all the ID's you can gather, I would
> recommend using SHA.

I wouldn't hash it on client side. If any of the value is missing due
to a bug and then upgrade would address this, your hash will
potentially mismatch causing some problems. I'd rather store
all the values on server side and apply some logic to cope with
the above scenario (which is easily doable as I'd knew that some
values were missing and now are present, which is not doable
if you get just result hash)

--
Regards,
Marcin

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Canvas or Gesture??

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 13:10, Robin Talwar  wrote:

> Saving this bitmap and

String path = Environment.getExternalStorageDirectory().toString();
OutputStream fOut = new FileOutputStream( new File(path, "filename.jpg) );
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, fOut);
fOut.flush();
fOut.close();

> Erase button to clear all the canvas so that user can again make signature
> on clear screen.

http://developer.android.com/reference/android/graphics/Canvas.html#drawRGB%28int,%20int,%20int%29

but again: do RTFM first as there are other options you may want to
utilse (i.e. you may want to save as PNG instead of lossy JPEG) or
simply to know whene you will be trying to reinvent the wheel.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Multitouch buttons

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 05:49, brian purgert  wrote:
> Ok i just put out my game spacebike and got a comment saying they want
> multitouch.
> so basically i am using on click listener right now and im wondering how i
> change that to multitouch. Instead of just being able to accelerate or
> change the gravity i want them to be able to do either at a time.
> thanks anyhelp is much appreciated.

Not sure what you mean by "button". If framework's UI component - then
multitouch is quite unlikely there. But if you want to handle them yourself
there's seem to be couple of articles on the net that seem to discuss
that from programmer perspective (tried "android multitouch" but you may
want to refine the query):

http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-3-understanding-touch-events/1775

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Supend to disk

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 09:26, Ln <82.narasim...@gmail.com> wrote:
> Hi,
>
> I am trying to add the Suspend to disk support on my hardware. I am
> booting from SD card, i have a swap partition also. When I do a
> suspend to disk i get an error message saying that "tasks are refusing
> to freeze". The freezing sequence is exiting immediately after the
> swapper refuses to freeze. Please let me know how to proceed? Have
> anyone faced such and issue.

This is wrong group for your question.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Canvas or Gesture??

2011-02-15 Thread Marcin Orlowski
On 14 February 2011 21:40, Robin Talwar  wrote:

> Is that all possible? can i convert a gesture into an image?

No. But you can paint on your canvase based on user gestures or touches.
I'd suggest you read some basics on what canvas, paint, bitmap is and what
they do offer and then read on GestureDetector and motionEvents your
listener will get. Then you (assuming it's not goint to be your first app ever)
shall get the picture on what you get as input and how you can use it.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Publishing / log.d

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 02:06, Dianne Hackborn  wrote:
> Yes you should strip them out.

So what about that statament: "Debug logs are compiled in but stripped
at runtime"?
http://developer.android.com/reference/android/util/Log.html

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] capturing Home key event at application level

2011-02-15 Thread Marcin Orlowski
> I am storing some data at application level, I want to clear it so
> that it doesn't consume memory when my application is in background.
> At the same time, i wish that this data shouldn't get earsed if my
> application has gone in the background because of an incoming call.
>
> Do I need to capture key event in every activity? Is it possible to
> handle it at application level, so that i dont have to handle it in
> every activity and rewrite the same code.

I'd suggest you read on Activity life cycle and write your resource saving
code in the right methods, so you get your goal without dirtry trickery.
http://developer.android.com/reference/android/app/Activity.html

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] figure out country in a device without SIM card

2011-02-15 Thread Marcin Orlowski
On 15 February 2011 11:20, Kostya Vasilyev  wrote:
> Locale.getDefault();

This is not a solution. I do use different locale than i "should" in the country
i am in. Moreover, some phones does not offer certain locales so users
are forced to stick with english for example. I'd go for geoIP type of
solution or simply let user choose the country on registration.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Canvas or Gesture??

2011-02-14 Thread Marcin Orlowski
> How to use canvas to sensetize the touch event and then save the image
> created by the user through touch and mail it as an attachment

You do not use canvas to sense anything. Canvas is, as name indicates,
a way of drawing. And that's mainly it. If you want to react on user
gestures or touches, use GestureDetector process motionEvents your
listener get and paint them on your canvas.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Share some of my work - Drag&Drop framework

2011-02-14 Thread Marcin Orlowski
On 14 February 2011 08:59, Oded O.  wrote:

> BTW, why is this an issue, and on what machines?

Some with case sensitive filesystem

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Adding external Jar

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 20:43, LG  wrote:

Hi,

> can you guys please help me out

This is not the right group for your question. This one is:
http://groups.google.com/group/android-framework?pli=1

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Share some of my work - Drag&Drop framework

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 16:47, Oded O.  wrote:
> I'm not sure I can change the license type on Google Code after a project is
> created...
> But in any case... what type of license do you recommend (considering the
> fact that I want my code to be completely free and open for everyone)

BSD?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Licensing

2011-02-13 Thread Marcin Orlowski
On 13 February 2011 14:24, Dudero  wrote:
> says Google/OHA that Android it therefore completely under the Apache
> Software License, because they think only with Android the platform,
> which does not include the libraries and the Linux-Kernel?

Mind rephrasing your question? I got no clue what you ask about.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Share some of my work - Drag&Drop framework

2011-02-13 Thread Marcin Orlowski
On 12 February 2011 17:17, Oded O.  wrote:
> Hi,
> I've just finished the first iteration on my drag&drop framework I'm
> building.
> http://code.google.com/p/mobile-anarchy-widgets/wiki/Drag_and_Drop?ts=1297527301&updated=Drag_and_Drop

Download not there? And it's GPL, right? What about less "restrictive"
one, i.e. BSD?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Does Android have an "ideas submission" website like Adobe?

2011-02-12 Thread Marcin Orlowski
On 12 February 2011 14:56, 95Ghz  wrote:

> My idea proposal is to create a "kiosk mode" feature on the tablet.

White a launcher replacement and do what you want there.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] splash image when app is loading

2011-02-11 Thread Marcin Orlowski
On 11 February 2011 18:11, DanielleM  wrote:
> Hello all:
>
> I was wondering if there is a way to have a splash image display while
> my app is loading? As it is right now, it's just a black screen until
> the main activity launches and it may confuse people into thinking
> that the app is stuck or not launching properly.

No, you can't have any splash screen while app is loading. If your
app needs some time to start up *after* being loaded by OS, then
you may show up something (splash image, progress bar etc)
to notice users you're loaded and yet busy working...

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Downloading an .apk update

2011-02-11 Thread Marcin Orlowski
On 11 February 2011 15:49, Traveler  wrote:
> The following url explains how to install an .apk file from your SD
> card.

The link you gave is irrelevant to the former subject. We talk
here about installing APK from own code, w/o need of any
external tools like adb nor desktop box.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Licensing

2011-02-11 Thread Marcin Orlowski
> I do not mean the web server ;-) -> but Apache Software License,
> version 2.0

Good. Some people does not see the difference, so it's better to
ensure we both talk about the same

> My question is, are the "other" licences replaced/reformed with the
> apache one - or have all of these their customized own license?

Each component is licensed as you listed. Would be probably simplier
if all of components would be licensed under the same conditions, but
since these are from multiple vendors it was up to them to pick the
license they thought fits their needs best. Since these licenses does
not conflict, there's no problem at all.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android Licensing

2011-02-11 Thread Marcin Orlowski
On 11 February 2011 11:42, Dudero  wrote:

> Why is it called that Android is complete licenced by Apache?

Because it's released under Apache license:
http://www.apache.org/licenses/LICENSE-2.0.html

FYI: apache is NOT just a web server.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Honeycomb SDK

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 19:37, Ed Burnette  wrote:
> Ok, so if 2.3.3 is API level 10, and 3.0 is API level 11, where would

Unless 3.0 is officially out it can be any api number. Who said 3.0
is going to be 11?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Creating an image programmatically

2011-02-10 Thread Marcin Orlowski
> How do I figure out how many pixels equals X display independent pixels?

This shall do the sufficient math:

float screenDensity = getResources().getDisplayMetrics().density;
float widthDip  = 90.0f;

int areaWidthPx = (int)( widthDip  * screenDensity + 0.5f );

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Marcin Orlowski
> I don't think it pops up always.. I get the uninstal, the OK button that it
> was uninstalled, and back to my Manage apps page.

You have to uninstall via Market, not settings -> applications.

> So how do developers figure out install/uninstall rate? I always see in the
> market 1000-5000, 100,000-250,000 etc etc. Does that number mean unique
> installs..

Market used to show downloads not active installs and the latter matters. But
it seems web version of market shows active installs while on-device
Market still
shows downloads.

> There are many apps for like $2, or more, that claim > 250,000 installs..
> that's some good money! I want to be part of that lol.

Yep, some are lucky :)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] uninstall Popup Questions dialog

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 15:44, Brill Pappin  wrote:
> Sometimes when I uninstall an app, I get a popup dialog that asks me to tell
> it why I'm uninstalling.

It pops up always unless you leave app details page before uninstall finishes

> Does anyone know if this is built into the market or if its a custom
> component?

Market

> If its built into the market, can we acces the data?

Doubt so.

> On average I get about a 60-70% retention on my keyboards but I'm interested
> in finding out why the other 30% of users cancel the purchase/uninstall.

Doubt this data to be of any real value. Users give useless comments in Market,
do not bother to mail you when they face any bug, so why you expect
they suddenly
start to giving answers of any value there? I expect majority of
"votes" would be 1st answer.
Because it's first one.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Downloading an .apk update

2011-02-10 Thread Marcin Orlowski
> is there a better way of doing this - w/o the webviewer
> popping up.

You can download APK (i.e. to SD card) yourself w/o need of WebView
and the just init install of downloaded package

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to go to previous page..?

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 12:03, Abhilash baddam
 wrote:

> I have a problem, in my application i am displaying webview in customized
> dialog. suppose if the user browse 5 pages in the webview how can he come
> back to previous page, if i click on back button the dialog is dismissing.

Read here: 
http://developer.android.com/resources/tutorials/views/hello-webview.html
Point 9 discuss your case

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] can we upgrade paid version to free version with add.

2011-02-10 Thread Marcin Orlowski
On 10 February 2011 09:44, Atik  wrote:

> i have uploaded one application , which is paid version and i have
> very few downloads of it. so i want to upgrade the same application
> with as free version with ad support in it.
>
> can any one tell me how much i will earn if my application will get
> downloaded 1000 times. i am using admob and adding its jar file to
> display the adds.

Mostly nothing. I have app with ads and once it had around 1000 active
installs ad income was almost nothing (and the app is not background
service so one needs to open UI (with ad) to use it). We decided to drop
ads completely and that's my sugestion - unless your active installs
is going to be real numbers - you may stay with ads, otherwise it's
quite pointless - you will be the last one who earn.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Can apps that use device-specific permissions be published to Android Market?

2011-02-09 Thread Marcin Orlowski
On 9 February 2011 11:24, String  wrote:
> I'm pretty sure they can. I have apps that interface with the SonyEricsson
> LiveView, and in order to do so they have this in their manifest:
>      android:name="com.sonyericsson.extras.liveview.permission.LIVEVIEW_API" />
> This has never interfered with publishing, it seems to be ignored by
> the Market.

Their permission is no different that any other custom permision (i.e. yours)
and you can publish app using such w/o any problems. Market knows
own permisions and ignore unknown/custom.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Mount sdcard from code

2011-02-09 Thread Marcin Orlowski
On 9 February 2011 06:36, maikelalonso  wrote:
> With the mount command works correctly but the icon of the API shows
> like the SDCARD is not mounted when really if it is.

Quite likely it's because you, contrary to the OS, did not send
ACTION_MEDIA_MOUNTED broadcast on manual mount

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Mount sdcard from code

2011-02-08 Thread Marcin Orlowski
On 8 February 2011 18:04, maikelalonso  wrote:
> Hi,  I've rooted my device and I've root privileges. All is Ok. The
> only one problem is the code to run in order to get mounted the sd
> card.
> What's the command running in Android when I make Menu->Settings-
>>External storage->Mount SD CARD?

usually "mount  " suffices (i.e. mount /dev/... /mnt/sdcard)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Mount sdcard from code

2011-02-08 Thread Marcin Orlowski
On 8 February 2011 16:41, maikelalonso  wrote:
> Hi:
>
> Anyone know how to mount the sdcard from code? I umount this storage
> from menu->settings->umount sd card and I want to mount it from an
> androd application.  I can get the state with getExternalStorageState
> and the path to the mounted sdcard folder but I dont know if it's
> possible to mount the device from java code.

Mount requires certain privileges your app simply does not have unless
you got rooted device (and grant yourself root rights)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] opengl textures

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 18:57, bob  wrote:
> Do opengl textures on Android have to be a width and height that is a
> power of 2?

In general: yes as some devices will won't handle your textures otherwise.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] opengl textures

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 19:22, Marcin Orlowski  wrote:
> On 7 February 2011 18:57, bob  wrote:
>> Do opengl textures on Android have to be a width and height that is a
>> power of 2?
>
> In general: yes as some devices will won't handle your textures otherwise.

It applies to width (for quite obvious reasons), yet I am not sure about height
and can't check now.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Programatically assigning String value as 'Id'

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 12:31, Jawwad Farooq  wrote:
>
> But in my case that resource does not exist. I have to dynamically
> create and assign ID to that.

Doubt you can with system api. But if you really need such feature, wrap resouce
access with own class - then you will be able to create own resources on-the-go)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Library packaging best practices

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 12:00, Pepijn Van Eeckhoudt  wrote:
>  What is the recommended way of distributing a reusable library (i.e., jar
> file, assets, documentation, sample code)?

use sourceforge, google code or any service of that kind (or own website)

> One possibility I'm considering is an sdk extra (the same way for instance
> the google market_licensing library is made available in SDK manager. Is
> this a supported mechanism or should this not be used?

I am not sure if you can add own stuff there w/o being somehow signed
with google in some form.

> Are there any other, possibly better, alternatives besides distributing a
> zipped library project?

you could try to create own repo available via Eclipse's package installer,
but I think plain website would do well at start

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android beginner

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 12:06, subhashini alaguchokku
 wrote:
> I have not uploaded an app to Android market yet. But am in a circumstance
> that requires me to upload a version(2) of the existing app.

adjust versionCode in your app's manifest file to "2" and versionName
to "2.0" and you are done.

> We have done >Export unsigned app>> after that have no idea how to proceed >> 
> We have done signing using debug mode but for Release have no idea.

Ue RMB (over project name) -> Android Tools -> Export signed application package

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Copy protection

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 10:53, JAlexoid (Aleksandr Panzin)
 wrote:

> Remember that if people get the code on their systems, there will be
> someone to crack it. Even if it's hardware encrypted and in a
> protected chip(see PS3 hacking example).

Side note: PS3 is example of lame implementation not lame design.
They would survive but basic mistakes at low levels wrecked the whole
thing badly.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] install font with apk

2011-02-07 Thread Marcin Orlowski
On 7 February 2011 09:01, andu  wrote:

> Is there any means that I can install the font file together with the
> apk file?

You can put font file in assets/ folder so your app will be able to use it.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Honeycomb SDK

2011-02-06 Thread Marcin Orlowski
On 7 February 2011 00:57, midtoad  wrote:
> You will then get the Honeycomb Holograph them and your app will have
> an updated look and feel.

http://developer.android.com/sdk/preview/index.html

"Android 3.0 offers an updated set of UI widgets that are redesigned
for use on larger screens such as tablets and incorporate the new
holographic theme. Your existing application can inherit the new
design simply by setting the  element's
android:targetSdkVersion attribute to "Honeycomb".

If you do not update the android:targetSdkVersion attribute and the
android:minSdkVersion is set to "9" or lower, then your application
uses the widget designs from Android 2.3 and does not inherit the
holographic theme."

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Where to report app update problems?

2011-02-06 Thread Marcin Orlowski
On 6 February 2011 18:20, Keith Wiley  wrote:

> - Unchecking "All Countries" (Save still won't work)

This helped in my case.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: 2.3 Platform Google APIs missing Licensing Service..?

2011-02-05 Thread Marcin Orlowski
> Same code works on version 2.2 of the Google API emulator, but not 2.3
> of the Google API emulator.

It's known, confirmed issue:
https://groups.google.com/group/android-developers/msg/69ad5f4a5ec9f3e9
If you want to test LVL use 2.2 emulator instead.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to store a timestamp to the sd card?

2011-02-05 Thread Marcin Orlowski
On 5 February 2011 16:08, Kostya Vasilyev  wrote:

> A "secret" file location can be easily discovered by someone who is able to
> run strace (== rooted firmware), which then can be shared, or exploited by
> an "unlocker" application.

If anyone start sniffing with strace then definitely such "protection"
will fail sooner than later but I was just talking about simple counter
actions that one should consider doing to keep 'hackers wannabe's
away. I think that if you want to do such simple "protection", then
you shall be aware of its weakness. At the same point if you agree to
leave all these elementary weaknes not "hardened" (unscrabled strings
in app etc), then what is this protection intended for? It can even be
'hacked' accidentally, so it's pointless to spend any time on
implementation as it'd be pure waste.

> As for data obfuscation, that's a great ideas, but the OP wants something he
> could put together without any additional learning.

XORing a few strings won't require much learning and it shall suffice

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to store a timestamp to the sd card?

2011-02-05 Thread Marcin Orlowski
On 5 February 2011 15:35, Kostya Vasilyev  wrote:

> The memory card is accessible and writable by anyone, including other
> applications and the user, and storing the timestamp as text is practically
> begging for someone to mess with it.

Not fully agreee. If you do this right way, it will somehow serve the
purpose. Choose path and filename wisely (resist from naming your file
like my_app_name/timestamp.txt). Additionally you may want to write
device ID too to prevent sharing that file. And if you write some
"noise" (like /dev/random :) around your timestamp data to bload the
file slightly (say 512/1024 bytes) then some 'hackers wannabe' may
stay away. Of course one may put some effort and hide path and
filename in the code so it's not easily spotable by just peeking the
binary. I'd also fake timestamp on the file once created to make it
older that app installation. Or just be creative yourself :)

> I'd suggest you use SharedPreferences:

Uninstalling the app and doing fresh install kills this type of "protection" so
it's not the solution. SD card file will survive it.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Honeycomb + Motodev's Xoom add-on - does not work

2011-02-05 Thread Marcin Orlowski
On 4 February 2011 21:30, Eric Cloninger  wrote:

Hi,

> Are you running the emulator at full scale? We are seeing some
> problems with the emulator crashing when the XOOM addon is used in
> full scale with the Honeycomb system image. Try adding a launch
> parameter of "-scale 0.6" or some similar value, probably between 0.5
> and 0.75. I've found that allows the emulator to work.

Thanks for sharing - unfortunately it does not make any difference and
Xoom is not starting. Will investigate myself which property may be
the culprit.

> As others have
> pointed out, the Honeycomb system image in the emulator is not fast.

Hard not to notice ;/ I really hope Honeycomp sdk will get update
asap as current emulator speed makes it quite hard to debug/test
anything

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Scheduling ideas

2011-02-05 Thread Marcin Orlowski
On 5 February 2011 13:40, Neilz  wrote:
> Ok, one problem with this alarm service.
>
> I schedule it for some time in the morning, and when I get up and
> check the phone, the alarm didn't get called, because it thinks
> there's no network connection.

Alarm manager makes does not care network connection. It fires alarms
based on device's RTC and that's all it does. So alarm most likely was
fired correctly, yet your fired code failed to operate - and this is
slightly different thing.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Honeycomb + Motodev's Xoom add-on - does not work

2011-02-04 Thread Marcin Orlowski
Anyone managed to make Honeycomb simulator work after installing Xoom
add-on from Motodev?
What I see is just:

[2011-02-04 18:12:59 - Emulator] This application has requested the
Runtime to terminate it in an unusual way.
[2011-02-04 18:12:59 - Emulator] Please contact the application's
support team for more information.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android 3.0 questions

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 17:38, Victor lyamtsev  wrote:
> Can someone help to clarify what Android 3.0 platform is:
> is that new version of SDK i can use to create applications for Froyo,

If you want to create namely for Froyo it'd be better to use Froyo SDK
as your target.

> or will I also have to upgrade OS image on the phone?

So far each version is *backward* compatible, so if you got Froyo you
can launch i.e. Cupkake's targeted apps. But if any app uses Froyo
specific features it won't work on Cupkake. Same with Honeycomb.

> Any idea when it will be available for phones ( for Nexus One in particular) ?

Tea leaves are mute today, but assuming Honeycomb is yet not available
even for tablets it's mainly intended for, do not hold your breath too strong :)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: mysterious crash accessing Preferences - works if package name is changed

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 16:07, mot12  wrote:
> Looks like I screwed up big time. I retrieved the wrong revision when
> checking this users code. The null pointer was actually the line
> following:
>                if (Settings.System.getString(getContentResolver(),
> Settings.System.ACCELEROMETER_ROTATION)).equals("1"))
> which should have been
>                if
> ("1".equals(Settings.System.getString(getContentResolver(),
> Settings.System.ACCELEROMETER_ROTATION
> for obvious reasons.

Still such writting style is quite error prone. Unless you know it
you can't tell from the code that null can happen. And you
just "save" two lines while clearness of the source dropped much
more. Just my 5 cents :)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 12:31, Yorgos X  wrote:
> Mysteriously enough (new phone, haven't explored it much), a setting was
> preset to fast boot the device (is called "Fast boot - turn off to use some
> Market apps") and this apparently causes the device to start after a power
> off without sending the BOOT_COMPLETED action. Can any of you test this on
> their devices to confirm it is happenning for a fact? I unchecked this
> setting and my receiver works on both power off/startup and restart.

That would be really silly "feature". What device is it?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Marcin Orlowski
2011/2/4 Yorgos X :
> I basically start an activity which is the main activity of my app on
> startup (I want the app to appear straight when you turn on the phone). So
> my main activity is declared as launcher in the manifest and in my receiver
> class I start an intent that launches it as well:
>
> .
>                  android:label="@string/app_name">
>     
>     
>     
>     
>     
>     
>             
>                  />
>                 
>             
>         
>     

remove category from boot filter

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Question about bug reports

2011-02-04 Thread Marcin Orlowski
On 3 February 2011 23:01, String  wrote:

> Yes, whoever posted "log.d() gets stripped at runtime" was wrong.

Really? http://developer.android.com/reference/android/util/Log.html

> It's up to you to do so.

Never investigated too deeply, but from I rememeber I saw no Log.d entries
on production devices I've checked our app on. It may though be possible
some devices behave differently

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Marcin Orlowski
2011/2/4 Yorgos X :
> well, i run it from eclipse to install it and then restart and power off the
> phone to test if it works. Are the apps run straight from eclipse stored on
> the SD card? i don't know about that to be honest. I haven't done that
> explicitly though

No, they are run from internal memory, so that shall be fine.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 11:54, Yorgos X  wrote:
> nope, not even rooted or anything. just a phone off a shop shelf, untouched
> :)

Then it shall just work as it does here. Checked device logs?  Also if
you rely on that broadcars make sure your app prevents SD card
installation as SD card is not mounted when that broadcast gets
propagated so your app won't it.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] how to disable the "Clear data" Button (Froyo)

2011-02-04 Thread Marcin Orlowski
On 3 February 2011 02:36, Takanawa  wrote:
> Please teach me about "android:allowclearuserdata=false" in
> Android2.2(Froyo).

don't post your question on daily basis. You asked - now wait if
anyone would wish to respond.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How do certain application backup the APK files?

2011-02-04 Thread Marcin Orlowski
On 28 January 2011 23:02, Rahul  wrote:
> I just came across Astro File Manager that lets you make backups of
> applications installed on the device. I just tested the application
> and it doesn't seem to require root on the device. So this application
> is somehow able to access the apk's of the applications installed and
> make a backup of the same. Out of curiosity, how can one go about
> doing this? Do I need to query the PackageManager or is there a
> different way?

Installed apps are in /data/app - if you can read this folder and files, you can
copy them out. Restoring however may not be that easy as write access will
most likely be rejected for non rooted phones so whatever you backed up
will have simply be reinstalled

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Development strategies

2011-02-04 Thread Marcin Orlowski
On 3 February 2011 17:12, Roman Mazur  wrote:
> Android 3.0 is designed specifically for tablet devices, and it has a
> lot of changes in core frameworks.
> So what is the best strategy for android developers: create a separate
> application for android 3.0 version or provide a single app that
> supports mobile (2.x) versions too?

Depends on what type of app you are working on. Sometimes it'd suffice
to just create separate layouts to best fit tablet string, sometimes you
may prefer to rework the whole app.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2011-02-04 Thread Marcin Orlowski
> I am using a receiver to handle the receipt of the BOOT_COMPLETED action. It
> works well when I am restarting my phone (an HTC Desire HD) but not when I
> use power off and then start it up. The receiver is never called and it
> seems as if the BOOT_COMPLETED action is never sent. I also noticed that
> some other services that run on boot don't run as well after powering off
> and starting up again. I have noticed that some handsets don't provide both
> the power off and restart functionality.
>
> Any ideas?

Custom ROM by any chance?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to fetch own mobile number in android

2011-02-04 Thread Marcin Orlowski
On 4 February 2011 11:06, vimal  wrote:
> I want to get mobile number of own mobile.

TelephonyManager tMgr
=(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
mPhoneNumber = tMgr.getLine1Number();

but be aware it's not guaranteed you get it (so check for NULLs)

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Question about bug reports

2011-02-01 Thread Marcin Orlowski
> Hi I haven't released an app to the store yet. Before doing so, I wanted to
> know, how is this working with users submitting bug reports?

In general there's *statistically* noone doing so. You will get 1 star in market
+ some useless comment like "crashes", "lame", "force closes, please fix".

> automatic report getting sent if the app let's say - crashes?

On Froyo and up. Check this: http://code.google.com/p/acra/

> Should I
> enable or disable logging with 'Log.d" before releasing? Thanks

Debug logs are stripped at runtime.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Twitter on Android

2011-01-31 Thread Marcin Orlowski
On 31 January 2011 12:01, chamith weerasinghe  wrote:

> I need to connect to twitter using my android application. is there any api
> like facebook api to connect to twitter.

What about "google. twitter api" search?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Running code right after installation

2011-01-30 Thread Marcin Orlowski
On 30 January 2011 16:25, Omer Gilad  wrote:
> Hi, I am looking for a way to run code right after being installed -
> without waiting for activity launch\boot\etc.

Hopefuly you're out of luck in this particular case.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to keep adb from being launched too early?

2011-01-29 Thread Marcin Orlowski
Is there any way to keep adb not running unless really needed ? It now
starts as soon as I launch Eclipse and that causes some conflicts on
my system for some reasons. I'd prefer it not to be launched unless I
run/debug app or launch it by hand. Not spent much time investigating
I just keep adb.exe renamed, but I do not like this approach too much.
Any hints?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Error when i try to convert the minSDK version from 8 to 7

2011-01-29 Thread Marcin Orlowski
> May be i messed up something in the process of converting it to 2.1
> I have navigated to android tools -> Fix Project Properties and set
> the api level
> Changed it manually in androidManifest but still it is giving me the
> Null Pointer Exception
> What could possibly be left out

If your code is not using 2.2 features then it's just matter of
setting targetSdk as low as you can and rebuilding your project (would
clear project "just in case" myself). So if it now crashes it may be
just bug in your code. Debug it as such. Or check logs and stacktrace
you get on crash.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2011-01-28 Thread Marcin Orlowski
> All I was trying to say that emulating of 1GHz of any non native code
> at the instruction level will be slow on a 2Ghz host.  I'd bet if you
> tried to run a PacMan 8-bit CPU at 1GHz, it wouldn't emulate at full
> speed or even come close.

8-bit or not is not directly related to possible emulation speed. And
this is just type of architecture which is not
the only factor that influences the whole process (and yes, you can
run 8-bit pacman full speed on far slower devices - i.e. Spectrum
emulator on Palm phone (which is 300MHz). I believe in case of Android
the bottlenecks is not just different architecture but also a GPU
support (or lack of h/w support of such) which hits performance badly.
In general I believe it would help if Google could just spend a few
bucks and simply hire bunch of folks from "emulators scene".

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 22:52, Paul  wrote:
> Store and access it from /res/raw should work, I have a text file in
> that folder for an app of mine and no problem with the app accessing
> that file after installation to devices.

Sure, you may need stay to you i.e. res/raw or assets/ file as long as
you just need to read the data, but this read-only location so may not
be a solution for the question author as he wanted to write as well.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Eclipse + sdk install

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 09:49, Brian  wrote:

> I'm a high school cs teacher trying to get a lab installed for my students
> to use.
> I'm trying to use the android sdk and eclipse. I've successfully downloaded
> and installed the sdk to C:\Program Files\Android\android-sdk-windows.

Don't use path with spaces. You will get into troubles while trying
to using proguard.

> I've installed Eclipse but when I go to Windows>Preferences>Android and
> select the path for the Android sdk, the sdk can't be found when I select

What's exactly throws this error? Because I doubt it's this plain file
selector there.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Honeycomb browser broken?

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 12:22, H  wrote:

> Ordinarily I would probably believe you. But I saw this picture for a
> specific android website posted on their own site makes me think they
> definitely managed to get it to work:
>
> 
>

http://images.androidcentral.com/sites/androidcentral.com/files/articleimage/684/2011/01/honeycomb-screens/thumb_550_honeycomb-screen-1a.png
>

What make you 100% certain it's real screenshot and not hand-made image?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 11:34, Kumar Bibek  wrote:
> You canot write/change the txt file if you put it in the assets. So, on
> first run of app, make a copy to SD card or the data directory, and then,
> you can proceed.

I was writting mine in a hurry so I now see my post looks bit misleading.
I meant using assets to have .txt file in APK for distribution or reading
but write require copying it first as you cleared.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to add a text file as part of the apk

2011-01-28 Thread Marcin Orlowski
On 28 January 2011 10:48, Reddy  wrote:
> Hi,
>
> 1. I have one txt file which contains some data.
> 2. Creating an app(apk) which uses (open, read, write, close) the txt
> file.
>
> What i want is, when i install the apk, txt file also need to be
> installed in the target.

Use "assets" folder to include your file in APK

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How many ways to find out..?

2011-01-27 Thread Marcin Orlowski
On 27 January 2011 13:34, Abhilash baddam
 wrote:
> Any help please...

RTFM please? 
http://developer.android.com/guide/topics/location/obtaining-user-location.html

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Schedule notification instead of permanently check

2011-01-27 Thread Marcin Orlowski
 
  

  



public class BootCompletedBroadcastReceiver extends BroadcastReceiver
{
@Override public void onReceive(Context context, Intent intent)
{
   ... your code on boot
}
}

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Need help to develop a folder locking app in android

2011-01-27 Thread Marcin Orlowski
On 27 January 2011 11:53, JyotishK  wrote:
> Its much more impressive to know that so called ACE android
> developpers motivating novice developers with such answers.

Far from ACE, yet "Know your limits" motto is known to me.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Honeycomb SDK

2011-01-27 Thread Marcin Orlowski
On 27 January 2011 09:53, String  wrote:


> I take this to mean that, if I install the preview SDK, I can't publish ANY


You can't publish anything with targetSDK=9. When you set target to lower
value other SDK is used so this limitation does not affect your app.

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Why cant I install an apk from asset folder

2011-01-27 Thread Marcin Orlowski
On 27 January 2011 08:06, Titus  wrote:
> Hello,


> Is there a reason why Y.apk can't be put in asset folder ? or is there
> a neater way to do this ?

What about copying your 2nd apk to SD card and instaling from there?

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to take a snapshot of phone's screen ?

2011-01-26 Thread Marcin Orlowski
On 26 January 2011 20:42, Emre A. Yavuz  wrote:
>
> Hi,
>
> Is anyone aware of a method to take the snapshot of phone's screen while an
> app is running ? Running the app on the emulator is not an option since
> network connectivity is needed. Is there any internal method that we can use

In general you need rooted phone to let you grab framebuffer. Then use
one of available apps i.e. ShotMe from Market

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Edittext max characters - not set max

2011-01-26 Thread Marcin Orlowski
On 26 January 2011 18:27, André  wrote:
> Is there a limit on how many characters and or lines you can have in
> an edittext? Or is it unlimited?

http://developer.android.com/reference/android/widget/TextView.html#attr_android:maxLength

-- 
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 unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


<    1   2   3   4   5   6   7   8   >