[android-developers] Re: Sharing SQLite Database between activities

2010-06-27 Thread brucko
Probably the model that your looking for is a local service. Keep all your interaction with the db in the one service. Open the db in onCreate and close it in onDestroy. You can bind to it from multple Activities - and if your service is still there when binding so is your db without replicating

[android-developers] SpinnerTest from SDK is green but doesn't work proper

2010-06-27 Thread hsd
Hi all, The example unit test SpinnerTest returns green in the test process but when I try debug this I recognized that the states of activity are not called. I would like to know if some one test this too and debug. Please inform me if this is some know bug in SDK examples or no one have the

Re: [android-developers] Re: Opening local URLs using the emulator browser

2010-06-27 Thread Mark Murphy
On Sat, Jun 26, 2010 at 10:54 PM, kypriakos demet...@ece.neu.edu wrote: Now, if I want the user to be able to open the web page (that includes a set of javascript scripts) how would the user address the page from the browser? They wouldn't. You can use file:///android_asset/ URLs in WebViews

Re: [android-developers] Re: How to capture game screens on device

2010-06-27 Thread Mark Murphy
On Sat, Jun 26, 2010 at 10:12 PM, Lance Nanek lna...@gmail.com wrote: 3 - I haven't convinced Android x86 running in a VM to run at Android standard resolution yet. It should be easy to capture video from it similarly if I ever do. Out of curiosity, what problems did you encounter with this?

[android-developers] CHANGE_WIFI_MULTICAST_STATE

2010-06-27 Thread Alex Cohn
Please help me find a reasonable explanation of this permission. When should I 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,

[android-developers] Re: got a problem to learn Android

2010-06-27 Thread Navigateur
The best Java tutorials are the Sun The Java Tutorials on the internet. Since Android uses the Java programming language but uses a different virtual machine, you can overlook some of the JVM-related comments in the tutorials but programming is the same in every language, so what you learn in

[android-developers] Re: How to capture game screens on device

2010-06-27 Thread Lance Nanek
3 - I haven't convinced Android x86 running in a VM to run at Android standard resolution yet. It should be easy to capture video from it similarly if I ever do. Out of curiosity, what problems did you encounter with this? So far I've just run Android x86 on VirtualBox, intending to

[android-developers] Re: Looking for programmer - iMagnifier.com

2010-06-27 Thread Maxood
I guess this is right URL http://imagnifier.com/ because the aforementioned requested URL /www.iMagnifier.com was not found on the server. Please confirm. We will be happy to inform you how far it is feasible to develop such an application on Android. We have made a number of apps on Android for

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-27 Thread Lance Nanek
Weird that it matters what previous versions are laying around. On my Windows 7 (32-bit) machine, at least, I can flat out force it to use the latest. So old versions don't matter. Goes something like: make sure latest SDK USB drivers are downloaded to the default Android windows SDK usb_driver

[android-developers] Drawing 2D stuff on the screen in OpenGL over a 3D scene

2010-06-27 Thread Navigateur
Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0,

[android-developers] Can I put a donation link in my free app?

2010-06-27 Thread Alex Xin
Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell my app. Does Google allow developer to do this? Thanks a lot Alex -- You received this message because you are subscribed

Re: [android-developers] Re: Is runtime mapview defining possible? (rather then in main.xml)

2010-06-27 Thread Thomas Wrobel
Thanks, but no luck. I get the exact same error :-/ On 26 June 2010 22:35, HeHe cnm...@gmail.com wrote: it should be possible. one way is to put a framelayout on xml and in activity do sxth like: mapview mview=new mapview(this,getString(R.string.mapkey)); framelayout

[android-developers] Re: This Community Map could not be displayed because it contains errors

2010-06-27 Thread Lance Nanek
That looks like the URL for an RSS feed version or something like that, not a KML version. Last time I showed a My Map the way you are trying, not only did I need a KML version produced by adding the output=kml parameter to the My Map's normal viewing URL, I also had to proxy the KML via my server

Re: [android-developers] Can I put a donation link in my free app?

2010-06-27 Thread Andrew Brampton
Yup donations are fine, you could even put adverts in. Andrew On 27 June 2010 14:16, Alex Xin xinxi...@gmail.com wrote: Hi, folks I want to login my app as free app, but I think maybe I can put a donation link in my app, of course, my users can use my app without any donations. I don't sell

[android-developers] Re: Is runtime mapview defining possible? (rather then in main.xml)

2010-06-27 Thread HeHe
sorry it does not work for you. it is odd. all map views of my app are dynamically created and inserted this way. i need to check if they are ok with debug and release modes while i dont want to hardcode map key in layout xml and manually modify xml whenever i switch my app between two modes.

[android-developers] TextView showing invisible chars in 2.0 - 2.1

