Re: [android-developers] Re: How to know the home launcher app packagename through programming?

2010-11-20 Thread CanvasM Blore
-- Sent from my Palm Prē On 11 Aug 2010 15:54, Kostya Vasilyev lt;kmans...@gmail.comgt; wrote: A situation can arise where the user has installed an additional (replacement) Home application, but hasn't made it the default yet. If that's the case, each time the user presses the Home

[android-developers] Appengine channel api and android

2010-11-20 Thread Federico Paolinelli
Hello there, I don't know if it would be better to post on GAE group, but I'll try here. Given that channel api is about to be officially released, does anybody knows if exists a java client library (or some code snippets) for android? All the examples I saw were related to javascript, but I'd

[android-developers] Grid view problem

2010-11-20 Thread pramod.deore
I want to display image and text below that image in GridView format. I had written some code after searching. But I don't know how to add text below these images. And how to get name of that image name? Using this code I can get index of images. public class GridViewExample extends Activity {

[android-developers] Re: LVL - Yay or Nay?

2010-11-20 Thread Pent
* Are you copy protecting/DRM/LVL licensing your apps? Yes. LVL on market, private solution off-market. On a side note: we liked the deprecated copy-protection feature because it involved no extra development work and seemed secure enough to thwart a casual pirate from easily sharing an app

[android-developers] make JPEG image has map

2010-11-20 Thread suhail ahmed
Hi guys i have a JPEG sketch of my apartment i wish to write android app which loads this JPEG file and behaves as a map to the user so that user can track is movement. I am really confused wheather JPEG file can be used as a map, if it can used as a map then please let me know how i can

[android-developers] Re: How to make a trial version which starts a limited amount of times?

2010-11-20 Thread MobileVisuals
Thanks for explaining, now I understand what you mean when you say that there is not much use to make a time limited trial. What do you mean with Android Market already implements a default time limited trial version of your app? Do you mean that everytime someone buys an app they can return it

[android-developers] Re: Grid view problem

2010-11-20 Thread pramod.deore
I have 2 xml files as 1)icon.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/widget44 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=vertical android:layout_x=201px android:layout_y=165px

Re: [android-developers] make JPEG image has map

2010-11-20 Thread Kostya Vasilyev
Are you sure you can get high enough precision from GPS to make navigating within an apartment meaningful? Especially considering this is presumably indoors, i.e. with the roof blocking the view? Unless, of course, your apartment is the size of Taj Mahal :) I'd say - download one of

[android-developers] Re: Appengine channel api and android

2010-11-20 Thread Lance Nanek
Wouldn't you just use Android Cloud to Device Messaging (C2DM) if you wanted to push data from a server to an Android client? Or are you trying to work around the high version requirement for that? On Nov 20, 4:09 am, Federico Paolinelli fedep...@gmail.com wrote: Hello there, I don't know if it

Re: [android-developers] Re: Appengine channel api and android

