[android-developers] Re: Saving/Loading dynamic Bitmaps

2009-01-15 Thread Mike Reed
Can you call Bitmap.compress() and just stored the resulting png-stream in your file? On Wed, Jan 14, 2009 at 9:37 PM, Patrick wrote: > > Ok, I have to post again, because what appears to have worked before > only did if the alpha channel of the bitmap was mostly opaque. > > All I need is to sav

[android-developers] Re: Problem in Viewing table - sdk1.0

2009-01-15 Thread loty
Best way to deal with SQLite that I found is to download and install Firefox SQLite Addon module. Then use adb pull command to download your batabase from the emulator to your desktop and view/manipulate it in Firefox SQLite app. You can put your db back with adb push command. Saved me a lot of gr

[android-developers] Re: If your hosting your own .apk

2009-01-15 Thread Tom
I bit the bullet and released my app to the Market. When it settles down a bit I'll add it to other app stores. Thanks to all for their help and support! Tom On Jan 14, 10:35 am, Al Sutton wrote: > I still think Amazon S3 is your best bet (help using S3 for apks is > available fromhttp://and

[android-developers] Re: How to catch global events?

2009-01-15 Thread madcoder
Nothing quite like giving full internet access permission, then having a special service like this running in the background... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Mark Murphy
Freepine wrote: > I am not trying to convince you or someone else. I am just trying to > explain here why I think it's beneficial. It may be. The concerns voiced on this thread, though, cannot be addressed by words, only by code, as they seem to mostly pertain to performance considerations. > BT

[android-developers] Query about Content Provider queries

2009-01-15 Thread somecs
I have one quick question and one maybe not-as-quick question: 1. Will we be able to employ more robust SQL(ite) queries on content providers with future releases? For instance: joins, distinct, count, max, etc? 2. Why isn't this possible now? I understand the concept of DB table abstraction and

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Al Sutton
If there was some more support for your idea then others would help you build it, but there isn't, hence why the idea was suggested. Part of an open attitude is being able to accept that fact that your idea isn't seen as a good one by others. Al. Freepine wrote: > I am not trying to convince

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
I am not trying to convince you or someone else. I am just trying to explain here why I think it's beneficial.Ok, I don't want to bump this endless discussion, I'll just stop here. BTW, it's not an open attitude for an open source project if someone gives a different opinion, he'll be required to

[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread Mark Murphy
Mark Murphy wrote: > mobilek...@googlemail.com wrote: >> Hi, >> >> Has anyone come across this one: >> android.database.sqlite.SQLiteConstraintException: error code 19. It >> gets thrown on 'insert', 'update' and 'delete' statements. >> >> What is it supposed to mean? At the moment the documentati

[android-developers] Re: android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread Mark Murphy
mobilek...@googlemail.com wrote: > Hi, > > Has anyone come across this one: > android.database.sqlite.SQLiteConstraintException: error code 19. It > gets thrown on 'insert', 'update' and 'delete' statements. > > What is it supposed to mean? At the moment the documentation lacks a > signle word a

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Mark Murphy
Freepine wrote: > For example, maybe we can introduce DI on some > selected root entities of aggregates, which I don't believe it will be > at the expense of a considerable performance hit. Sorry I couldn't give > more specific hints on concrete classes for I am not very familiar with > view or ac

[android-developers] Re: difference in android SDK version 0.9beta and 1.0

2009-01-15 Thread Mark Murphy
noworyz wrote: > hi all. I am a newbie to the android platform. I wanted to know whats > the difference between android SDK0.9beta and 1.0?? There were some minor changes, plus some more substantial changes to the location tracking service. Overall, though, 0.9 and 1.0 are very similar, more so t

[android-developers] Content Provider for Drafts

2009-01-15 Thread Miguel Paraz
Hi, On the G1, do the SMS and email inbox make draft messages accessible through a content provider? I would like to write an app to review the drafts for resending. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] Re: Android Bug/Architectural Issue: How do I handle multiple versions of my own Content Provider?

2009-01-15 Thread whitemice
Solution The simplest solution (not using intents) is to instruct each user of my component to define a new content provider: content://myComponentNamespace.theirApplicaitonNamespace Android lets me search through all available content providers, which can be string matched to my own component n

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
I am not suggesting a strict conformance here. And I even don't think it's practicable or worthwhile at this stage:) My point is that if we can increase its testability to some extent, the lives of us developers will certainly be easier. For example, maybe we can introduce DI on some selected root

[android-developers] Display multiple videos at the same time in Android r1.

2009-01-15 Thread sush
Hi, I am trying to play two videos simultaneously in the Android Emulator of version r1. But its crashing all the time. Can anyone please tell me if this version of emulator supports playing multiple videos. Thanks in advance. Regards, Susama --~--~-~--~~~---~--~