2010-06-27 Thread Connick
In testing my app across different OS versions I've noticed what appears to be carriage returns showing as visible squares in TextView. This doesn't happen on Froyo ...wondering if anyone knows how get around this in previous versions? Thanks, Stace -- You received this message because you are

Re: [android-developers] Re: Is runtime mapview defining possible? (rather then in main.xml)

2010-06-27 Thread Thomas Wrobel
I think I worked it out. I had imported the maps.jar file into my build path, rather then just setting the target to GoogleAPI 7 under the android tab. (with that set, I could remove the manually imported maps.jar file and it worked fine). I was overcomplicating maters :) Cheers, Thomas On 27

[android-developers] ListView scrolling

2010-06-27 Thread Scott Warfield
I have a ListView with a scrolling issue. The Array contain a large number of items. When i try to scroll down, the listview displays the first items again. For example, if the initial view shows 12 items, and I scroll down to view the next three, instead of showing 4 through 15, if shows 4

[android-developers] Re: TextView showing invisible chars in 2.0 - 2.1

2010-06-27 Thread Stacy
Ah found it. Set transformation on the TextView - HideReturnsTransformationMethod() On Jun 27, 11:40 am, Connick oconn...@gmail.com wrote: In testing my app across different OS versions I've noticed what appears to be carriage returns showing as visible squares in TextView. This doesn't

[android-developers] Re: ListView scrolling

2010-06-27 Thread Scott Warfield
NM, got it. It was a problem in the getView method of the adapter specifically related to the convertView argument. On Sun, Jun 27, 2010 at 11:50 AM, Scott Warfield malam...@gmail.com wrote: I have a ListView with a scrolling issue. The Array contain a large number of items. When i try to