2010-11-20 Thread Federico Paolinelli
Well, at the moment I am using c2dm, but I was thinking that having a more straightforward way of interaction between the server and the client would be a lot better. I see c2dm as a way of sending spot messages, just to notify the client that something happened, but with channel api I could (if I

Re: [android-developers] Re: custom view in widget

2010-11-20 Thread Mark Murphy
On Fri, Nov 19, 2010 at 6:19 PM, Hendrik Greving fourhend...@gmail.com wrote: So basically the widget can only use stuff from the OS? Please read the documentation: http://developer.android.com/guide/topics/appwidgets/index.html particularly:

Re: [android-developers] Capture Video of App

2010-11-20 Thread Olivier Guilyardi
On 11/19/2010 10:34 PM, Nathan wrote: One of the alternative app stores is asking for unaltered, unedited capture from the app as a video. Plus I'm also interested in cleaner video than I get by focusing a camcorder on an Android on a table. Who knows how to do that? I think I found some

Re: [android-developers] Capture Video of App

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 7:26 AM, Olivier Guilyardi l...@samalyse.com wrote: Who knows how to do that? I think I found some posts that indicate Mark Murphy may have solved this with a tool that goes through DDMS. If so, I'll get that tool and donate. I think there's an Android screencast

[android-developers] Re: Android system font size

2010-11-20 Thread kernelpanic
It's in Spare Parts on the Emulator On Nov 19, 9:59 am, Lance Nanek lna...@gmail.com wrote: I've never actually seen a system wide font size preference, however, and I must have seen the settings screens on over a dozen Android phones. I wish there was one, and I've had people ask me about it

[android-developers] Re: Capture Video of App

2010-11-20 Thread Lance Nanek
I need this for my own stuff as well. I thought about demoing slowly and speeding up the video a while back, but then getting the audio right would be difficult. Maybe some people don't have important audio, though. In the meantime, with the point-a-camera-at-it solutions, I've found the camera

Re: [android-developers] Re: Capture Video of App

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 9:07 AM, Lance Nanek lna...@gmail.com wrote: I need this for my own stuff as well. I thought about demoing slowly and speeding up the video a while back, but then getting the audio right would be difficult. Maybe some people don't have important audio, though. Or dub

Re: [android-developers] Capture Video of App

2010-11-20 Thread Olivier Guilyardi
On 11/20/2010 02:10 PM, Mark Murphy wrote: If you have access to an HTC Droid Incredible or some editions of the Samsung Galaxy S, you can get a cable that outputs the main Android screen to composite video, which you could record. Wow thanks. I have a Galaxy S, and found the TV Out option

[android-developers] Re: android for OCR library?

2010-11-20 Thread ko5tik
On Nov 19, 10:04 am, Ray da Costa raydaco...@gmail.com wrote: Please inform anyone know if there is an android for OCR library? We are working on it here: http://sf.net/projects/javaocr/ Core with basic image processing stuff is ready, invariant moments plugin also works. Help is welcome.

[android-developers] Market statistics stall

2010-11-20 Thread David Erosa García
Hi all. Does anyone else have their download statistics stalled? Mines are showing the same number since the 17th. The apps are published and are visible from the market's client, so I hope it's a(nother) temporal problem from the Market... Regards. -- You received this message because you are

[android-developers] Re: Capture Video of App

2010-11-20 Thread JP
I can generate decent results (in my mind anyway) with a tool called CamStudio (on XP). This is completely independent from Android. It creates Flash from anything you point it at on the desktop, which, for the purpose of an app video, happens to be an Android app running in an instance of an

[android-developers] Intent loading issue in MenuItem

2010-11-20 Thread Chandana Napagoda
Hi all, I have problem with loading google map when click on Menu Item. When click on menu item every time it give this error: 11-20 14:38:08.877: ERROR/AndroidRuntime(428): java.lang.NoClassDefFoundError: com.chandana.testcode.ChandanaActivity 11-20 14:38:08.877: ERROR/AndroidRuntime(428):

Re: [android-developers] Intent loading issue in MenuItem

2010-11-20 Thread Mark Murphy
You may be running your application on a device or emulator that lacks Google Maps. On Sat, Nov 20, 2010 at 9:50 AM, Chandana Napagoda cnapag...@gmail.com wrote: Hi all, I have problem with loading google map when click on Menu Item. When click on menu item every time it give this error:

Re: [android-developers] Intent loading issue in MenuItem

2010-11-20 Thread Chandana Napagoda
Hi, I tried on device and emulator both, If There is only Map Activity(ChandanaActivity) It's works fine, When I integrate with with Other Activity (testcode)* Intent* didn't work. I have refer this tutorial *Link http://mobiforge.com/developing/story/using-google-maps-android * On 20

[android-developers] Re: Android system font size

2010-11-20 Thread Lance Nanek
I've tried the version of that someone put on the Market before. They mentioned in the description they pulled it out of the Android source tree. So it is probably the same one as the emulator. The setting only affected the app itself. Maybe it manages to work on rooted phones and emulators,

[android-developers] Re: LVL - Yay or Nay?

2010-11-20 Thread JP
In case you have the luxury to think concept - as far as I can tell, there's a seismic shift going on in what independent developers consider viable business approaches to the generation of revenue through apps. 'round where I live (San Francisco), you hear the high velocity, app market style app

[android-developers] Re: Copy Protection ON and phones compatibility.

2010-11-20 Thread sblantipodi
unfortunantly not all shops supports Google LVL or Dynamic Licensing. On Nov 19, 8:57 pm, Dianne Hackborn hack...@android.com wrote: Forward locked copy protection is really fragile, as it requires that nobody except approved entities get to the data (.apk).  Thus you *must* trust the device

[android-developers] SD Card encryption

2010-11-20 Thread mahesh singh
Hi All Is it possible to encrypt a whole external sdcard(or a part of its partition i.e ext/fat32) and mount it at boot time or when ever users wants. -- 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] One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
I have a local Service to which multiple activites needs to bind. In the first launched Activity, bindService returns true and onServiceConnected is called. But in any additionally launched activites bindService returns false, and I can't get a reference to my Service. How can multiple activities

