[android-developers] memory leak in activity

2009-09-23 Thread rukiman
In my app activity A creates activity B, however when the back key is pressed it goes back to activity A. This is a simplified version of my application. I would expect memory to be reclaimed when going back to Activity A. Going to activity B allocates more memory. I am using dumpsys meminfo to

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread JoaJP
Oh yeah Asterisk. I spent a few hours last year to build Asterisk for ARM. On a Nokia N810, which runs proper Linux (Maemo), it ran right out of the box, without any compromise. I am sure you can figure what's on my holiday wish list. It'll be interesting to see how that plays out on a carrier ne

[android-developers] Problem in using remote service from other App

2009-09-23 Thread Rahul Bhagwat
I’ve implemented remote service using aidl & it is working fine if I’m using its service from same package. But If I tried to use the service from other application it gives me error as below 09-24 10:51:08.051: ERROR/dalvikvm(795): Could not find method com.sasken.dlna.dmcRemService.IRemDlnaSe

[android-developers] How to detect All Ram Memory?

2009-09-23 Thread Reznic Alexander
I can see free Ram memory, but how to see all ram available? --~--~-~--~~~---~--~~ 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 unsub

[android-developers] To Display Calendar ........

2009-09-23 Thread ragavendran s
i want to display calendar in screen ..when the user select the MM-DD- from calendar.. it should store in the database... can u tell any source or any site to find this... Thanks in advance... With Regards, Raghav.S --~--~-~--~~~---~--~~ You received this mes

[android-developers] Re: Regarding Process Context

2009-09-23 Thread Raghu
ok thank you. i will post to android posting group On Sep 24, 2:12 pm, Dianne Hackborn wrote: > I think they are talking about modifying the platform (system service is the > main process that runs the system services), in which case this should be > moved to android-porting. > > Also processes

[android-developers] Re: Zipalign utility not available in android 1.5_r3

2009-09-23 Thread javame_android
Hi, Is there anyone who can reply to this? Regards Sunil On Sep 23, 6:37 pm, javame_android wrote: > Hi, > > I have developed an application and want to sign it. After signing the > application when I try to Align the final package with zipalign. But > there's no file called zipalign in tools

[android-developers] Re: HTC Magic Keyboard compatibility issue