Re: [android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread xhy
i want to paly a 8192*8192 image int a big TV screen,as a result such a big image is needed. 2010/6/25 Mike dg vinb...@gmail.com I doubt you have an 8192x8192 screen. So figure out what you re actually doing with the image and then only use as much as you need or all of it scaled to screen

Re: [android-developers] Re: How to capture game screens on device

2010-06-27 Thread Mark Murphy
On Sun, Jun 27, 2010 at 7:28 AM, Lance Nanek lna...@gmail.com wrote: None of the options in the vga=ask boot option seem like they can fix this alone Ah, OK. I played around with Androidx86 briefly, actually with an eye towards larger screen sizes, and forgot that it might not handle the

[android-developers] Re: Moto Droid ADB Drivers no longer work after HTC Evo was used.

2010-06-27 Thread pcm2a
When I pick properties of the Android ADB Interface I have 3 tabs, General, Driver, and Details. Driver Tab: - Driver Details - WinUSB, WdfCoInstaller01007, WinUSBCoInstaller - Update Driver - Update Driver has me search for another driver - Roll Back Driver - No driver has been backed up

[android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Streets Of Boston
Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it :-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger. On Jun 27, 12:06 pm, xhy xhyg...@gmail.com wrote: i want to  paly a 8192*8192 image

[android-developers] Reading from XML

2010-06-27 Thread Michael
Hello, on my app I will be reading in from an XML file thats formatted something like this database db1 db namename here/name streetstreet here/street long longitude here/long lat latitude here /lat /db db name new name here /name street new street here /street long new longitude here /long

[android-developers] Re: “Failed to find provider info for android.server.checkin ” ?

2010-06-27 Thread Lance Nanek
Your app should always be coded to be able to handle getLastKnownLocation returning null. Something has to have requested location updates for there to be any last known location. For the GPS provider, for example, getLastKnownLocation will not turn the GPS on, but requestLocationUpdates will. See

[android-developers] How to expose methods of an application to another application

2010-06-27 Thread Dantu
Hello, Is there any way to expose the methods of one application to another application in android. Suppose that I have written a slider for one application and if i want to use the same slider in some other application, How can I do it without copying the source.(Both the applications

Re: [android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Kostya Vasilyev
27.06.2010 21:25, Streets Of Boston пишет: Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it:-) If you have an HDTV of 1080p, then the max resolution is 1920*1080 (about 2MPixels). There's no need to go larger. Besides, the phone's real output

[android-developers] Re: discoverability

2010-06-27 Thread Lance Nanek
Even developers sometimes miss that certain apps have menus: we've had questions in this group about clearing Market app reviews, and skipping entries in the ADC2 app, for instance. Users probably have the problem even more since they won't know as much about Android and won't be as technically

Re: [android-developers] How to expose methods of an application to another application

2010-06-27 Thread Mark Murphy
On Sun, Jun 27, 2010 at 2:33 PM, Dantu dantu.swar...@gmail.com wrote:         Is there any way to expose the methods of one application to another application in android. For pure processing, you can expose a remote service with an AIDL interface... Suppose that I have written a slider for

[android-developers] Re: Reading from XML

2010-06-27 Thread chaitanya
How about using the SAXParser ? The SAXParser will throw events for start of a tag and end of a tag. Plus it is much more faster than a DOM Parser. For every head element i.e. in your case db have a flag and store the value in the name tag in either a StringBuilder or a custom object which

[android-developers] Re: Mapping Multiple textures to a cube in Android OpenGL ES

2010-06-27 Thread chaitanya
Thanks Robert, So in short you are stating that I use a texture atlas approach. The second approach is what I used right now, for every face of the cube construct that side and binding it to the texture which was really inefficient. Well, you have said something about the distortion. I read at

[android-developers] Designing and Implementing Android App Idea

2010-06-27 Thread B Woods
Does anyone have any good references for designing and implementing an idea I have for an android application. My idea is for an application that stores information and reviews about a specific location and presents this information to user. I have gone through all the tutorials and have been

[android-developers] Re: Designing and Implementing Android App Idea

2010-06-27 Thread Maps.Huge.Info (Maps API Guru)
You might want to review the other apps that have a similar theme, check out http://www.androlib.com or http://cyrket.com for a web based app search tool, then try them on your Android device to see if your idea is anything unique. After that, I suggest looking at this site:

[android-developers] Routing Audio to Bluetooth Headset API Level 8

2010-06-27 Thread jwei512
Hello! I was wondering if it was possible to route audio files from the phone to a bluetooth headset on versions of Android API Level 7 and under (so versions older than the new Froyo) If so, do you know of any sample code I could look at to figure out how to do this? Or perhaps just point me in

[android-developers] Re: Do VBOs really improve performance? Really?

2010-06-27 Thread Lance Nanek
Do VBOs do anything on a device with unified memory? There is no separate graphics memory on many of these devices, right? On Jun 20, 9:51 pm, Robert Green rbgrn@gmail.com wrote: Navigateur, Performance is highly device-dependent.  If you're not seeing any performance differences, it

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-27 Thread Pedro Teixeira
Thanks a lot Brad! I think it's working now. Though I don't know why my map center retrieves a change map, since before I do all this code I setCenter at some specific coordinates, my ''getMapCenter'' is not the same value. I also set up like in your code the calculation in the server side

[android-developers] Re: Best way to determine device capabilities, chipset, etc

2010-06-27 Thread Lance Nanek
scaling, min/max freq). And I'm pretty sure you can query OpenGL for all kinds of stuff without the need for any hacks. Checking glGetString(GL_RENDERER) for Adreno nails down a lot of high quality phones, particularly. On Jun 22, 2:31 am, Piotr Buła piotr.b...@gmail.com wrote: On Jun 19,

Re: [android-developers] Designing and Implementing Android App Idea

2010-06-27 Thread Brad Gies
Probably the best references you will find is the API documentation for Google Local Search, unless you are planning on storing the information on your own server. Learn everything you can about Android HttpClient, and probably JSON.. you will need it extensively. I have an app on the

Re: [android-developers] Re: Mapping (x,y) to (latitude,longitude)

2010-06-27 Thread Brad Gies
I think your map center is giving you different values because you are checking it before it has animated/moved to the new position you have set... It's the same reason your getLatitudeSpan() was zero at the time. BUT.. if you are setting the map center anyway, you don't need to get it from

Re: [android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread xhy
In fact the clients demand it,so i have no idea. 2010/6/28 Kostya Vasilyev kmans...@gmail.com 27.06.2010 21:25, Streets Of Boston пишет: Wow, do you have a big screen TV capable of displaying 8192*8192 pixel images!? I doubt it:-) If you have an HDTV of 1080p, then the max resolution is

[android-developers] Re: how to play a 8192*8192 image ?

2010-06-27 Thread Streets Of Boston
Then you need to tell them it is impossible. Ask them what the maximum resolution is of the output they desire. And i'm curious which output- device your clients have in mind if it needs a 8192x8192 resolution. Anyway, if it is an HDTV, more than 1920x1080 is not necessary. And if you hook up the

[android-developers] Re: Diapad phone red button press

2010-06-27 Thread Raja Nagendra Kumar
Sorry..Here is my Question.. We have a application which initiates a call using the Intents to Android Dialer In a normal context, the user of the application makes the call and ends the call by red button press. We are looking to automate such actions of the users though the testcase api.

[android-developers] Re: notifyDataSetChanged() not updating listview after orientation change

2010-06-27 Thread Bara
I figured it out! As it turns out, I have the ListView's visibility set to GONE by default. I show the ListView in my OnClick event for my button. When the orientation changes and the Activity gets destroyed and re-created, the ListView's visibility gets reset to the default set in the XML,

Re: [android-developers] Re: Avoiding GPL

2010-06-27 Thread Andy Savage
From a technical standpoint presuming the GPL licence allows it (I'm not a lawyer and I don't pretend to be one) you might want to consider something like OpenIntents. http://code.google.com/p/openintents/ This could allow you to link two unrelated packages together in theory (I think). On Sun,

[android-developers] Implementing a toolbar/taskbar kind of thing.

2010-06-27 Thread Bhavya Siddappa
Hi, The way we can do it in HTML, where we have two framesets. If I click a link in one frame then only the other frame(target one) is reloaded, the one from which I clicked is not. How this can be done in Android? As in, Say I have a kind of taskbar/toolbar which is part of all views. Is there

Re: [android-developers] Marketplace behavior when version is wrong.

2010-06-27 Thread TreKing
On Tue, Jun 22, 2010 at 6:10 PM, Chris Hessing chsoftwo...@gmail.comwrote: What does the user see? A message saying the app could not be found with absolutely no explanation as to WHY, leading to many confused individuals that then flood the Android Market Support forum with the same questions

Re: [android-developers] Track user location.

2010-06-27 Thread TreKing
On Wed, Jun 23, 2010 at 2:05 AM, Sohan badaya sohan.bad...@gmail.comwrote: 1.) Is it possible to find out location of your phone book friends (current location based on his mobile number). If you mean using your phone to find out other people's location without their knowledge - no, obviously

[android-developers] Android SDK and Helios - compatibility problems?

2010-06-27 Thread SChaser
Are folks having success with Helios (Eclipse 3.6) and the latest SDK (r_06)? I am having problems getting the Eclipse DDMS to work;. It is missing most of its views (such as logcat) and complained about that the first time I ran it (but not since, so I don't have a list of what is going on. I

[android-developers] Re: sqlite3 in adb not in 2.2?

2010-06-27 Thread Vincent Tsao
On May 24, 7:41 am, Mark Murphy mmur...@commonsware.com wrote: schwiz wrote: So I just watched the talk at Google I/O where they showed how to use sqlite3in ADB to help debug your database.  I didn't know you could do that way cool.  So I was doing it on my nexus which is rooted and it

Re: [android-developers] Re: sqlite3 in adb not in 2.2?

2010-06-27 Thread Connick
Hmm it should work as I've been using it for some time in 2.2. Try to su root first. On Sun, Jun 27, 2010 at 11:50 PM, Vincent Tsao caojunvinc...@gmail.comwrote: On May 24, 7:41 am, Mark Murphy mmur...@commonsware.com wrote: schwiz wrote: So I just watched the talk at Google I/O where

[android-developers] Re: Mapping Multiple textures to a cube in Android OpenGL ES

2010-06-27 Thread Robert Green
Forget about mipmapping for now - that's a different kind of distortion. I'm talking about taking an image that's 100x100 and putting it into a space that's 150x100, then drawing it back out at 100x100. The user will never know that it was stored at a different aspect ratio because so long as

Re: [android-developers] Display a Dialog in non-Activity (simple Java) Class By passing Parameters

2010-06-27 Thread TreKing
On Wed, Jun 23, 2010 at 4:38 AM, Nishant Kumar nishant.cs...@gmail.comwrote: I am trying to display a dialog box in a simple Java class that is called from my main Activity but not successful. First question: why are you trying to show a dialog from a class that is not an Activity? But I

[android-developers] Voice Recognition Libraries - Open Source?

2010-06-27 Thread Matthew Patience
I have an application, Twitoc, in the market that uses Google Voice Recognition to send Tweets to Twitter. The application only works for Android 2.1+ as I believe that is the only platform that has Google Voice recognition libraries pre-installed (I may be wrong). I found that it works on Android

[android-developers] Re: Using barcode scanner as input method?

2010-06-27 Thread brucko
On Jun 17, 12:44 am, PinkSharK senghouth.h...@gmail.com wrote: +1, I am also interested in it. I have installed two of the first free applications from the Android Market listed when looking for barcode:BarcodeScanner from ZXing Team and pic2shop by Vision Smarts. Unfortunately, both do not

Re: [android-developers] Re: Using barcode scanner as input method?

2010-06-27 Thread Brad Gies
What's the problem you are having? The Zxing barcode scanner returns the barcode to your app... and you only need to put where you want it. On 27/06/2010 9:39 PM, brucko wrote: On Jun 17, 12:44 am, PinkSharKsenghouth.h...@gmail.com wrote: +1, I am also interested in it. I have

[android-developers] What are the advantages of an Android Developers Device?

2010-06-27 Thread sagare
Hi All, I saw this http://developer.android.com/guide/developing/device.html and as per what i got the advantages of Android developer device is that it is SIM unlocked and unlocked bootloader what i wanted to know is are there any other advantages than this of the Android developers