Re: [android-developers] SD Card encryption

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 12:49 PM, mahesh singh mahesh.cs2...@gmail.com wrote: Is it possible to encrypt a whole external sdcard(or a part of its partition i.e ext/fat32) and mount it at boot time or when ever users wants. With custom firmware, perhaps. -- Mark Murphy (a Commons Guy)

[android-developers] Re: One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
On further investigation. It works fine, unless a TabActivity/TabHost launches the Activity that calls bindService. Reading this thread from 2008: http://groups.google.com/group/android-developers/browse_thread/thread/978fc19ae5976efa/0b830abad32d572a * you can't bind to a service,

Re: [android-developers] Re: Access sensors' data directly

2010-11-20 Thread Dianne Hackborn
Please don't direct this person to other groups. This person is confused. :) They are writing a third party app, so can only use the Java Sensor API, and just don't seem to know how to get it to report more than 5 samples per second. I don't know anything about the particular device this person

[android-developers] Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread Pent
I understand the maintenance window is long past, but the Upload Upgrade linky button just disappears when I click it for all my apps. I can upload assets without problem e.g. the new 512x512 icon. Anyone else ? Pent -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: One local service multiple binding activities

2010-11-20 Thread Henrik Lindqvist
Solution: http://stackoverflow.com/questions/2914921/android-context-bindservice-always-returns-false-and-serviceconnection-object-is Use: getApplicationContext().bindService(...) Issue: http://code.google.com/p/android/issues/detail?id=2483 On Nov 20, 8:20 pm, Henrik Lindqvist

[android-developers] Re: android for OCR library?

2010-11-20 Thread JP
The Tessaract OCR engine: http://code.google.com/p/tesseract-ocr/ has been integrated in Android. Here's a writeup by a team that's gotten it to work: http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-recognition-146.html On Nov 19, 1:04 am, Ray da Costa raydaco...@gmail.com

[android-developers] Re: Launch twitter Homepage

2010-11-20 Thread Lance Nanek
I see you are using new DefaultOAuthProvider. I had to change that to new CommonsHttpOAuthProvider in an example very similar to yours when I switched over to using HTTPS, which I note you are as well. Details here: http://code.google.com/p/agirardello/issues/detail?id=1 On Nov 11, 2:23 am,

[android-developers] Re: Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread Pent
Nevermind. I guess that button isn't supposed to be there anymore with the new Draft upload. Pent -- 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