2009-09-23 Thread Lee
Right... Having just finished up the code to make it a little more cross platform friendly here's what I needed to do to make it work nice: 1) Make the assumption that the keyboard isn't shown when the application starts (which seems to be generally true) 2) Look for size change notifications (f

[android-developers] Re: Regarding Process Context

2009-09-23 Thread Dianne Hackborn
I think they are talking about modifying the platform (system service is the main process that runs the system services), in which case this should be moved to android-porting. Also processes do not have contexts, so if you post to android-porting it would be good to explain in more detail what yo

[android-developers] Re: does android provides API for muiti tap?

2009-09-23 Thread Dianne Hackborn
You can easily write an IME that does this. Start off with the SoftKeyboard sample code. On Wed, Sep 23, 2009 at 9:41 PM, and.pradeep wrote: > > How to achieve multi tap for 3x4 virtual keyboard? > > Regards > Pradeep > > > -- Dianne Hackborn Android framework engineer hack...@android.com N

[android-developers] Re: ListView....

2009-09-23 Thread amit
Does a Spinner take care of your requirement ? A spinner is not a scrollable list like a list activity but it does show you a drop down list. http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/Spinner1.html On Sep 22, 7:43 pm, furby wrote: > Why does this ty

[android-developers] Compile fails when using a method that is Since: API Level 3

2009-09-23 Thread skyhigh
I have an activity that needs to respond to DPAD key presses. I started by using the View.onKeyDown method to get the DPAD events, but found that sometimes they go to one of the views in the view hierarchy for the activity and so never get to the activity view. Looking through the documentation

[android-developers] GridView and List

2009-09-23 Thread amiz
My app uses a gridview to display a list of values (imagine a calendar). I have a button that forces the list of values to be recalculated. When the apps starts the grid view is correctly displayed and individual cells can be selected and the correct position is displayed (ie position 0 is at the

[android-developers] Re: Utility class for database query

2009-09-23 Thread Sudeep
Thanks Jefferey. I don't want to extend the android.database.* package but I just want to simplify it. The idea is to build a utility package to help developers for easier,faster and robust programming. On Sep 23, 7:00 pm, Jeffrey Blattman wrote: > have you seen android.database.*? what would y

[android-developers] does android provides API for muiti tap?

2009-09-23 Thread and.pradeep
How to achieve multi tap for 3x4 virtual keyboard? Regards Pradeep --~--~-~--~~~---~--~~ 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 T

[android-developers] Re: Regarding Process Context

2009-09-23 Thread Mark Murphy
> I have created a Separate Process in Android Java Framework Layer. Why? Processes are expensive and generally should not be needed, beyond the one Android allocates for you as part of your app instance. > Now, I registered new receiver in System Server for my Process and > calling my process m

[android-developers] Re: Book suggestion

2009-09-23 Thread Mark Murphy
> > Any suggestions on a good book or two for someone who wants to learn > about Android, but is a .NET developer? I would start by learning Java someplace other than Android. That's the equivalent of advising somebody to learn C# on a desktop instead of using .NET CF (or whatever Windows Mobile

[android-developers] Re: Book suggestion

2009-09-23 Thread gjs
Hi, Have a look at - http://commonsware.com/ Regards On Sep 24, 1:24 pm, Tim wrote: > Any suggestions on a good book or two for someone who wants to learn > about Android, but is a .NET developer? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: loading PNG data to WebView

2009-09-23 Thread rukiman
Whats wrong with this code? I'm getting a broken icon image in webview. Bitmap page = loader.getPage(0); ByteArrayOutputStream out = new ByteArrayOutputStream(); page.compress(Bitmap.CompressFormat.PNG, 100, out); byte arrayData[] = out.toByteArray(); try {

[android-developers] Re: How to use hardware acceleration in OpenGL ES

2009-09-23 Thread LemonDev
i have download your demo, and run at approximate 14FPS. as methioned in you posts at( http://www.javagaming.org/index.php/topic,20910.0.html ) , there is someone run you demo on Hero at 60 FPS ? maybe i should borrow the phone and verify the result, if it is real , i have to contact HuaWei.

[android-developers] Book suggestion

2009-09-23 Thread Tim
Any suggestions on a good book or two for someone who wants to learn about Android, but is a .NET developer? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send emai

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread bseib
BTW, I just built the protobuf-java-2.2.0.jar file and noticed it is just over 300K in size. Anyone else using protocol buffers from an android device? Does it necessarily need to be so big, or am I missing some build param? It just doubled my application size. -broc On Sep 24, 7:09 am, "nEx.So

[android-developers] Regarding Process Context

2009-09-23 Thread Raghu
Hi, I have created a Separate Process in Android Java Framework Layer. Now i need context for my process to register receivers for any intent. How to get context for my process? Now, I registered new receiver in System Server for my Process and calling my process methods from that receiver on int

[android-developers] Re: how to change theme color of whole system

2009-09-23 Thread James Wang
Thank you! I will put this question to porting On Sep 24, 3:03 am, Dianne Hackborn wrote: > Sorry there is no way to do this without building a new system image. > > On Wed, Sep 23, 2009 at 12:37 AM, James Wang wrote: > > > Hi, > > I have read through android reference, can't figure out the way

[android-developers] Re: Accessing SharedPreferences in Services and non-Activities

2009-09-23 Thread Dianne Hackborn
You need to do this in onCreate() or later. Service and Activity are not fully initialized when the constructor is called and you generally shouldn't put any code there. On Wed, Sep 23, 2009 at 7:48 PM, brooke wrote: > > I have some shared preferences (user_id, email) that I want to access > fr

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread Roman ( T-Mobile USA)
"what T-Mobile USA's position is on allowing subscribers to run SIP over the 3G network?" T-Mobile has no restrictions on using SIP as a signaling protocol. As already mentioned in my post, whether you are running a server or a client, that you deal with the NAT traversal. -- Roman Baumgaertner

[android-developers] Re: How to use hardware acceleration in OpenGL ES

2009-09-23 Thread CraigsRace
It sounds like the HuaWei has the same problem as the Samsung, however, I am no hardware expert. You'd need to contact HuaWei and ask them why it returns the Android PixelFlinger instead of the GPU when requesting the GL Renderer. Or maybe someone from Google has some insite into this? On Sep

[android-developers] Re: View background question

2009-09-23 Thread WoodManEXP
I figured this out. Use RelativeLayout and you can overlay views. This makes it possible to use an ImageView to create a nonscaling backgroud. Hope this helps someone out there! On Sep 23, 9:57 pm, WoodManEXP wrote: > Does anyone know how to set a View background drawable that clips the > imag

[android-developers] Change IMSI on Emulator?

2009-09-23 Thread Jimmy Huang
Dear All, Does anyont know how to change IMSI on Emulator? Thanks --~--~-~--~~~---~--~~ 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 T

[android-developers] Accessing SharedPreferences in Services and non-Activities

2009-09-23 Thread brooke
I have some shared preferences (user_id, email) that I want to access from services and classes that are not subclassed from Activity. I have been trying to implement this today and keep hitting roadblocks. In particular, when I try to access getSharedPreferences, I get a null pointer exception.

[android-developers] Re: SimpleCursorAdapter with rawQuery

2009-09-23 Thread Siu Man Yu
Does anyone know how to customize the usage on SimpleCursorAdaptor? Or any resource on the web I can look for? Please kindly help. Thank you. On Sep 21, 5:56 pm, Siu Man Yu wrote: > In the API Demo, there is example on using SimpleCursorAdapter. > However, it is using the MediaStore cursor. > >

[android-developers] Unable to do HTTP POST over emulator proxy

2009-09-23 Thread kmphua
Hi all, I'm trying to use Facebook Connect to login to Facebook in Android, and due to our company's network usage policies, I have to do it through a proxy. I've added -http-proxy and -debug-proxy to the proxy settings, but when I try to do a HTTP POST, I keep getting the debug message "can't d

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread Chris Stratton
On Sep 23, 6:18 am, Masoom Alam wrote: > Can Android be used as Virtual PBX. This means that, it can work as a > virtual attendant for playing specific music files, call fowarding, > recording messages. SipDroid is already available but it is just a client > soft phone. Not really clear if you m

[android-developers] How I can contribution my Lao localization

2009-09-23 Thread Laonux
Hi, I was wondering if this forum is the right one or not. I was told that I can post my inquiry for help here. I am doing Lao localization for the Android 1.5 (almost done) and would like to submit to and further develop it with the relevant group. Please suggest which forum or group that I can

[android-developers] Re: How to use hardware acceleration in OpenGL ES

2009-09-23 Thread LemonDev
no, not samsung, but a device from T-Mobile manufactured by HuaWei . Log.v("", gl.glGetString(GL10.GL_RENDERER)); i get "Android PixelFlinger 1.0" which is the same as emulator and also same as your samsung i7500 . that is the problem. this.getHolder().setType(SurfaceHolder.SURFACE_TYPE_HARDWA

[android-developers] Re: DNS woes with the emulator

2009-09-23 Thread JavaNut
Thanks for the info. I tried to run it with -dns-server 127.0.0.1, with a working DNS proxy server. It accepted the argument but DNS resolution still didn't work. This is really bad. DNS and BIND are almost 20 years old at this point. We are past the time when people should have to spend hour

[android-developers] Creating a new dictionary for spell correction and word completion

2009-09-23 Thread Badawi
Hi, I'd like to develop a new dictionary for spell correction and word completation for keyboard.. I'm brazilian and Android doesnt have a pt_BR dictionary.. Someone can help me with witch class, or resources I have to create for this? Also, I'd like to create a new Keyboard language too. th

[android-developers] Re: Proxy support not working in Android 1.6 emulator

2009-09-23 Thread kmphua
I've tried using the -http-proxy option in 1.6 and it doesn't work too. Had to revert to back to 1.5 as a result. Regards, Kevin. On 9月17日, 下午4時40分, Markus Junginger wrote: > After upgrading to SDK 1.6 theemulatorseems to be unable the > Internet through aproxy(-http-proxyoption). The same is w

[android-developers] Re: Is audio stream analysis possible?

2009-09-23 Thread Chris Stratton
Definitely possible when not on a call, not sure if you can do it when one is active. The actual analysis would not be android specific, and I'm not even sure that frequency-domain ("audio stream spectrum") methods would be needed, as you could probably do it all in the time domain more simply.

[android-developers] Re: HTC Magic Keyboard compatibility issue

2009-09-23 Thread Chris Stratton
Or to put it real simply, how come we can easily toggle the showing of the keyboard, but not query or set it? I do see the benefit in allowing flexibility for localization, etc, via open-ended keyboard capabilities, but at the same time some applications that "just barely fit" in the display real

[android-developers] Re: DNS woes with the emulator

2009-09-23 Thread WoodManEXP
I have the exact behavior on Windows. Eveything else running on Windows is resolving the local DNS names except the emulator. I just code in the IP address of the desired server ( like 10.0.0.4 as currently assigned by DHCP) for testing purposes with the emulator. I do not have problems going to D

[android-developers] DNS woes with the emulator

2009-09-23 Thread JavaNut
My emulator (1.5) can't do DNS resolution. I'm running it on my Linux computer. My Linux computer has no problems with name resolution and has everything it needs in /etc/resolv.conf. According to the manual, the emulator is supposed to use the resolvers in /etc/resolv.conf but it doesn't appea

[android-developers] View background question

2009-09-23 Thread WoodManEXP
Does anyone know how to set a View background drawable that clips the image rather than scaling it (sort of like using a ImageView with wrap- content instead of fill_parent). I’d like to set background drawable and not have it distorted (looks especially bad when going to landscape orientation).

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
TextView.setOnEditorActionListener () is the incantation to be used. thanks, mike --~--~-~--~~~---~--~~ 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

[android-developers] Keystore tampered with or password incorrect

2009-09-23 Thread rde8026
Hello, I'm having an issue with my keystore. i crated it a while back and now I want to provide an update. I know I'm providing the correct password but I keep getting the error message that says the keystore has been tampered with or the password is incorrect... Is it possible to generate a

[android-developers] Re: loading PNG data to WebView

2009-09-23 Thread rukiman
Am I able to use the loadData() function and just pass in the the raw byte data for a PNG if I make the encoding UCS-16 ? How can I convert a Bitmap to a String so I can pass into loadData() ? On Sep 23, 2:53 pm, rukiman wrote: > I have an instance of Bitmap that I want to load into the WebVi

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
Thank you. I knew I was wandering in a dark area I shouldn't be. --~--~-~--~~~---~--~~ 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] Re: How to create Image filter based animations ; Android Animations

2009-09-23 Thread kostmo
Would TransitionDrawable suit your purpose? Karl On Sep 16, 11:34 pm, siddharth_v wrote: > Hi > I have a requirement to create animations which are based on Image > filters. As of now I can see only AlphaAnimationsupport. How can I > extend and create these animations such as blur etc. > > Than

[android-developers] Re: Local speed at gps location sometimes reported wrong on G1

2009-09-23 Thread Mike Collins
This is a normal issue with GPS devices since they don't actually measure speed, only location. Speed is derived from locations and time. Most GPS's will get speed wrong if the position data stream is flakey, I've seen my Garmin report 350mph when riding in the mountains, I'm fast but not that f

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Dianne Hackborn
If you are using a TextView, this is the easiest API: http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions If you are talking directly with an InputConnection directly, you can fill in your EditorInfo with this and other information as you want. On Wed, Sep

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
Thanks, to be clear I'm using the 1.5 SDK and a G1 with 1.5 on it. How do I assign an action to the Done key? I can see the EditorInfo class and can maybe understand how to setup an action but have no idea what to do with it. >From the SoftKeyboard example I'm apparently to send one of these to

[android-developers] Donut (1.6), auto complete text view and ellipsize

2009-09-23 Thread Chris W.
I have a layout that includes the following: Up until 1.6 the ellipsize attribute on my view above functions as I would expect. Since upgrading to 1.6 the ellipsize attribute, regardless of what I set it to (start, middle, end) seems to be ignored. Any hints and/or recommendations? --~--~

[android-developers] Re: problem with startActivityForResult function

2009-09-23 Thread Stefan
thanks, my app works fine now. Thanks, Stefan --~--~-~--~~~---~--~~ 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 t

[android-developers] Re: HTC Magic Keyboard compatibility issue

2009-09-23 Thread Lee
I think that putting the flexibility onto keyboard developers takes actually imposes a burden on the application developers. I would say that the number of people developing applications for Android are going to far outnumber the number of people who are developing keyboards and IMEs. Furthermor

[android-developers] Re: using tesseract on android

2009-09-23 Thread bseib
I wasn't aware of the NDK for android -- wow, it looks awesome, and it would *really* help my app with some image processing. So here's my dilemma: Does anyone know if all android devices are ARM at the moment? It seems a bit of a risk to depend on this as an app developer. Or should we just pre

[android-developers] Re: What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Dianne Hackborn
You get to tell the IME what action to put on it, so the intended action is up to you. The default is to put next when there is a focusable text view after the current one (so next will go to it), and done when there is not (so done will close the keyboard). On Wed, Sep 23, 2009 at 4:52 PM, Mike

[android-developers] 1.6 system image for ADP1

2009-09-23 Thread havexz
When will the system image for Device ADP1 will be available? --~--~-~--~~~---~--~~ 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 unsu

[android-developers] How to use the XML RPC Android library (android-xmlrpc)

2009-09-23 Thread Lex
Hi, I'd like to use the XML RPC library found at http://code.google.com/p/android-xmlrpc/ . How do I use it for my application though? It has no class files and it refers to libraries that are not included. Is it possible to install it as an Android application and refer to it's code from anothe

[android-developers] What is the intended usage of the "Next" and "Done" keys on the soft keyboard

2009-09-23 Thread Mike Collins
The "Next" key seems to move to the next item that could interact with the keyboard. The "Done" key is less clear to me. It sends in a KeyEvent.KEYCODE_ENTER event. Is it possible to distinguish this event from the down-and- left-arrow key that also sends in a KeyEvent.KEYCODE_ENTER? It appea

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread Joy
On Thu, Sep 24, 2009 at 4:11 AM, Evan Ruff wrote: > > You know, > > I would be awesome if we could get some sort of native C++ system > service to solve this issue. I don't really care WHAT the > implementation is, so long as it's blazing fast. > Hi Evan, Did you mean readObject/writeObject? T

[android-developers] Re: wrap around with textview in a tablelayout broken

2009-09-23 Thread Broc Seib
Hi Fabian, Actually, your TextView is just fine; all the text "exists" and is wrapping properly, it has just been rendered off the edge of the screen. It is the TableLayout that is doing something odd. (In fact, I found that if I put items following the TableLayout, but still within the vertical L

[android-developers] Re: Large number of Contacts - DB corruption

2009-09-23 Thread Joy
Hi, Looks like you may forget closing cursor. On Thu, Sep 24, 2009 at 6:19 AM, pskr wrote: > > Hi, > We have an application which adds, updates and deletes contacts. > Some times, we get the following error and DB gets corrupted and we > loose all contacts. I pasted the relevant log at the

[android-developers] Re: Map not working (again)

2009-09-23 Thread Lex
I was using keys generated on the respective machine. I just checked if all Java paths were set correctly, deleted the key files, cleaned and rebuilt the project, nothing. On Sep 23, 4:09 pm, Jason Proctor wrote: > i ran into something similar. > > the maps key is generated from the key you use

[android-developers] OpenGL 2D Game Framework

2009-09-23 Thread Jason Proctor
well you pick the situation that works best for you. some decide to give back into the community for all the free stuff we have available now. some decide on shareware. some decide on a tiered arrangement depending on what the developer makes. etc. lots of options available. >LGPL is bad if

[android-developers] Is audio stream analysis possible?

2009-09-23 Thread Ilya Shinkarenko
Hi all, I wonder if it is possible to analyze audio stream spectrum with Android API (similar to what you can easily do with Flash). Basically what I need is to determine the duration between two claps in a small audio record. The claps are much louder than the background, so theoretically it sho

[android-developers] Re: OpenGL 2D Game Framework

2009-09-23 Thread dm1973
LGPL is bad if you want all software to be free by the fsf definition and their goals in life. If you want people to use a game library it pretty much needs to be LGPL (or one of the other licenses that doesn't require publishing all the source code) or commercial developers will write their own.

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread JoaJP
NAT's a problem, so is getting across Hotspot portals and, worst of all, hunting for WiFi. I've done that a few years ago for short while (on a non-Android device, of course), and it gets old real fast. This means one would expect to run SIP over the 3G data network. I haven't had an opportunity t

[android-developers] Large number of Contacts - DB corruption

2009-09-23 Thread pskr
Hi, We have an application which adds, updates and deletes contacts. Some times, we get the following error and DB gets corrupted and we loose all contacts. I pasted the relevant log at the end. If you look closely, the error originates with 'Too many open files'. We just use ContentResolve

[android-developers] Re: Map not working (again)

2009-09-23 Thread Jason Proctor
i ran into something similar. the maps key is generated from the key you use to sign your application. if you build the application on another machine, but use the same maps key, then maps won't work. ship around a good APK, or copy your keystore file to other machines that need to build. hth

[android-developers] Re: ADC2 entries so far...

2009-09-23 Thread Ilya Shinkarenko
Misc: Tennis Math http://www.tennis-math.com/ 2009/9/19 Mobidev : > > This ADC2 entries list is updated and moved to 'Android Discuss' group > at: > http://groups.google.com/group/android-discuss/browse_thread/thread/b0111088236fb0a3# > > > > > --~--~-~--~~~---~--~--

[android-developers] Map not working (again)

2009-09-23 Thread Lex
Hi, I just started another project that includes maps and just like in the previous project, I can't get the maps to work (the code is identical with the map view tutorial). In my last project, I never managed to make the maps display on one machine, and it worked right away on the other one. I h

[android-developers] onKeyboardActionListener vs onKeylistener

2009-09-23 Thread Android_n00b
Hi, I am new to Android, and am writing an app which has 2 EditTexts (Let's call them A and B) and whenever I hit any key in A, it is automatically copied to B. For example, if I type HELLO in A, it will copy each letter into B. I managed to get this to work perfectly with the setOnKeyListener().

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread Robert Green
I use JSON w/Ruby on Rails as my server. It works fairly well, though I did have to do a little rigging to get errors handled nicely. My vote is to keep going with JSON. All you really need to write is a toJSON() on the server side and fromJSON(JSONObject obj) on the client. It can get a littl

[android-developers] Local speed at gps location sometimes reported wrong on G1

2009-09-23 Thread TrakMan
Hi, when evaluating the speed of a gps location via android.location.Location.getSpeed() this sometimes (randomly) responds with values close to 128 m/s on a G1, which is senseless (except when you are in a plane...). The problem seems to be unrelated to position accuracy, but may have something

[android-developers] Sampling data from the internal Mic, and from a headset Mic.

2009-09-23 Thread Julian Bunn
My app takes audio samples from the Mic, and processes them. The app works fine with the internal Mic, but as soon as I plug in a headset, I seem to lose the Mic signal: I still receive data, but it is quiet. The headset is functioning correctly, because it works fine for e.g. phone calls. This s

[android-developers] Virtual touch area for an ImageButton

2009-09-23 Thread suzannea
I'd like to create an ImageButton with a virtual touch area larger than its visual area, to make it easier for a user to touch the button (or button area). What's the best way to do this? Adding android:padding appears to stretch the drawable image, at least in the Android 1.5 emulator. -

[android-developers] Re: Can a core class access resources at the app layer?

2009-09-23 Thread Andy Droid
That's a great tip, I hadn't know about that. But, I'm trying to make it so that the default list selector will be changeable, at the app layer. On Sep 22, 9:31 pm, "Mark Murphy" wrote: > > Can a core class such as "AbsListView" access resources, such as xml > > files, and .png's, in a 3rd part

[android-developers] Overlay class and Event Handlers

2009-09-23 Thread Neilz
Hi all. Maybe I don't understand the concept of event handlers, but this doesn't seem to work the way I would expect. The Overlay class, and its subclass ItemizedOverlay, have a number of event handlers, which I've been playing around with: onTap(GeoPoint p, MapView mapView) onTap(int in

[android-developers] Re: Android as a virtual PBX

2009-09-23 Thread Roman ( T-Mobile USA)
Of course you could think of to run your Android device as a server like system, but be aware that in case of cellular you have to deal with NAT. This means all your clients have to know how to reach you. One possibility to deal with this problem would be to use a cloud service and notify the clou

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread nEx.Software
You could try protocol buffers... http://code.google.com/apis/protocolbuffers/ On Sep 23, 1:11 pm, Evan Ruff wrote: > You know, > > I would be awesome if we could get some sort of native C++ system > service to solve this issue. I don't really care WHAT the > implementation is, so long as it's b

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread Evan Ruff
You know, I would be awesome if we could get some sort of native C++ system service to solve this issue. I don't really care WHAT the implementation is, so long as it's blazing fast. Is that even part of the Android thing? E On Sep 23, 4:07 pm, WoodManEXP wrote: > Evan, As far as I can tell t

[android-developers] Closing one activity from another

2009-09-23 Thread Boozel
Hi Is there anyway to close one activity from another? I want to go through a whole bunch of activities once i get to the last one close all the previous ones. i cant close them as i move on to the next one because i want to be able to go back unless ive got to the last one. Thanks for any help. -

[android-developers] Re: Sending/Receiving Java Objects to Server

2009-09-23 Thread WoodManEXP
Evan, As far as I can tell there is little support native to Android for what you are lookng for. It has good basic http communication support but not much higher level abstractions. That being said you could write a layer to do the serialization into a stream and then HTTP it to the server to be

[android-developers] Sending/Receiving Java Objects to Server

2009-09-23 Thread Evan Ruff
I have a Tomcat Server in front of a Servlet that gets/stores information in a MySQL Database. My Android application needs to get/ put information on to this server. I control both ends of the communication, so I've basically been exploring the "best" way to send information back and forth. So fa

[android-developers] Re: Using android:configChanges to handle orientation

2009-09-23 Thread suzannea
Thanks, Mark and Dan. Dan - don't shoot, please! Suzanne On Sep 23, 11:58 am, "Mark Murphy" wrote: > > But realistically,  what are the special cases when an app would use > > android:configChanges="orientation|keyboard|keyboardHidden" to avoid > > activity recreation during orientation chang

[android-developers] Re: what exactly there is in apk file??

2009-09-23 Thread Dianne Hackborn
It is a zip file; you can use zip tools to look at what is inside. For binary data structures like the dex file and resource table, the main documentation is probably the headers and such in the open source platform. For example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blo

[android-developers] Re: Debugging on Live device

2009-09-23 Thread Dianne Hackborn
A little more -- all Android devices with market will have ADB support and full application development and debugger support as the original G1. That is, you can use Eclipse to directly develop, install, run, and debug an application on such a device, just like with the emulator, as well as other

[android-developers] Re: Any way to see what Notifications are on status bar?

2009-09-23 Thread Dianne Hackborn
No, my point is that what a particular notification means is an implementation detail of an app. In fact it often changes across builds of an app, since a notification is identified by its package name, and resource ID, and when you modify your resources the ID will often change. And the package

[android-developers] Re: how to change theme color of whole system

2009-09-23 Thread Dianne Hackborn
Sorry there is no way to do this without building a new system image. On Wed, Sep 23, 2009 at 12:37 AM, James Wang wrote: > Hi, > I have read through android reference, can't figure out the way to change > the theme color of whole system. > Is there any way to do it without hacking framework? > >

android-developers@googlegroups.com

2009-09-23 Thread Dianne Hackborn
Just write your own IME: http://developer.android.com/reference/android/inputmethodservice/InputMethodService.html There is a sample code for one included in the SDK, and I am pretty sure there some developers have put up on market. 2009/9/23 Bahadır Yağan > Hello All, > > Is there a way to ad

[android-developers] Want to display a custom view or drawable alongside text for choices in ListPreference

2009-09-23 Thread Mike
Maybe I'm being dense (it's been known to happen), but I don't see a way to display a graphic alongside the text for a list item in a ListPreference. Ideally, I'd like to make use of a custom view to render the graphic. Any ideas? Thanks in advance, - Mike --~--~-~--~~~

[android-developers] Re: System.setProperty() cannot change system property in Android

2009-09-23 Thread Dianne Hackborn
That is not a public API. On Tue, Sep 22, 2009 at 10:45 PM, Yuan-Fu wrote: > > Using SystemProperties.set("prop", val) in Java Layer > > from "android.os.SystemProperties" > > System.setProperty() is Proerty about java runtime in this process, > not equal to android property.. > > > On 9月23日, 下午

[android-developers] Re: Using android:configChanges to handle orientation

2009-09-23 Thread Mark Murphy
> But realistically, what are the special cases when an app would use > android:configChanges="orientation|keyboard|keyboardHidden" to avoid > activity recreation during orientation change? I think real-time games would use this approach. First, the latency in destroying and recreating the activ

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-23 Thread Mike Collins
Should I take the lack of reply as "not an interesting question", "no idea" or "we're checking/thinking"? I would like to have some ammunition when I go up against my QA people to explain this uncontrolled behavior. tia, mike --~--~-~--~~~---~--~~ You received

[android-developers] Re: Porting Android SDK for large screen devices.

2009-09-23 Thread Dianne Hackborn
Hi, this kind of question belongs on android-porting. Thanks. On Wed, Sep 23, 2009 at 11:05 AM, Anand wrote: > > Hi There, > > I am not sure, if this is the correct platform to talk about it, > however I would like to know something about 'How Android supports the > large screen display'. > I m

[android-developers] Re: Using android:configChanges to handle orientation

2009-09-23 Thread Dan Sherman
We avoid it with games, pretty self-explanatory there :) - Dan On Wed, Sep 23, 2009 at 2:24 PM, suzannea wrote: > > > I know that by default a screen orientation change destroys and > recreates an activity, so the activity can load new layout, drawable, > and string resources. > > I also read ab

[android-developers] Using android:configChanges to handle orientation

2009-09-23 Thread suzannea
I know that by default a screen orientation change destroys and recreates an activity, so the activity can load new layout, drawable, and string resources. I also read about using onRetainNonConfigurationInstance() to save an Object before rotating and getLastNonConfigurationInstance() to restor

[android-developers] Porting Android SDK for large screen devices.

2009-09-23 Thread Anand
Hi There, I am not sure, if this is the correct platform to talk about it, however I would like to know something about 'How Android supports the large screen display'. I mean here that suppose I want to port the Android SDK to a large portable device having a large display as compared to HTC G1

[android-developers] Porting Android SDK for large screen devices

2009-09-23 Thread Anand Srivastava
Hi There, I am not sure, if this is the correct platform to talk about it, however I would like to know something about 'How Android supports the large screen display'. I mean here that suppose I want to port the Android SDK to a large portable device having a large display as compared to HTC G1

[android-developers] ProgressDialog doesnt show when called...?

2009-09-23 Thread Jason Proctor
>I think using an AsyncTask is better. On one hand, it's just simpler >to implement. On the other hand, it's built in Android and you can be >100% it's supported and the way Android was designed to work. So, >rather than using a handler and multiple threads, I find it simpler to >display the loadi

  1   2   >