[android-developers] problems implementing bitmap.recycle for improving performance

2009-01-15 Thread Claudio Veas
hello group: I was trying to implement the recycle method for a class that we use a lot in the company that I work for. The thing is that for what I read in some posts, it was a good practice to recycle the bitmaps that were no longer needed and since I dont know where that coul

[android-developers] DNS Caching

2009-01-15 Thread Greg White
All, I've recently been bit by some DNS caching issues and am wondering if there is some way around them. The source seems to say 'no', but perhaps I'm missing something. I'm trying to resolve hostnames using a couple of different methods: new InetSocketAddress(host, port) // The 'normal '

[android-developers] Re: make failed

2009-01-15 Thread Jean-Baptiste Queru
Discussions about working with the android source code should be held on the android-platform mailing list, thanks. JBQ On Wed, Jan 14, 2009 at 9:31 PM, Caspar wrote: > > The make system post these messages: > > target Dex: core-tests > make: *** [out/target/common/obj/JAVA_LIBRARIES/core- > te

[android-developers] Re: How to uninstall calculator package from emulator

2009-01-15 Thread Jean-Baptiste Queru
That's not possible. Recompile calculator with a different android package name and you'll be able to install it alongside the original one. JBQ On Wed, Jan 14, 2009 at 10:47 PM, Anil Yadav wrote: > > Hi All > > I'm trying to uninstall calculator package (pre installed package) > from emulator

[android-developers] How to synchronously release an object referenced by wp?

2009-01-15 Thread Hank And
Folks, When we use a wp to referenced some object, for ex. , wp a; we can call a.clear() when we no longer need it. However, I found the destructor of this object might not be invoked right away. Is there any way to release the object synchronously? Thanks! Hank --~--~-~--~~--

[android-developers] how to get storage path for photos, videos, tones, graphics, music and recording from the android handse

2009-01-15 Thread sudha
Hello, i wanted Storage Path for photos, videos, tones, graphics, music and recording from the android handset. In j2me I have used following perameters J2me to access path values:- System.getProperty("fileconn.dir.photos"); System.getProperty("fileconn.dir.photos.name");

[android-developers] Re: difference in android SDK version 0.9beta and 1.0

2009-01-15 Thread for android
http://code.google.com/android/migrating/0.9-1.0/changes.html On Thu, Jan 15, 2009 at 1:04 AM, noworyz wrote: > > hi all. I am a newbie to the android platform. I wanted to know whats > the difference between android SDK0.9beta and 1.0?? > > > > --~--~-~--~~~---~--~-

[android-developers] Re: Audio in the emulator...

2009-01-15 Thread Andrei Craciun
Thanks David... 2009/1/15 David Turner > the emulator now supports audio recording. If you have problems with it, > you should report mode detailed information about it here > > > On Thu, Jan 15, 2009 at 11:05 AM, Andrei Craciun wrote: > >> Hi All, >> As reported on this blog: >> http://blog.roy

[android-developers] Re: Streaming MP4s on Android

2009-01-15 Thread Qchan
Thank you so much for your reply! That's just the answer I was looking for. Thanks so much!! On Jan 15, 1:51 am, Dave Sparks wrote: > If it won't play from the SD card, it isn't going to stream either. I > read the thread you referenced in your original message and it leaves > out a lot of detai

[android-developers] Re: Audio in the emulator...

2009-01-15 Thread David Turner
the emulator now supports audio recording. If you have problems with it, you should report mode detailed information about it here On Thu, Jan 15, 2009 at 11:05 AM, Andrei Craciun wrote: > Hi All, > As reported on this blog: > http://blog.roychowdhury.org/2008/04/29/sip-ua-for-android-stack-rtp-r

[android-developers] Audio in the emulator...

2009-01-15 Thread Andrei Craciun
Hi All, As reported on this blog: http://blog.roychowdhury.org/2008/04/29/sip-ua-for-android-stack-rtp-released/there are some problems in recording audio on the emulator, but everything works fine on the real phone. Does anyone has a workaround for recording audio on the emulator? Thanks in advan

[android-developers] Re: Are you localizing an app? Do you want to be?

2009-01-15 Thread Teo
I have a question.. Currently i have values, values-en and values-fr for my strings. Basically, my question is: do i need values if it's only a copy of values-en? If there is no values folder will the values- en become the default no matter what language the user has (except fr of course)? Thanks

[android-developers] Delete SMS from Inbox

2009-01-15 Thread Kamal Hasan
Hi, Anybody knows how to delete sms from inbox. I have tried using the following format but its giving Illegal argument Exception : Unknown URL getContentResolver().delete(Uri.parse("content://sms/ inbox"),null,null); Anybody knows the format to delete sms ? Thanks a lot Kamal --~--~

[android-developers] keeping persistent state of single choice list item.

2009-01-15 Thread jalandar
keeping persistent state of single choice list item. When I select single choice list Item and exit activity, the selected state not remain persistent, next launch an activity the previously (last exit of activity) selected item not get highlighted, what the reason behind this, is anybody have sol

[android-developers] android.database.sqlite.SQLiteConstraintException: error code 19

2009-01-15 Thread mobilek...@googlemail.com
Hi, Has anyone come across this one: android.database.sqlite.SQLiteConstraintException: error code 19. It gets thrown on 'insert', 'update' and 'delete' statements. What is it supposed to mean? At the moment the documentation lacks a signle word about SQL Exceptions and the error codes they thro

[android-developers] Re: Is Android going to use the LGPL'ed Qt 4.5?

2009-01-15 Thread David Turner
short answer: no On Wed, Jan 14, 2009 at 9:05 PM, Alexander Orlov wrote: > > Today Nokia have announced that it will relicense the Qt Framework > under LGPL added-to-qt

[android-developers] Re: gps checksum never used, validity of message not verified

2009-01-15 Thread David Turner
please note that gps_qemu.c is only used for GPL emulation within the Android emulation (i.e. it is never used on a real device). that's why there is little point in checking the checksum here, since all the messages sent to it are normally generated by the emulator program (for details, see the do

[android-developers] Re: How many different fonts are available to WebView in android

2009-01-15 Thread Fred Grott(shareme)
In my xspot app I am using html/css to choose the fonts used: http://www.youtube.com/watch?v=7NCZLYBqe8Q&feature=channel_page In short most fonts form the css2 spec that webkit supports. On Jan 14, 10:41 pm, "S Plissken" wrote: > Hi, > > Can you please tell me how many different fonts ar

[android-developers] Capturing the PictureWasTaken event

2009-01-15 Thread GiladH
Hey, I want to be able to capture the above system event in a _global_ manner. That is - even if my app is currently not running, I want the system to start it, so it can handle a new-picture-just-taken event by the user. I tries to do by creating a BOOT_COMPLETED BroadcastReceiver that interna

[android-developers] software button for Camera and view control?

2009-01-15 Thread Developer
I have two questions about android's hardware camera API. 1) Is there a way to create a button that control camera snapshot? i.e, when I push the button on the screen, the camera takes photo in the same way as when I push the hardware button. 2) Can I make the preview-window showing how the pho

[android-developers] Re: what is absolute path name of file on SDCard

2009-01-15 Thread Randy McEoin
See post http://groups.google.com/group/android-developers/browse_thread/thread/8240dc2d14848a85/d7994d8ed5b53645 Essentially: File sdpath = Environment.getExternalStorageDirectory(); Log.d("sdpath = ", sdpath.toString()); On Jan 14, 10:16 pm, jalandar wrote: > Hello , every body > What is ab

[android-developers] Re: Binding with service lost after calling unbindService()

2009-01-15 Thread Abraham
HI, Logs showing memory leak when unbindService is not called. 01-15 14:14:30.904: ERROR/ActivityThread(209): Activity com.android.mobilink.MobiLinkMenu has leaked ServiceConnection com.android.mobilink.mobilinkmen...@43390770 that was originally bound here 01-15 14:14:30.904: ERROR/ActivityThrea

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Al Sutton
Given some of the call overheads that are introduced with dependency inject I wouldn't like to see it made a core principal for development work. I'm a firm believer that in development priorities a feature which makes developers lives easier should be way below feature that make user interact

[android-developers] Strange and interesting problem (For Really ANDROID Lovers)

2009-01-15 Thread ipeg . student
Hi developers... First of all thanks for the greate replies. Now i have a very strange problem. Now i can access all the sms those have "hello" in their body. I want to send the content of each sms to another program. But the problem is i can able to s

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
I agree that performance is vital to embedded system, but testability is also important for quality, productivity, etc... At least it's not detrimental:) I know it's nontrivial to have this kind of dependency injection based on current implementation, but it would be very nice if we could. -Freepi

[android-developers] Re: Binding with service lost after calling unbindService()

2009-01-15 Thread Abraham
HI Once Again, I have tried to start the LocalService in APIDEMOS on bootup complete from a broadcast receiver & then tried to run the Local service Binding example code(which calls bindService() & unbindService() apis). As observed in my app(case 2 listed by me) here again after the first bindSe

[android-developers] Dialog not reopened after orientation change in Tab Activity

2009-01-15 Thread Huebi
Hi, usually, if you open a dialog with showDialog() and then change the orientation, the dialog is still there and also things you might have entered are there. Android seems to takes care of this. If you have a tab activity and the tabs are own activities and one of them opens a dialog, the dial

<    1   2