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

2010-06-26 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 co

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

2010-06-26 Thread kypriakos
Hi Mike, super - yes I was referring to such pages ... 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? On Jun 24, 3:34 pm, mike wrote: > On 06/24/2010 12:29 PM, kypriakos wrote: > > > Is it

[android-developers] Re: Package com.google.android.gtalkservice importing problem

2010-06-26 Thread Lance Nanek
The GTalk classes have been removed from the public API and the bug report declined: http://code.google.com/p/android/issues/detail?id=201 On Jun 23, 8:19 am, madhusudhan reddy wrote: > Hi, > > I am not able to import com.google.android.gtalkservice package > application in version 1.5(level 3).A

[android-developers] Re: OpenGL EGL 1.0 Context sharing does not work

2010-06-26 Thread Lance Nanek
Does the G1 driver support that? http://groups.google.com/group/android-framework/browse_thread/thread/49dd4346c3324c53 On Jun 23, 4:51 pm, OpenG wrote: > Hello, > > I have problems sharing texture resource between two OGL contexts. > > I have created two OGL contexts using > EGL10.eglCreateConte

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

2010-06-26 Thread Lance Nanek
I've been trying to find a good way myself, although for Android OpenGL games. Some options I've considered: 1 - There's a utility called dr...@screen which can do continuous captures. It's useless for real-time OpenGL, however, because it ends up with parts of different frames. 2 - The emulator

[android-developers] Re: AIDL, Binder, ResultReceiver, and Performance

2010-06-26 Thread john brown
While reading this thread, I mistakenly clicked "report as spam". I immediately hoped for a confirmation dialog but none appeared. I only got the notice that it had indeed been reported as spam. It was done in error. I apologize for my error. Thanks, John Brown On Jun 26, 10:36 am, Jeff Sharkey

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

2010-06-26 Thread Brad Gies
I hope it's generic for all zoom levels.. it should be :). How it works is that Google Maps at a zoom level of 1 displays the entire world in 256 pixels... When you go to zoom level 2 you get half the world in 256 pixels, zoom level 3 is 1/4 the world in 256 pixels... which is the same as 1 di

[android-developers] Re: Retrieve Image size for HTC devices

2010-06-26 Thread joebowbeer
Is inputStream.available() guaranteed to work in this case? I read that input streams for assets and resources are defined to work in this way, but I wouldn't assume that this also applies to sdcard files. The alternative I'd try is: ParcelFileDescriptor fd = contentResolver.openFileDescriptor

Re: [android-developers] Re: Download and install application

2010-06-26 Thread Nando Android
I would like to do it via code. Do a HTTP request, get the package and then install it. Is there any example out there for it? Thanks. On Sat, Jun 26, 2010 at 4:10 PM, Lance Nanek wrote: > Do you mean doing it via code? Or do you mean how to explain to a user > how to do it manually? > > On Jun

Re: [android-developers] Re: How to fetch phone's phone number or unique ID

2010-06-26 Thread Nando Android
Exactly, I want an unique ID to it. How can I call it? Do I have to instantiate something? Thanks, On Sat, Jun 26, 2010 at 4:25 PM, Indicator Veritatis wrote: > First of all, you should keep in mind that in the GSM world, the phone > number identifies the SIM, the user's account; it does not id

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

2010-06-26 Thread schwiz
when it detects the device goto the properties and select install driver and then pick from existing installed drivers and pick adb from another android phone. On Jun 26, 5:54 pm, pcm2a wrote: > When I uncheck the Show compatible hardware box the ADB selection > disappears. > > My ADK drivers are

[android-developers] has any1 tried hsqldb

2010-06-26 Thread vineet
As boasted by site http://hsqldb.org this is a full rdbms completely java based and also most sql commands. it is lightweight and full security with user right managements.. Please reply if any1 has tried it... Thanx -- You received this message because you are subscribed to the Google Groups

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

2010-06-26 Thread pcm2a
When I uncheck the Show compatible hardware box the ADB selection disappears. My ADK drivers are also revision 3. However, that hasn't stopped me from deleting them and download them several additional times through the SDK. I have also gone as far as to download random other SDK versions I found

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

