[android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-02-13 Thread Hekki
Hi all, I always considered the developper consolel too be just a shameless, wrote under-a-day, new intern-assignement, we're way behind schedule, kind of way to put some apps on the market. For the first two weeks I thought it was normal, then I thought nobody works on that, then now I know :

[android-developers] Re: Layout Highlight For Already Background Set

2010-02-13 Thread skink
On Feb 13, 4:58 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank You pskink. can u tell how to use that?.. the easiest way is to define your StateListDrawable in xml in drawable folder and assign it to your layout's background: LinearLayout ...

Re: [android-developers] Select wallpaper from..

2010-02-13 Thread Manjunatha M
yes.. I want that to be configurable. sometimes to show and sometimes not to show in the list of select wallpaper from On Sat, Feb 13, 2010 at 12:07 PM, venkat ranjit ranjit0...@gmail.comwrote: Hi manjuntha ur question is not clear , tell me clearly, in my understanding u want

[android-developers] Re: unable to bind to a service

2010-02-13 Thread dane131
anybody help? On 13 Φεβ, 00:44, dane131 orestis...@gmail.com wrote: hallo i have aservicethat provides gps coordinates.Here is the code : package app.suite.gps; import android.app.Service; import android.content.Context; import android.content.Intent; import android.location.Location;

[android-developers] Re: Dev Tools app crashes on entering Dev Settings menu (htc tattoo)

2010-02-13 Thread Dan S
This is pretty bad news for me - I'd really like to be able to debug on-device, monitor CPU usage etc. Is there any workaround (e.g. disable certain app functionality, use a different version)? I can't afford multiple devices. If it emerges that the Dev Tools app simply cannot be run on this

[android-developers] Re: onActivityResult is called immediately after startActivityForResult

2010-02-13 Thread WirelSys
I have problem too while attempting to return a result from my child activity. From the logs it appears that my sub-activity does execute setResult() and finish(). However, it still fails to execute onActivityResult in the main (calling) activity.

[android-developers] Re: help me

2010-02-13 Thread deeMurthy
Hey Can u elaborate on the emulator problem ? What issue are you facing exactly? On Feb 13, 8:51 am, kamran Manzoor kamranmanzoor...@gmail.com wrote: the code is here with emulator problrm package com.net.login; import android.app.Activity; import

[android-developers] Layout supporting word wrap for Views?

2010-02-13 Thread westmeadboy
I found this question asked over a year ago but no solution was found: http://groups.google.com/group/android-developers/browse_thread/thread/15d8e7e8bc46d279/4e11259e78e6d654 Essentially, I want to use a LinearLayout with horizontal orientation, but when the child views' total width is greater

Re: [android-developers] Layout supporting word wrap for Views?

2010-02-13 Thread Mark Murphy
I found this question asked over a year ago but no solution was found: http://groups.google.com/group/android-developers/browse_thread/thread/15d8e7e8bc46d279/4e11259e78e6d654 Essentially, I want to use a LinearLayout with horizontal orientation, but when the child views' total width is

[android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, I want to add an ItemizedOverlay to a MapView that always keeps one OverlayItem as the selected one. I indicate this by using a StateListDrawable with two different marker drawables. But right now, whenever I tap on the map and not hitting a marker, the last selected item will get

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-13 Thread tony obrien
So , Yes, This One did appear in the group! Has anyone gotten a feel for when/how-many/etc posts before you no longer go thru the moderator? thanks, tob On Feb 12, 9:26 am, tony obrien tobsourcecode...@gmail.com wrote: Hi, I have been attempting to operate within the android-developers and

[android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-02-13 Thread Hekki
Oh yes and i forgot : www.androlib.com now lets you register as the developper of an app. You can then add a longer description which I don't find that useful, but you can see all the comments made by people on your apps on all languages. I find that absolutely amazing that this was not

[android-developers] Re: No light sensor and/or proximity sensor detected on Hero?

2010-02-13 Thread Simon
ell that may be your problem.. what makes you think the Proximity sensor app you downloaded uses the Light sensor? On Feb 12, 6:07 am, mileoresko mileore...@gmail.com wrote: Hi Simon, sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) returns: null On Feb 12, 2:12 am, Simon

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
OK. I'll be explain my needs: I'm the author of AnySoftKeyboard (http:// softkeyboard.googlecode.com). The reason I made this keyboard, is to provide alternative layouts in the on-screen keyboard (e.g., Hebrew, Russian, DVORAK, etc. and of course, qwerty). But the keyboard APK gets bloated with

[android-developers] Re: No light sensor and/or proximity sensor detected on Hero?

2010-02-13 Thread mileoresko
I used the ddms tool, and I am not sure what the Proximity Sensor app uses. As far as I can see it reads something from a file, then does some character decoding and stuff like that, so I don't think it uses the SensorManger API at all. Nonetheless, I would like to use the SensorManager API to

[android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Hello, I'm having troubles to correctly display strings with é è ... characters extracted from an html page (iso-8859-1). I am reading the html page as iso-8859-1 (using xerces XMLInputSource(null, null, null, myHTTPRequestContent, iso-8859-1), searching and extracting some specific strings with

Re: [android-developers] Re: Help needed with parsing some XML data !

2010-02-13 Thread Thierry Legras
Hi, I have a similar problem. I am parsing iso-8859-1 html page with a sax parser but having trouble to display it on _some_ devices (characters é è ... are replaced by random symbols). On some devide i have to use myString.getBytes(iso-8859-1) to display it correctly, and on some other devices,

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-13 Thread OldSkoolMark
I'm in the same boat. Hoping, but not expecting to see this reply posted. On Feb 13, 7:07 am, tony obrien tobsourcecode...@gmail.com wrote: So , Yes, This One did appear in the group! Has anyone gotten a feel for when/how-many/etc posts before you no longer go thru the moderator? thanks,

[android-developers] Re: Problem with ListActivity in TabActivity

2010-02-13 Thread Ali Chousein
There was something wrong in the manifest file and this was causing the problem. The code which I originally posted works now. Mark and TreKing thank you for your replies. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Force Close just restarts the app?

2010-02-13 Thread Steeler
I've noticed that whenever I introduce some new awful bug to my app and it crashes, Android just keeps starting it up over and over again. I eventually have to hit the dial button on the phone just to make my app lose focus. I searched this group's posts and the developer documents... I can't

[android-developers] Re: Hey Mr or Ms Moderator...

2010-02-13 Thread Maps.Huge.Info (Maps API Guru)
I can comment on how the groups system works in general but not specifically how this group is handled... Usually, when a new member makes a valid post, the option to always allow is selected which not only posts the message but also takes the new member off of moderation. If the post is iffy

[android-developers] Re: sending scancode values from linuxapplication (using sendevent)

2010-02-13 Thread ani
http://pdk.android.com/online-pdk/guide/keymaps_keyboard_input.html Check keyevent.cpp file also. Check this out. -- 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

[android-developers] Extended Resources Strategy

2010-02-13 Thread Evan Ruff
Hey guy, I was wondering if some of the experts out there could help me with an extended resource strategy? I'm interested to hear about some of the accepted best practices that everyone is using to tackle some of the issues that arise when you've got a ton of graphics/resources. I just recently

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread TreKing
On Sat, Feb 13, 2010 at 8:31 AM, Fabian Sturm f...@rtfs.org wrote: I want to add an ItemizedOverlay to a MapView that always keeps one OverlayItem as the selected one. Are you sure you want to do this? This goes against the standard behavior of deselecting when clicking somewhere on the map

[android-developers] Re: adb can't list my attached device

2010-02-13 Thread deeMurthy
Its possible that the server is not running or there is some error w.r.t. it.U can try : adb kill-server adb start-server commands to restart it. This works for HTC phones and the emulator. On Feb 12, 4:29 am, zeeshan genx...@gmail.com wrote: Hi Dear, i am trying to install an app

[android-developers] Recording into Direct ByteBuffer with offset

2010-02-13 Thread Divkis
Hi, Is there a way to capture the audio using AudioRecord or any other API into a Direct ByteBuffer created using ByteBuffer.allocatedirect call with an offset? From the documentation it is not clear that at which offset, calling the following method, will place the data:

[android-developers] Is there any changes in crop image activity

2010-02-13 Thread Adarsh Pandey
Hi, We are facing problem with cropimage activity, is there any changes? it gives error related to permission. java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.EDIT dat=content:// media/external/images/media/12 cmp=com.android.camera/.CropImage (has

[android-developers] Re: Broken Meshes / not synchronous while rendering GlSurfaceView

2010-02-13 Thread Clankrieger
Thank you for your hints. I already reposition to 0 in my getBuffer methods similar to this: public Buffer getBufferVtx() { m_VtxBuffer.position(0); return m_VtxBuffer; } Also, the buffers do not get recycled between glDrawElements calls. What did you mean with this : Another rough one

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Frank Weiss
First, some clarifications. Locale has nothing to do with character encoding. Java stores all character data internally as 16-bit Unicode, regardless of locale. I suspect that myString.getBytes(iso-8859-1) is erroneous. I'm assuming that myString is of type java.lang.String. What are you doing

Re: [android-developers] Force Close just restarts the app?

2010-02-13 Thread Dianne Hackborn
What generally happen when a process crashes is that it is killed, the crashing activity removed, and then the system restarts the next thing on the activity stack. If you had an activity before that one on the stack then that activity will be restarted. This does allow you to write a

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Dianne Hackborn
This sounds much more complicated than you need. If you just want to load resources from another .apk, you don't need any code in it at all -- just use Context.createPackageContext() to get the context for the other package and load its resources from there. And if you don't need any UI, and

Re: [android-developers] Re: Dev Tools app crashes on entering Dev Settings menu (htc tattoo)

2010-02-13 Thread Dianne Hackborn
The source code is in the open source tree in the development project under apps/Development. You can build and modify it. You can also look at how it is poking things to get the specific features you want and write your own app to do that. (But please if you are using non-public APIs do not

Re: [android-developers] Re: onActivityResult is called immediately after startActivityForResult

2010-02-13 Thread Dianne Hackborn
The action or category (or data or mime type) in the launching intent doesn't matter at all for what will happen with the result. When you are in your second activity, you can try adb shell dumpsys activity to see the current activity stacks (they are the first thing printed; there is a lot

Re: [android-developers] is charset decoding terminal dependant?? (UTF8/iso-8859-1 question)

2010-02-13 Thread Thierry Legras
Thanks for your reply. yes this is a java.lang.String. Indeed all i want to do is to correctly display the string in some View. Ok i got the point about java String being 16 bits. If so, and as it is not well displayed, i guess this means it was not properly created at first. Maybe this issue

[android-developers] selecting language from within the app rather than by locale of the system settings

2010-02-13 Thread mot12
Hi, Any help on this would be much appreciated. I would like to give the users of my app the possibility of selecting a language from within the application. All languages are supplied the standard way via the values-?? resource directory. However, I don't want Android to select which resource

Re: [android-developers] Select wallpaper from..

2010-02-13 Thread Dianne Hackborn
Use PackageManager.setComponentEnabledSetting() to disable that activity when you don't want it displayed. On Sat, Feb 13, 2010 at 1:44 AM, Manjunatha M man...@gmail.com wrote: yes.. I want that to be configurable. sometimes to show and sometimes not to show in the list of select wallpaper

Re: [android-developers] Re: unable to bind to a service

2010-02-13 Thread Dianne Hackborn
If you haven't declared an intent-filter in your manifest, then the component will be private to that .apk. You can make it public with either android:exported=true or defining an intent-filter. HOWEVER.. PLEASE be super careful about doing this. Did you realize that you are in the process of

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, thanks for the hint! I already tried to implement this, but am now stuck with that setFocus works, but it does not raise the OverlayItem to the top. As is done if I select the item with a tap. So is there any chance to really select an item and not merely focusing it? Are you sure you want

[android-developers] Re: Force Close just restarts the app?

2010-02-13 Thread Steeler
I only have one activity in this app, but it still does it. Wouldn't a better way to go be just to have a manifest attribute for each activity that says whether it should be removed, restarted, or left alone? On Feb 13, 1:31 pm, Dianne Hackborn hack...@android.com wrote: What generally happen

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

2010-02-13 Thread CaptainSpam
I just tested this out, and it seems like it does work (that is, draw() IS getting called after a zoom). And, it doesn't seem to be hogging on system resources, calling draw repeatedly. So all in all, I'd say it's a workable workaround, though a cleaner interface in the API would be more

[android-developers] Picture while starting app

2010-02-13 Thread Nox
Hello everybody, I´ve got a problem with my current app. I want to see a picture while starting the app. I´ve already tried to use use a while-method but if I launch the app it ´ll wait a few seconds but it will not appear my picture. In a simple Java project I would use this command and I also

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread TreKing
Hmm ... it should, as the currently focused item should be drawn last (on top) by default. Maybe try invalidating the view after resetting the focus to force a redraw and see if that works? On Sat, Feb 13, 2010 at 2:37 PM, Fabian Sturm f...@rtfs.org wrote: Hi, thanks for the hint! I already

Re: [android-developers] Picture while starting app

2010-02-13 Thread Mark Murphy
Nox wrote: In a simple Java project I would use this command and I also don´t know what kind of command I´ll have to use to see the picture: public class waiting { public static void main(String[] args) { int seconds = 5; System.out.println(Waiting: + seconds);

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
I don't know what the other ContentProviders URI are. They can be anything, I want to release my keyboard service, and then release layouts as I need. This means that, somehow, the keyboard service needs to know which layout packages are installed on the device, and what are the URI of their

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Mark Murphy
Menny wrote: I don't know what the other ContentProviders URI are. Then don't use a ContentProvider. Follow Ms. Hackborn's directions instead and use Context.createPackageContext() and access the other APKs' resources that way. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Mark Murphy
Menny wrote: I don't know what the other ContentProviders URI are. They can be anything, I want to release my keyboard service, and then release layouts as I need. This means that, somehow, the keyboard service needs to know which layout packages are installed on the device, and what are the

[android-developers] Re: unable to bind to a service

2010-02-13 Thread dane131
well ok i understand the risk..and i will change the architecture but anyway i have a problem to bind to a service of another apk even if its attribute is exported=true i wonder if i do someting wrong in my procedure: in the remote apk i generate an interface from an aidl file and make a service

Re: [android-developers] Re: unable to bind to a service

2010-02-13 Thread Mark Murphy
dane131 wrote: do i make any mistake? That is difficult to answer, as remote services are difficult to debug via email. You should compare your implementation to others that demonstrably work. I would imagine there is a remote service sample in the SDK samples someplace -- search for AIDL

Re: [android-developers] Picture while starting app

2010-02-13 Thread Kevin Duffey
I am guessing he wants a splash screen... show an image while he loads some data or something in the background.. then when all done, starts up and the image goes away. Do a search here for splash screen. There are plenty of examples that show how to do it. On Sat, Feb 13, 2010 at 1:24 PM, Mark

Re: [android-developers] Re: New sales have come to a halt Re: Developer console stopped updating?

2010-02-13 Thread Kevin Duffey
I am curious why the heck Nexus 1 already got an update and yet Moto Droid, which is supposed to be an Android experience device STILL hasn't got the 2.1 update. There seems to be no communication what so ever from Moto about the update. We were told that within days after 2.1 came out we'd see

[android-developers] Re: Broken Meshes / not synchronous while rendering GlSurfaceView

2010-02-13 Thread Lance Nanek
glFlush or glFinish might allow something like that: http://java.sun.com/javame/reference/apis/jsr239/javax/microedition/khronos/opengles/GL10.html#glFinish() http://java.sun.com/javame/reference/apis/jsr239/javax/microedition/khronos/opengles/GL10.html#glFlush() I've never had to use or look

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-13 Thread Kevin Duffey
So Robert.. is this a platform issue in your mind.. being that it happens on all android devices currently regardless of manufacturer? Or is it a driver issue for each hand set and just oddly happens to be coincidental that various manufacturers have the exact same issue with multi-touch? I am

[android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-13 Thread Lance Nanek
A more capable multitouch screen probably costs more. If that is the case, it isn't really surprising that multiple manufacturers would go with a cheaper, less capable one. On Feb 13, 6:51 pm, Kevin Duffey andjar...@gmail.com wrote: So Robert.. is this a platform issue in your mind.. being that

Re: [android-developers] MapView Overlay that does always keeps an item selected?

2010-02-13 Thread Fabian Sturm
Hi, wow thanks a lot, your guess was right, I was missing an invalidate. Most of the time I would do an animateTo and that itself would trigger an invalidate :-) But unfortunately still not everything works. There seems to be a problem with focus handling. I can set the different items focus by

[android-developers] Need Samsung Moment user to help troubleshoot problems

2010-02-13 Thread ernestw
Hi all - I'm currently getting some problem comments from people claiming that my game FRG crashes on the Samsung Moment immediately when a bullet hits an enemy. Anybody have a Samsung Moment who could help me figure out the issue? I'd use DeviceAnywhere but their Samsung Moment has been offline

[android-developers] Lazy Loading Images in a ListView - consensus approach?

2010-02-13 Thread Carmen Delessio
Here are 4 references that I have found for lazy-loading images into a listview in Android. The idea is to display a placeholder image, get the actual image in the background, update the ImageView in the list when the image is available. I've tried to do this in the simplest way possible using an

Re: [android-developers] Lazy Loading Images in a ListView - consensus approach?

2010-02-13 Thread Romain Guy
I haven't looked in details at the 3 other approaches but I know that a big difference between what I do in Shelves and what I've seen done in other places is how user interaction is handled. Shelves listens to scroll events on the ListView and tries to identify taps vs scrolls vs fling to always

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

2010-02-13 Thread JP
Correct. I don't get any draw()'s in an Overlay during pinch-to-zoom action. Once released, the map snaps to the next zoom level (as driven by the MapView et al). This triggers draw()'s and the app has an opportunity to catch up. Can you confirm draw()'s are indeed fired during pinch-to-zoom, as

Re: [android-developers] Re: Multitouch seems badly broken on Nexus One 2.1-update1

2010-02-13 Thread Kevin Duffey
So are they all using the same company for the screen? On Sat, Feb 13, 2010 at 5:10 PM, Lance Nanek lna...@gmail.com wrote: A more capable multitouch screen probably costs more. If that is the case, it isn't really surprising that multiple manufacturers would go with a cheaper, less capable

[android-developers] Re: How to start an Activity from a Service and getting a result from it

2010-02-13 Thread Menny
So you suggest that I'll have a pre-define resource which will hold all the information I need (let's say it is an XML resource) for creating the external keyboard. This sounds OK. The only problem is how to query for packages which have this resource? I can still create an Activity which have