[android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
I made a simple countdown timer and it works as expected when plugged in via usb for debugging but when I take it off debugging and the screen goes off either time out or power button the handler fails to fire at the end time. I have created a custom timer class that gets created from the main

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Kostya Vasilyev
Either acquire a wake lock, or use alarm manager with a pending intent and a broadcast receiver. You might still need a wake lock in the second case so that the phone doesn't sleep immediately after the alarm is processed by your receiver. -- Kostya Vasilyev -- http://kmansoft.wordpress.com

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 3:58 PM, Paul Townsend deer...@gmail.com wrote: I made a simple countdown timer and it works as expected when plugged in via usb for debugging but when I take it off debugging and the screen goes off either time out or power button the handler fails to fire at the end

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
I started by using timer() but that done the same thing, basically when the times up it makes a noise then starts the next timer in a que (Intervals), but I would like this to happen when the screen goes blank. On 20 November 2010 21:03, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 4:09 PM, Paul Townsend deer...@gmail.com wrote: I started by using timer() but that done the same thing, basically when the times up it makes a noise then starts the next timer in a que (Intervals), but I would like this to happen when the screen goes blank. In that

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
Ok thanks I will look into using that, I don't want to drain the battery now :) thanks for your help. On 20 November 2010 21:11, Mark Murphy mmur...@commonsware.com wrote: On Sat, Nov 20, 2010 at 4:09 PM, Paul Townsend deer...@gmail.com wrote: I started by using timer() but that done the same

Re: [android-developers] Google Android Map Overlay

2010-11-20 Thread Frank Weiss
The Android SDK doesn't provide this functionality ready-to-go, but it can be easily implemented with a custom view class that extends FrameLayout, a controller class, a nine-patch image, and a layout resource (XML). You ought to be able to google for several solutions. Try the keyords mapview and

[android-developers] Adapting for GoogleTV: Trackball/D-pad selection with onTap() in MapView strangeness - working example?

2010-11-20 Thread Jonas Petersson
Dear experts, I recently decided to try out making my app tentatively GoogleTV ready by ensuring a user can do everything without ever entering Touch mode. For most stuff it is pretty straight forward, but I'm scratching my head at MapView/ItemizedOverlay: The docs appear to indicate that

[android-developers] Re: Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread blindfold
Well, I cannot upload a feature graphic or 512x512 icon, no matter if I try PNG (with or without alpha) or JPEG. No error messages, but no image shows up. I haven't tried uploading a new app version. On Nov 20, 8:35 pm, Pent tas...@dinglisch.net wrote: I understand the maintenance window is long

[android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
Hi all, I have an application which has a thread inside,this thread calls handler.post ,however if the application is just turned off then be opened again I got this message on the log cat 11-20 23:28:23.736: WARN/InputManagerService(76): *Window already focused, ignoring focus gain of:

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread Mark Murphy
You are trying to call a method on a null object on line 232 of AnaFain.java. On Sat, Nov 20, 2010 at 5:05 PM, tarek attia tarek.m.at...@gmail.com wrote: Hi all, I have an application which has a thread inside,this thread calls handler.post ,however if the application is just turned off then

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
Thanks for such a response On Sun, Nov 21, 2010 at 12:09 AM, Mark Murphy mmur...@commonsware.comwrote: You are trying to call a method on a null object on line 232 of AnaFain.java. in this line of code I call guiHandler.post(noConnectionAlert); noConnectionAlert is a runnable i declared

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread Mark Murphy
On Sat, Nov 20, 2010 at 5:17 PM, tarek attia tarek.m.at...@gmail.com wrote: Thanks for such a response On Sun, Nov 21, 2010 at 12:09 AM, Mark Murphy mmur...@commonsware.com wrote: You are trying to call a method on a null object on line 232 of AnaFain.java. in this line of code I call 

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
Thanks you so much Mark. On Sun, Nov 21, 2010 at 12:30 AM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Nov 20, 2010 at 5:17 PM, tarek attia tarek.m.at...@gmail.com wrote: Thanks for such a response On Sun, Nov 21, 2010 at 12:09 AM, Mark Murphy mmur...@commonsware.com wrote:

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread tarek attia
However it's now working fine,however the logcat shows some of the previous warnings :- WARN/InputManagerService(76): *Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@43304038* * * ***WARN/InputManagerService(76): Starting input on

Re: [android-developers] Window already focused:ignoring focus gain android

2010-11-20 Thread Dianne Hackborn
Don't worry about that log. On Sat, Nov 20, 2010 at 3:00 PM, tarek attia tarek.m.at...@gmail.comwrote: However it's now working fine,however the logcat shows some of the previous warnings :- WARN/InputManagerService(76): *Window already focused, ignoring focus gain of:

Re: [android-developers] Re: Copy Protection ON and phones compatibility.

2010-11-20 Thread Dianne Hackborn
What shops? On Sat, Nov 20, 2010 at 7:48 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: unfortunantly not all shops supports Google LVL or Dynamic Licensing. On Nov 19, 8:57 pm, Dianne Hackborn hack...@android.com wrote: Forward locked copy protection is really fragile, as it requires

Re: [android-developers] Re: Android system font size

2010-11-20 Thread Dianne Hackborn
This isn't yet a supported feature, and thus has been broken on and off at various platform versions. On Sat, Nov 20, 2010 at 7:32 AM, Lance Nanek lna...@gmail.com wrote: I've tried the version of that someone put on the Market before. They mentioned in the description they pulled it out of

[android-developers] Passing values from an Activity to a class that extends View Class

2010-11-20 Thread hari
Hi guys, I have a need where i must pass some values from an Activity to another file which extends View class (instead of Activity) Its not the normal passing of values from one activity to another... In my Activity,i will pass some co-ordinate values to the class that extends View... In

[android-developers] Re: iOS UI Patterns Bleeding into Android apps

2010-11-20 Thread Lance Nanek
One annoying thing about copying iPhone is that the copiers often get it wrong. The launcher on the Nexus One has an attempt at elastic scrolling, but it does the bounce thing even when you haven't gotten to the end of the app list. So the darn thing is constantly bouncing even when I'm trying to

Re: [android-developers] Passing values from an Activity to a class that extends View Class

2010-11-20 Thread Mark Murphy
Either your another file which extends View class is a widget in your activity that has some co-ordinate values, or it is not. If it is, have the activity call a method on that View to pass the values. If the View is a widget in some other activity, then you have some fundamental architectural

Re: [android-developers] Passing values from an Activity to a class that extends View Class

2010-11-20 Thread Artak Kalantarian
Something like MyCustomVIew customView = (MyCustomVIew)myActivity.findViewById(R.id.MyCustomViewId); customView.passMyValues(myValue1, myValue2); Artak On Sat, Nov 20, 2010 at 5:06 PM, Mark Murphy mmur...@commonsware.com wrote: Either your another file which extends View class is a widget in

[android-developers] Re: Passing values from an Activity to a class that extends View Class

2010-11-20 Thread hari
Hi, thanks for ur reply ... Right now, this is the code i have This is the activity i have written : package hari.image; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import

[android-developers] Re: Window already focused:ignoring focus gain android

2010-11-20 Thread Zsolt Vasvari
You get that warning for no obvious reason all the time. I've learnt to live with it. That said, requestFocus() seems to have a race condition. I cannot pinpoint exactly, but on a bunch of my activities I have to do requestFocus() from a Handler, otherwise the focus is not set properly. In

[android-developers] Re: Best Design for Android App

2010-11-20 Thread Hal
Obviously for sending messages you may want to consider sending a buffer of messages (many at a time). This should avoid excessive network traffic. You may also need several threads (or Jt live MDP components) in order to support a heavier load. Just athought. Tuning will probably be needed. On

[android-developers] Re: Handler.postDelayed not working when screen goes off

2010-11-20 Thread Hal
You may want to look at CountDownTime also. It seems to work fine (even when the Screen goes off). I took the following from the web: public class MyCount extends CountDownTimer { public MyCount(long millisInFuture, long countDownInterval) { super(millisInFuture,

[android-developers] Server errors

2010-11-20 Thread Nathan
Is it just my customers or have there been a bunch of download problems with Android Market in the last three days? I mean, more than usual. The word 'server error' in particular is something that has cropped up in my customers complaints just this week. One person even mentioned a number, 5005.

Re: [android-developers] Re: iOS UI Patterns Bleeding into Android apps

2010-11-20 Thread Dianne Hackborn
On Sat, Nov 20, 2010 at 4:53 PM, Lance Nanek lna...@gmail.com wrote: One annoying thing about copying iPhone is that the copiers often get it wrong. The launcher on the Nexus One has an attempt at elastic scrolling, but it does the bounce thing even when you haven't gotten to the end of the

[android-developers] Re: Capture Video of App

2010-11-20 Thread Nathan
Thanks everyone. I tried tonight using http://code.google.com/p/androidscreencast/ and ScreenCastomatic. The 4 or so frames a second is somewhat limiting and causes lots of ghosting. I have a Nexus One. I don't suppose that has TV out. For previous videos, I've used a tripod and a camcorder

[android-developers] Re: Capture Video of App

2010-11-20 Thread Nathan
Emulator sessions don't seem like a bad idea either, but certain things won't work, like Pinch and Zoom, sensors, and notably for me, the Geocoder api. I go to all these webinars about how easy it is to create video nowadays and how so little editing is required. Well, they haven't tried it for

[android-developers] Re: Market statistics stall

2010-11-20 Thread Peter Webb
Stalled for me as well. Still getting new comments as always, just the download numbers for my (free) app have been unchanged for the last 4 days. Doubtless they will get round to updating them eventually. On Nov 21, 1:30 am, David Erosa García soul...@gmail.com wrote: Hi all. Does anyone else

[android-developers] i am Mca fresher ,i want job on android.

2010-11-20 Thread vipul gulhane
Tell me where are opening for android developer at Pune . and Bangalore. send me ebook also thanks. pl help 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

[android-developers] Re: Static Layout for whole app that must be in all Activity

2010-11-20 Thread Ajay.kakumanu
Hello Ganapathy, You can use Styles-Themes Concept in Android to acheive this. Regards Ajay kakumanu On Nov 20, 11:33 am, Ganapathy.C cganapa...@gmail.com wrote: hi, i want a ticker that must marquee for whole application. for all activity... what to do. -- You received this message

[android-developers] widget buttons/images changing the layout

2010-11-20 Thread Hendrik Greving
I can write a widget with a Button or ImageButton and assign a StateDrawable as background or sourcein order to make an effect when you click it. Besides that I have problems with the side of each button, my main problem is this: how do I change the StateDrawable if I want to change the image

[android-developers] Re: Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread blindfold
Argh! Just found that I can upload PNG feature graphic and 512x512 icon just fine with Google Chrome, but not with Firefox! Apparently the extended interface is not yet browser-neutral, because I had uploaded the other images in the past just fine with Firefox (which is my default browser).