2010-06-26 Thread Lance Nanek
I have to uncheck "Show compatible hardware" before Windows 7 will offer "Android ADB Interface" for the Droid. Not that I know the difference between the "Android Composite ADB Interface" driver I'm using and the "Android ADB Interface" one you are using. Is your USB driver that comes with the SD

[android-developers] Re: How to fetch phone's phone number or unique ID

2010-06-26 Thread Indicator Veritatis
First of all, you should keep in mind that in the GSM world, the phone number identifies the SIM, the user's account; it does not identify the phone. There is, however, in the android.telephony package, an method of the TelephonyManager class called getDeviceId() that returns a unique ID for the p

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

2010-06-26 Thread qwesthead
We write a game application where we load bitmaps continuously. I would like to capture the content as video. I know through DDMS, I can capture the screen shot, but how do I capture series of bitmaps loaded? -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: Download and install application

2010-06-26 Thread Lance Nanek
Do you mean doing it via code? Or do you mean how to explain to a user how to do it manually? On Jun 26, 4:47 pm, Nando Android wrote: > Hello all, > > Is there any howto on donwloading via HTTP an application package and > installing it afterwards? > > Thanks. -- You received this message beca

[android-developers] Re: Picking up contacts: difference in behaviour between HTC and NexusOne - SDK 2.1-update1

2010-06-26 Thread Jens Finkhaeuser
Hi! Yeah, it helps, thanks. The Android docs contain a more detailed recipe for maintaining support for older Android versions too (http:// developer.android.com/resources/articles/contacts.html). What gets me is that on my stock 2.1-update1 (N1) everything works fine with the "deprecated" URI, bu

[android-developers] Re: Android libraries

2010-06-26 Thread deg
Will do. I did try to duplicate this on a second machine, but no luck. I think I've already trained myself in the "right" order of operations. I'll try to remember what I did differently the first times. David On Jun 26, 2:30 am, Xavier Ducrohet wrote: > that's really strange. > > If this happ

[android-developers] Re: is this a bug in android OS

2010-06-26 Thread Bob Kerns
If you are in onCreate(), then you HAVE NOT BOUND THE SERVICE. The call to bindService() just *starts* the process of creating and binding the service. It does not complete until after you return from onCreate(), at which point the service will be actually created, it's onCreate() and onStart() me

[android-developers] Download and install application

2010-06-26 Thread Nando Android
Hello all, Is there any howto on donwloading via HTTP an application package and installing it afterwards? 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 To

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

2010-06-26 Thread HeHe
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 frame=(framelayout)findViewById(R.id.frame); bframe.addView(mview,0,new framelayout.layoutparams(FILL_PARENT,FILL_PARENT)); On Jun

[android-developers] Intercepting the Android phone dialer

2010-06-26 Thread Jaap
Hi, There are some programs to make calls via SIP with android. Nice thing is that they work transparently. That is you can use the standard android phone dialer but the call goes via SIP. How can you use the android dialer to do this? Thanks Jaap -- You received this message because you are

[android-developers] Re: Using targetSdkVersion

2010-06-26 Thread Peter Eastman
You're right, my fault. Because I had Eclipse set to 1.6, I missed the fact that I was calling an API that didn't exist in 1.5. Thanks! Peter -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-de

Re: [android-developers] Using targetSdkVersion

2010-06-26 Thread YuviDroid
The VerifyError occurs when you are using (or only 'importing') stuff that is only in the newer API. In this case I think you should use reflection to use the new APIs methods/classes in Android > 1.6. On Sat, Jun 26, 2010 at 9:13 PM, Peter Eastman wrote: > I'm stuck on a problem that I'm sure ha

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

2010-06-26 Thread ThomasWrobel
I've been trying to use a mapView in my app, and have been following the tutorial; http://developer.android.com/resources/tutorials/views/hello-mapview.html However, I'd like to be able to generate the mapView at runtime, and assign it to a widget container. (rather then just having it as the rout

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

2010-06-26 Thread pcm2a
When I choose "Dont search I will choose the driver to install" I only get two things listed: - Android ADB Interface - USB Compisite Interface After installing and reinstalling the Motorola drivers 100 times I was hoping to see something extra in this list but nothing ever changes. On Jun 26, 1:

[android-developers] Using targetSdkVersion

2010-06-26 Thread Peter Eastman
I'm stuck on a problem that I'm sure has a very simple answer, but I haven't been able to figure it out. I have a program that should work on Android 1.5, but when it's run on newer devices with higher resolution screens, it should support the full resolution and not emulate a lower resolution scr

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

2010-06-26 Thread Lance Nanek
I ran into the same problem connecting both the Evo 4G and Droid to my Windows 7 Tablet PC. After installing the HTC software off the Evo's SD card, the Droid stopped working. I guess I did update a lot of SDK stuff around then too, so that's also a potential factor. I did eventually get both phon

[android-developers] Re: Android paid apps in Ireland

2010-06-26 Thread Tomáš Hubálek
On 21 čvn, 10:37, skooter500 wrote: > (though I have users in 22 countries). I am not going to release it > for free. It seems I cant sign up for a google checkout merchant > account, because I live in Ireland and there are no paid apps allowed > on the Irish Android Marketplace!!! Welcome to An

Re: [android-developers] Re: Avoiding GPL

2010-06-26 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/25/10 22:53 , Anton Persson wrote: > Well, to connect to a MySQL database you need a connector, and the > connector library shipped with MySQL is under GPL. Which is what I > meant. And, hence, corporations buy licenses from MySQL to avoid > havin

Re: [android-developers] [Copyright question] Can I use Mozart's music in my Android apps/games?

2010-06-26 Thread Shane Isbell
The answer is yes and no. The music itself is in the public domain, so if you want to go to a recording studio and crank out Mozart on your violin, you are in the clear. But when someone does their own recording, they own the copyrights of their work. You would need to find a Mozart recording that

[android-developers] [Copyright question] Can I use Mozart's music in my Android apps/games?

2010-06-26 Thread Kakyoin
Hi. Can I use Mozart or Beethoven music in my Android apps/games? Will I get arrested for doing that? I'm pretty sure their music are in public domain though. Thank you in advance! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post

Re: [android-developers] Re: OpenGL works incorrectly when projection matrix is set to identity?

2010-06-26 Thread Leigh McRae
Well you have verified that your context is working. Sending NDC isn't very common so who knows how tested it is. Here is what I would try: 1) Try an emulator and an actual device and see if there is something different. 2) Change the order of your tests and see if anything changes. 3) Swap

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

2010-06-26 Thread Mark Murphy
On Sat, Jun 26, 2010 at 12:52 PM, pcm2a wrote: > Still have no resolution for this issue. > > I have tried uninstalling and removing every single DLL that hte > Android SDK USB Drivers comes with from my system.  Afterwards I > installed the Motorola USB Drivers.  Next I plug in the Droid and all

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

2010-06-26 Thread pcm2a
Still have no resolution for this issue. I have tried uninstalling and removing every single DLL that hte Android SDK USB Drivers comes with from my system. Afterwards I installed the Motorola USB Drivers. Next I plug in the Droid and all it does it keep erroring out looking for the old sdk usb

Re: [android-developers] AIDL, Binder, ResultReceiver, and Performance

2010-06-26 Thread Jeff Sharkey
>> If the purpose of this code (and I haven't looked at it to know) is to send >> a command to the service and get told later when it is done, then this is a >> reasonable approach. Yep, that's exactly what I'm using it for. I'm kicking off a heavy background sync, and use an optional ResultRecei

[android-developers] Re: OpenGL works incorrectly when projection matrix is set to identity?

2010-06-26 Thread satlan esh
Thanks everybody. @ Leigh & Indicator: Sorry if I wan't clear enough. There's really not much to it: nothing is being drawn when projection is set to identity. All values are fixed point, and there's no mixing with floats. @ openglguy: The coordinates are already NDC, so there's no need for any so

[android-developers] Re: Alarms after an update ?

2010-06-26 Thread mac-systems
I try to get my Reciever running, but at the moment it fails: My Reciever: public final class ReplaceReceiver extends BroadcastReceiver { private final static String LOG_TAG = ReplaceReceiver.class.getSimpleName(); /* * (non-Javadoc) * * @see android.c

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

2010-06-26 Thread Pedro Teixeira
Hi Brad, Thanks for your solution. I'm trying to understand how it works. Is this generic for all zoom levels? I don't know how to implement the if condition snippet of your code. Something is missing me or I'm not understanding it right. Can you explain this value: latSpan/1E6, is this the si

Re: [android-developers] Re: How to clean DDMS view of the logs though ant script

2010-06-26 Thread Mark Murphy
On Sat, Jun 26, 2010 at 11:18 AM, Lance Nanek wrote: > Wouldn't you just use Ant's exec task to execute 'adb logcat -c'? That doesn't affect a running DDMS, which I thought was what the OP was seeking. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://c

[android-developers] Re: How to clean DDMS view of the logs though ant script

2010-06-26 Thread Lance Nanek
Wouldn't you just use Ant's exec task to execute 'adb logcat -c'? On Jun 24, 11:32 pm, Raja Nagendra Kumar wrote: > Hi, > > Is it possible to clean DDMS logs clean up though ant script pl. > > Regards, > Raja Nagendra Kumar, > C.T.Owww.tejasoft.com > -Enterprise Mobile Products -- You received

[android-developers] starting text to speech synthesis from a service?

2010-06-26 Thread pranay
i am trying to start a tts engine from a service which is started by a BroadcastReceiver . The service starts but am not getting any sound. I can see the log message as specified by Log.d in my prog and also get the Toast messsage but no sound: Recevier class : public void onReceive(Context conte

[android-developers] how often should getRotationMatrix update?

2010-06-26 Thread ThomasWrobel
I'm currently just bliting a rotation matrix onto the screen. The source of which is "RT" from; SensorManager.getRotationMatrix(Rt, I, accels, mags); Where accels and mags are from the sensors. The getRotationMatrix, and its display, are triggered once for every update of the acceleration sensor.

[android-developers] Receiving GPS navigation audio events

2010-06-26 Thread ls02
I have an audio player. I came to conclusion it is not possible to receive notification that another application starts playing any kind of audio prior to 2.2 where Google introduced audio focus concept. However, I am trying to at least get notifications of GPS navigation audio prompts so we can pa

[android-developers] PNG loading that doesn't premultiply alpha?

2010-06-26 Thread Jeremy Statz
I'm working on a new project that requires a few layers of blending (It's an OpenGL app), and I'm discovering that the PNG loader used by Bitmap seems to always load the PNG with premultiplied alpha. I've spent all evening confirming the values being saved out are correct, and the PNG spec itself

Re: [android-developers] Howto create a quick action bar/badge/Dialog

2010-06-26 Thread Mark Murphy
On Sat, Jun 26, 2010 at 5:21 AM, David wrote: > But even though I'm not a beginner I can't think of an efficient way > of implementing the dialog / badge / bar. qberticus posted this the other day: http://code.google.com/p/simple-quickactions/ Haven't played with it myself, and the look-and-fee

[android-developers] Howto create a quick action bar/badge/Dialog

2010-06-26 Thread David
Hey everyone, I watched the UI session on Google IO this year in which they showed us the quick action dialogs used in the twitter App. I really like the way they work and would like to include one in my own App. But even though I'm not a beginner I can't think of an efficient way of implementing

Re: [android-developers] Re: Android paid apps in Ireland

2010-06-26 Thread YuviDroid
The official countries lists are here: "Supported locations for merchants": http://market.android.com/support/bin/answer.py?answer=150324 "Paid App Availability": http://market.android.com/support/bin/answer.py?hl=en&answer=143779 On S

[android-developers] Re: Save image on SD card

2010-06-26 Thread ReyLith
Nobody? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

[android-developers] Re: How to obtain ID of an image by the id of the thumbnails?

2010-06-26 Thread ReyLith
Nobody? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options,

Re: [android-developers] Picking up contacts: difference in behaviour between HTC and NexusOne - SDK 2.1-update1

2010-06-26 Thread YuviDroid
Hi! I had the same issue with my app. To solve it, instead of using the 'deprecated' Contacts.People on 2.1 devices, you should use ContactsContracts (which deals also with multiple user accounts). I did the following: intent = new Intent (Intent.ACTION_PICK); intent.setType(ContactsContract.Cont

[android-developers] Re: Sensor listeners - threads and responsiveness

2010-06-26 Thread kamiseq
Ok thanks, and I ve found that writes to db had made my app unresponsive -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

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

2010-06-26 Thread Robert Green
No, that's not what cube maps are for. You can only draw 1 texture at a time (unless multitexturing but that's totally different and not what you want) so you have 2 options: 1) Combine all textures together into a single one and map the coordinates to each side accordingly (will run much faster