[android-developers] Re: database table design problem

2009-05-22 Thread stonestrange stone
There is something wrong with your database designing. And you need to add a table storing note type. 2009/5/22 Jason Proctor ja...@particularplace.com you basically have a one (note) to many (note type) relationship. model this with two tables -- create table notes (id integer primary

[android-developers] database table design problem

2009-05-22 Thread Jason Proctor
i think maybe you should read the DDL again. There is something wrong with your database designing. And you need to add a table storing note type. 2009/5/22 Jason Proctor mailto:ja...@particularplace.comja...@particularplace.com you basically have a one (note) to many (note type)

[android-developers] Easy one (hopefully) Inverse preference dependency?

2009-05-22 Thread Peter Carpenter
Hi, I have a preference where I'd like to toggle the state of a preference depending on the state of a checkbox. This works wonderfully if I want something visible when it's checked. However I want another preference to be visible when it's NOT checked. Is there a way to specify

[android-developers] Re: database table design problem

2009-05-22 Thread quill
oh Thank you, Jason! I get it! Thank you all guys! On May 22, 1:57 pm, Jason Proctor ja...@particularplace.com wrote: you basically have a one (note) to many (note type) relationship. model this with two tables -- create table notes (id integer primary key); create table note_types

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-22 Thread Android Users
Hey guys, What is the final verdict then? The reason i asked for the Final SDK release is because Geocoding has a packaging bug and is to be fixed in the final sdk release. http://groups.google.com/group/android-developers/browse_thread/thread/79f94e31e647db60# I had developed an application

[android-developers] Re: how to make each item in ListView has different layout ?

2009-05-22 Thread quanghuytruongd...@gmail.com
Create a new class (can be named for ex CustomListAdapter) that extends BaseAdapter, and do your customized in public View getView (int position, View convertView, ViewGroup parent). Ex: @Override public View getView(int position, View convertView, ViewGroup parent) {

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-22 Thread Romain Guy
The final SDK mentioned in that thread is the one currently available for download. On Thu, May 21, 2009 at 11:18 PM, Android Users androidmai...@gmail.com wrote: Hey guys, What is the final verdict then? The reason i asked for the Final SDK release is because Geocoding has a packaging bug

[android-developers] Re: how to make each item in ListView has different layout ?

2009-05-22 Thread quanghuytruongd...@gmail.com
Ooops, and of course: projectList.setAdapter(new CustomListAdapter (YourActivity.this)); On May 22, 11:36 am, stonestrange stonestra...@gmail.com wrote: hi, I am trying to have a list in my app. In the list,there are two columns,the first is DbAdapter.KEY_ID,and the second is

[android-developers] Re: Has the final android 1.5 sdk released?

2009-05-22 Thread Android Users
Has anyone faced this Geocoding returning null issue when using 1.5 version? --~--~-~--~~~---~--~~ 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] Re: Has the final android 1.5 sdk released?

2009-05-22 Thread Android Users
I meant in the one available for download? --~--~-~--~~~---~--~~ 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

[android-developers] Movie.decodeStream(is) is returning NULL after updating to 1.5 SDK

2009-05-22 Thread Freshman
I've updated to 1.5 SDK, together with the ADT. I followed all the instruction properly. Rest of the Projects are working fine. but in my current application Movie.decodeStream(inputstream) is returning null. It was working fine with Android 1.1 version. Has anyone faced this issue when using

[android-developers] Wanted jobs

2009-05-22 Thread satheesh kumar
Hi all, My friends have finished bachelor's degree in engineering this year. I wish to know if there are any jobs available for their qualification anywhere in tamilnadu or bangalore. Salary is not a matter. Please anyone reply for this. Thanks, Satheesh.

[android-developers] Change in font color

2009-05-22 Thread Sam
Hi, I am using EditText for getting userInput but the problem i am facing is that i want to change the font color at runtime but in the same Edittext as i am able to change the font type but as i change the font color it changes for the whole editext but i need to change the color for

[android-developers] Re: Avoid phone locking

2009-05-22 Thread Dianne Hackborn
It is much better to set the window flag to keep the screen on. No need for a permission, and less likely or a bug in the app to cause problems. On Thu, May 21, 2009 at 10:54 PM, EboMike ebom...@gmail.com wrote: Make sure your app has the WAKE_LOCK permission, and use PowerManager.WakeLock

[android-developers] Re: Set the theme from the application: the background doesn't change

2009-05-22 Thread Dianne Hackborn
We won't soon if ever support this. On Thu, May 21, 2009 at 8:33 PM, quanghuytruongd...@gmail.com quanghuytruongd...@gmail.com wrote: Thanks Dianna Hackborn for your information! Maybe Android SDK need to be upgraded so that dev can customize their application at runtime. On May 22, 9:04

[android-developers] How to get phyaddr from MemoryHeapPmem??

2009-05-22 Thread bc
hi, i add pmem and pmem_adsp to my kernel,and mydroid is working fine.but i can only get virtaddr from MemoryHeapPmem(use getBase()),i can not get phyaddr,but the pmem driver can use PMEM_GET_PHYS to get phyaddr,so ,i must modify MemoryHeapPmem,add a method like getPhyAddr () ?is here other way?

[android-developers] how to set tab in TabHost?

2009-05-22 Thread stonestrange
In my project,i use TabHost and tab. In each tab, it will show an image and the tab's name.My code is like this: Drawable dr = this.getResources().getDrawable(R.drawable.setup); th.addTab(th.newTabSpec(setup).setIndicator(SETUP, dr).setContent (R.id.setup)); Run this project,it shows like this,

[android-developers] Re: aidl remote service call namespace question

2009-05-22 Thread dev_rob
I am still hanging on this issue, maybe there is someone, who has played around with service and can provide me some example code, where it works that a service, lying in one eclipse project is successfully bound to and called maybe by an activity, which resides lying in another eclipse

[android-developers] I found the way how to SmsReceiver invoke my Application

2009-05-22 Thread doananhtai
public class MyActivity extends Activity { public static MyActivity myactivity; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); myactivity = this;

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread PI9
Hello, In the same direction as the previous problem, i'd like to direct voice (during a conversation) either to the ear piece when the phone is vertical or to the speakers when the phone is horizontal. I'm using the accelerometer which is working well when i only asks to find the position of the

[android-developers] Free download software full version

2009-05-22 Thread DonyChandra
http://free-belajaronline.blogspot.com/2009/05/fenomena-lain-dukun-ponari.html Fenomena Lain Dukun Ponari http://free-belajaronline.blogspot.com/2009/05/kamen-rider-tampang-mirip-gan.html Kamen Rider, Tampang Mirip gan

[android-developers] Re: why 480*320 png doesn't fit on landscape full screen

2009-05-22 Thread zeeshan
well, i removed the title bar and this make my image a bit large but it still smaller in width. i suppose this is because of status bar now :) what resolution i need to have to fit my image on full screen if i keep my status bar? On May 21, 4:56 pm, bwilliam...@gmail.com bwilliam...@gmail.com

[android-developers] How to force to update a view?

2009-05-22 Thread Gavin
Hello, I have a List activity which use cursor adapter. When an item of database is changed, I hope the corresponding view of this list can update and get new data from database. I know the time when database is changed, but how to update view? thanks.

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread jianwei
Sorry for my poor english. May be you didn't understand my purpose. I'm a application developer for android platform, and i didn't know much about bluetooth. Our application will play some audioes(audio format is amr). When bluetooth headset is paired and connected, we need playing audio by

[android-developers] Camera application 1.5 on emulator does nothing

2009-05-22 Thread arnouf
Hi all, Strange behaviour with emulator running with Cupcake. When emulator is launched (via ADT), a SD card is mounted correctly, and I click on Camera, I have a black screen and nothing happens, I got the famous error with Wait or Force closewait, wait, waitnothing happens. I create

[android-developers] Fwd: Wanted jobs

2009-05-22 Thread satheesh kumar
-- Forwarded message -- From: satheesh kumar satheeshbornto...@gmail.com Date: Fri, May 22, 2009 at 12:50 PM Subject: Wanted jobs To: android-developers@googlegroups.com Hi all, My friends have finished bachelor's degree in engineering this year. I wish to know if there are any

[android-developers] Re: Camera application 1.5 on emulator does nothing

2009-05-22 Thread arnouf
If it can help you to understand, below the Logs 05-22 09:51:58.651: WARN/WindowManager(575): performLayoutAndPlaceSurfacesLocked called while in layout 05-22 09:51:59.292: DEBUG/StatusBar(575): updateResources 05-22 09:52:00.732: DEBUG/CameraService(542): Connect E from ICameraClient 0xd220

[android-developers] Re: Camera application 1.5 on emulator does nothing

2009-05-22 Thread arjan broer
same problem here. Running Ubuntu Linux, eclipse 3.4.1 ADT 0.9.1.v200805011822-1621 Android SDK 1.5_r1 --~--~-~--~~~---~--~~ 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] Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread guruk
Hi, I was reading in some other posts that some developers have the same Problem, but till now, no solution. its about the gallery: I have a string array with photos, but when the gallery does show the 2nd Picture it crash with: --- D/votw(18078): --- DebugMark 1

[android-developers] Re: Video with MediaRecorder

2009-05-22 Thread zeeshan
I am trying to capture video with the same code above but it crash at - recorder.prepare(); cant track what is the problem, does anybody come across similar problem ; any hint? On May 7, 11:50 pm, Jason Proctor ja...@particularplace.com wrote: btw, since streaming movies via HTTP requires the

[android-developers] is there video record intent in 1.5 like we got for Audio MediaStore.Audio.Media.RECORD_SOUND_ACTION

2009-05-22 Thread zeeshan
Hi Mate, i am looking for the video capture intent similar to the one for Audio. please anybody let me know if this intent is available in 1.5? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] add my Launcher.apk into emulator

2009-05-22 Thread allstars
hi i try to modify the Launcher in mydroid/package/apps/Launcher and i try to use it as an APK so i dont have to mess up the original system image so i copy it to another project , say mydroid/package/apps/MyLauncher i have changed the package name in case it will conflict with the original

[android-developers] How can I get Browser's sharedpreference.?

2009-05-22 Thread ritter.han
Hi all, I'm making a application which wants to get the homepage url of Browser. And I'd figured out that the homepage url is stored as a SharedPreferences and the name of it is 'android.com.browser_preferences.xml'. But I can't open the SharedPreference of Browser and read desired

[android-developers] Re: How can I get Browser's sharedpreference.?

2009-05-22 Thread Mark Murphy
I'm making a application which wants to get the homepage url of Browser. I suspect that is not possible. But I can't open the SharedPreference of Browser and read desired value. That would be a security violation. Applications cannot read other applications' files, shared preferences,

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread Streets Of Boston
I'm amazed yout get it working 2 times. :=) You can not load so many (3 or more) big (over 3Mpixels) in one process. You'll run out of memory. A full size pic of 3Mpixels in RGB_565(16bit color) is 6MBytes of memory. You have to decode the file with the Option's 'inSampleSize' set to something

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread guruk
:) I got it now already up to 15 :) bm = BitmapFactory.decodeFile(/sdcard/dcim/Camera/ + photoList[i]); bphotos.add(Bitmap.createScaledBitmap(bm, 480, 320, true)); bm.recycle(); when I always use bm.recycle() ok, but lets look on your insamplesize... i will also try. but how to use in

[android-developers] How to draw a double underline in radioButton text

2009-05-22 Thread Josep
I need to draw a double underline in the text inside a RadioButton. I can draw a single underline / strikethrough / etc using the flags from the TextPaint class but I can't find how to draw a double underline. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread Streets Of Boston
... // determine the width/height or a gallery item's view Rect rectOfGalleryItemView = ...; ... ... // Then determine the best sampleSize (1, 2, 4, 8) int sampleSize = calculateSampleSize(rectOfGalleryItemView, 2048, 1536); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inDither

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread guruk
thanks for your help, i will give it a try. ... also when I have a bphotoList (an array of bitmaps) and I reload this Array with new Bitmaps, what do I have to do that they gallery use them. I thought it come automaticly, because I just change the content, but it looks the gallery cache the old

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread Streets Of Boston
I don't know the answer to all your questions in your previous post, but this is a trick i used to get a 'circular' list-view (not a gallery, but i think they are comparable). I needed a list-view that is circular, i.e. after the last element the first element appears again. I attached a

[android-developers] Re: Out of Memory Error in BitmapFactory.decodeFile

2009-05-22 Thread guruk
:) ok.. thats quit a lot of new ideas i can play with keep your good vibes and thanks again chris --~--~-~--~~~---~--~~ 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] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread jianwei
What's SCO? What's A2DP? I'm not clear about that. Did that mean if i using A2DP bluetooth headset, all audioes will auto play by bluetooth headset? And not all bluetooth headset hardware supports A2DP. Does that right? On 5月22日, 上午9时36分, Dave Sparks davidspa...@android.com wrote: You asked

[android-developers] Re: Camera application 1.5 on emulator does nothing

2009-05-22 Thread arnouf
Ok so you did the test that I would like to do. For your information, if you make an AVD file with target 1.1, emulator is working correctly... On May 22, 1:03 pm, arjan broer arjan.br...@gmail.com wrote: same problem here. Running Ubuntu Linux, eclipse 3.4.1 ADT 0.9.1.v200805011822-1621

[android-developers] Problem with MapActivity on the 1.5 release

2009-05-22 Thread mobilek...@googlemail.com
Hi, I have a problem with firing an activity that extends MapActivity. When it gets called, it throws a java.lang.NoClassDefFoundError... not sure what this is supposed to mean. I think something goes wrong with the external implementation of the maps API (maps.jar). Has anyone come across that

[android-developers] Re: GPS Access Question

2009-05-22 Thread Phil
Ah, thanks for the information! I did manage to get it working, but the only way I could get it to compile properly was by initializing the manager variable outside of the onCreate program with a simple LocationManager manager; making the later call simply manager = (LocationManager) ... prior

[android-developers] Re: How to play video file in android.

2009-05-22 Thread Marco Nelissen
On Thu, May 21, 2009 at 8:57 PM, Priya priya.b...@gmail.com wrote: Hi, here is my code for playing video through url public class sample extends Activity { private String _videoPath; private MediaPlayer _mp; private static final String TAG = Video; @Override

[android-developers] Re: rtsp/http Streaming

2009-05-22 Thread Yogi
Hi All, I am also having the same doubt. Can you please suggest what can be done? Thanks in advance, Yogi On Apr 30, 3:33 pm, Zhubham sahilz...@gmail.com wrote: Hi Experts, Can you please give a quick reply to my queries. Thanks for ur time. Regards, Zhubham On Apr 29, 8:30 pm,

[android-developers] Re: showDialog and dismissDialog behave strangely when changing orientation

2009-05-22 Thread idev
Anyone know about this? I've seen many posts and blogs about this problem but no one seems to have a solution for it. Can someone please help! Thanks. On May 21, 8:12 pm, iDeveloper ideveloper...@gmail.com wrote: Not in the onCreate implementation. I am calling it on a button's   click event.

[android-developers] Video with MediaRecorder

2009-05-22 Thread Jason Proctor
can you log the exception and post it? thanks. I am trying to capture video with the same code above but it crash at - recorder.prepare(); cant track what is the problem, does anybody come across similar problem ; any hint? On May 7, 11:50 pm, Jason Proctor ja...@particularplace.com wrote:

[android-developers] Re: showDialog and dismissDialog behave strangely when changing orientation

2009-05-22 Thread Streets Of Boston
Do you call dialog.show() or activity.showDialog(dialogid)? On May 22, 11:15 am, idev ideveloper...@gmail.com wrote: Anyone know about this? I've seen many posts and blogs about this problem but no one seems to have a solution for it. Can someone please help! Thanks. On May 21, 8:12 pm,

[android-developers] Re: Find whether any audio is currently playing

2009-05-22 Thread Marco Nelissen
On Thu, May 21, 2009 at 9:41 PM, iDeveloper ideveloper...@gmail.com wrote: Hi I am using a MediaPlayer instance in order to stream audio files from an Internet location. The audio player is in a separate activity. The user can select from a list of audio files and come to this activity which

[android-developers] Authentication Method - Rest Server and Android

2009-05-22 Thread Tom
Hi, I'm developping a Rest server using RestLet. I communicate with JSon objects between Android and the Server. In order to securise server-side datas, I would like to use authentication and autorisation methods. I googled a little bit, I found different authentication schems : Basic, Digest,

[android-developers] Re: Find whether any audio is currently playing

2009-05-22 Thread Rob Franz
You can detect whether audio is playing by getting a reference to AudioManager and calling isMusicActive()... -Rob On Fri, May 22, 2009 at 11:04 AM, Marco Nelissen marc...@android.comwrote: On Thu, May 21, 2009 at 9:41 PM, iDeveloper ideveloper...@gmail.comwrote: Hi I am using a

[android-developers] Re: DRM Issue

2009-05-22 Thread Marco Nelissen
On Fri, May 22, 2009 at 3:40 AM, Prashant M prashant.mut...@gmail.comwrote: Developed one sample APP to insert the FL (forward Lock content) into DRM provider. While insertion throwing security exception. I added android.permission.ACCESS_DRM in the androidmanifest.xmlBut still facing

[android-developers] SDK Navigating from PackageManager to Activity to IntentFilters

2009-05-22 Thread clemsongrad
I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from the Context - PackageManager - ActivityInfo is easy. I am stuck trying to figure out how to retrieve the mappings from Activity - Intent-Filter.

[android-developers] Re: Framework support for detecting starting and stopping of activities

2009-05-22 Thread clemsongrad
Mike, I am proceeding along the same lines. Seeing if there is an elegant soln to this. Thanks for your feedback. On May 21, 3:41 pm, Mike Hearn mh.in.engl...@gmail.com wrote: You can write an app which dumps adb logcat and greps for the output from the activity manager. It's ugly and

[android-developers] Re: Getting the height of the Virtual Keyboard

2009-05-22 Thread Dianne Hackborn
You don't get the height; you set your window in to resize mode and deal with your content being resized to accommodate the IME. On Fri, May 22, 2009 at 8:33 AM, stephen.lloyd.h...@googlemail.com stephen.lloyd.h...@googlemail.com wrote: Hi, We have got all our own edit boxes etc. so we call

[android-developers] Re: SDK Navigating from PackageManager to Activity to IntentFilters

2009-05-22 Thread Dianne Hackborn
I don't think I ever implemented the code to return intent filters. On Fri, May 22, 2009 at 9:32 AM, clemsongrad dpotl...@gmail.com wrote: I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from

[android-developers] Re: why 480*320 png doesn't fit on landscape full screen

2009-05-22 Thread Dianne Hackborn
What are you trying to do? You can't assume your content area is going to be an exact pixel sizes, the status bar may have slightly different heights on some devices, in the future there will be different screen sizes, etc. If you want to have a background that doesn't stretch and don't mind it

[android-developers] Re: add my Launcher.apk into emulator

2009-05-22 Thread Dianne Hackborn
You need to give it a different package name. If you don't, you are trying to replace the current Launcher .apk, and since you aren't signed with the same cert, you can't. On Fri, May 22, 2009 at 4:38 AM, allstars allstars@gmail.com wrote: hi i try to modify the Launcher in

[android-developers] Re: aidl remote service call namespace question

2009-05-22 Thread Dianne Hackborn
The file name doesn't matter, is completely irrelevant, and ignored. The identity of your app is the package name you declare in the manifest. As I said, you need to give them different package names for them to actually be different apps. On Fri, May 22, 2009 at 1:25 AM, dev_rob

[android-developers] Re: startActivityForResult in onResume

2009-05-22 Thread skyman
Hi again, It looks like the problem is in translucent style :/ When I remove it in manifets everything is ok. I've noticed that problem occurs when Android is rendering screen i off-screen memory (when it shows the layout everything is ok but it tooks very long). Is there any way to speedup this

[android-developers] Re: How to force to update a view?

2009-05-22 Thread Marco Nelissen
This should normally happen automatically: when the database changes, the cursor adapter is notified, which causes the cursor to be requeried and the the listview to be updated. On Fri, May 22, 2009 at 2:31 AM, Gavin fjm...@gmail.com wrote: Hello, I have a List activity which use cursor

[android-developers] Re: How to force to update a view?

2009-05-22 Thread Max Salley
I'm having a similar issue with an ImageView based class that uses Matrix transformations. I update the Matrix with setImageMatrix, but the view does not update. how can I get the view to update? On May 22, 5:31 am, Gavin fjm...@gmail.com wrote: Hello,    I have a List activity which use

[android-developers] Widget(s) and Pending intent

2009-05-22 Thread Alexey
Hi All , i'm working on news feed widget ( looking at Sky as an example ) Everything seems to be working except when i have more than one Image and click on the widget i'm crashing. One widget is working fine and more than one widget are working fine too as long as i don't try to launch pending

[android-developers] Re: Android G1 - Streaming WMV

2009-05-22 Thread Emil
Thanks for the answer. So which video streaming formats the Android G1 does support? Emil On May 22, 4:39 am, Dave Sparks davidspa...@android.com wrote: The G1 does not support Windows Media streaming formats, only local file playback. On May 21, 1:23 am, semil103 semil...@gmail.com wrote:

[android-developers] Why can't I see this on my G1?

2009-05-22 Thread Bill Zimmerly
I have the developer's G1 with Cupcake 1.5 and am trying to download this application... http://www.cyrket.com/package/com.rerware.android.MyBackupPro ...but the Android Market application on it can't find this application! Does anybody have any ideas why this is so. I see all sorts of free

[android-developers] Re: Not getting more than one GPS fix on Android 1.5 emulator

2009-05-22 Thread Diego Torres Milano
I've seen this problem before however no clues about the cause. As a workaround, you may load a KML file in DDMS and play it. If you need to convert a KMZ to KML suitable for DDMS check http://dtmilano.blogspot.com/2008/12/in-this-previous-post-we-reviewed.html. I haven't had luck loading GPX

[android-developers] Re: Android G1 - Streaming WMV

2009-05-22 Thread Dave Sparks
HTTP progressive and RTSP for 3GPP/MPEG-4 streams. On May 22, 10:57 am, Emil semil...@gmail.com wrote: Thanks for the answer. So which video streaming formats the Android G1 does support? Emil On May 22, 4:39 am, Dave Sparks davidspa...@android.com wrote: The G1 does not support

[android-developers] Re: rtsp/http Streaming

2009-05-22 Thread Dave Sparks
This is supported, it definitely should not crash even if there's a problem. Where's the stack trace for the crash? On Apr 29, 8:30 am, Zhubham sahilz...@gmail.com wrote: Hi People, I need your help regarding streaming in android. I read some of the previous discussions but I have a few

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread Dave Sparks
I'm pretty sure that headset is SCO only. We don't support routing app processor audio to SCO. On May 22, 2:38 am, jianwei kevin@gmail.com wrote: Sorry for my poor english. May be you didn't understand my purpose. I'm a application developer for android platform, and i didn't know much

[android-developers] Re: How to redirect audio to bluetooth headset?

2009-05-22 Thread Dave Sparks
With an A2DP headset, all app processor audio can be routed to the headset. I thought I gave a pretty good summary of the differences between SCO and A2DP. If you need more detail, there is a lot of information available on the web. On May 22, 7:02 am, jianwei kevin@gmail.com wrote: What's

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
Then i've tried PendingIntent.FLAG_UPDATE_CURRENT i'm no longer crashing, but it always launches the activity with extras were put in the widget that was updated the last. It looks like pending intent is shared among my widget instances . Anyway to avoid that ? On May 22, 12:36 pm, Alexey

[android-developers] no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
I'm using the new SDK 1.5, and I'm trying to add some elements to a layout in eclipse. When I click the green plus symbol, the dialog pops up, but it doesn't populate with anything to choose from. Here's the XML of the layout I'm trying to add an element to: ?xml version=1.0 encoding=utf-8?

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread EboMike
There are several discussions about PendingIntents in this group, they're a bit confusing at first because the system identifies them only by action and data, not extras, so multiple PendingIntents with the same action and data are considered the same. You need to make them unique, either by

[android-developers] Re: Why can't I see this on my G1?

2009-05-22 Thread EboMike
I suppose the developer chose to enable copy protection for it. That means that rooted phones cannot download it. On May 22, 11:00 am, Bill Zimmerly billzimme...@gmail.com wrote: I have the developer's G1 with Cupcake 1.5 and am trying to download this application...

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread snctln
I have been wrestling with this problem too, and not quite figured it out but I remember reading something that Jeff Sharkey said about widget pending intents not being able to store extras properly or something, but they do store uris properly... like you can see in the sky source

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
I've changed the call to PendingIntent pending = PendingIntent.getActivity(context, appWidgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT); Now everything is cool except based on discussions i'm not sure how reliable it'll be . ( Doc says it's not supported yet ) On May 22, 2:01 pm, EboMike

[android-developers] Re: Widget(s) and Pending intent

2009-05-22 Thread Alexey Volovoy
Yeah i'm have this code , but i do need extras. On May 22, 2:07 pm, snctln catlin.s...@gmail.com wrote: I have been wrestling with this problem too, and not quite figured it out but I remember reading something that Jeff Sharkey said about widget pending intents not being able to store

[android-developers] Android DOM implementation issues

2009-05-22 Thread Jason Proctor
well, unfortunately it seems that this isn't going to work either. i changed the package names on my fixed-up harmony and configured the DocumentBuilderFactory and SAXParserFactory to reference the new classes. first problem is that although the factory can find my DocumentBuilderFactory, it

[android-developers] Color Bug?

2009-05-22 Thread Gavin Aiken
Hey all, Before I submit this I just wanted to check it's not a java nuiance. The Color class can be used to extract rgb values from a pixel (32 bit int). I implemented a lookup table filter and used a byte to store each individual r g b value to save a bit of space. Long story short;

[android-developers] dexer inner class errors

2009-05-22 Thread Jason Proctor
i'm getting a *lot* of this kind of error from the dexer when trying to use 3rd party libraries or even after compiling innocent-looking source. is this a problem with the dexer, or a problem with my JDK? i'm using - Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) -

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
Did this in the end; ... int nr = table[r] 0xFF; int ng = table[g] 0xFF; int nb = table[b] 0xFF; ... Where table is a byte array. Have a good weekend!! On Fri, May 22, 2009 at 9:09 PM, Gavin Aiken gavin.ai...@imperial.ac.ukwrote: Hey all, Before I submit this I

[android-developers] Re: Color Bug?

2009-05-22 Thread Marco Nelissen
On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken gavin.ai...@imperial.ac.ukwrote: Hey all, Before I submit this I just wanted to check it's not a java nuiance. The Color class can be used to extract rgb values from a pixel (32 bit int). I implemented a lookup table filter and used a byte to

[android-developers] Re: Color Bug?

2009-05-22 Thread Romain Guy
Bytes are signed in Java, so 137 is not what you want. Also, Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results in rg == -119. On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken gavin.ai...@imperial.ac.uk wrote: Hey all, Before I submit this I just wanted to check it's not a

[android-developers] Re: Daemon errors while debugging

2009-05-22 Thread Bob
Great, I think I needed to close a cursor On May 20, 3:03 pm, fadden fad...@android.com wrote: On May 19, 9:29 pm, Bob bshumsk...@yahoo.com wrote: When I debug I get dozens of these exceptions in a row.  They don't seem to effect the program flow but make debugging a nightmare.  Does

[android-developers] get intent getStringExtra in a View??

2009-05-22 Thread guruk
Hi, i have a: public class basal extends GraphicsActivity { -- @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);setContentView(new SampleView (this));} private static class SampleView

[android-developers] sensor_service breaking change in cupcake? getSystemService(Sensor_Service)

2009-05-22 Thread Bob
Hi, I have the following code in my app which seems to pause indefinitely when I run it in the cupcake emulator: SensorManager mSensorManager = (SensorManager) getSystemService (SENSOR_SERVICE); does anyone know how I should replace this in cupcake or if this is an emulator issue? Thanks, Bob

[android-developers] Re: get intent getStringExtra in a View??

2009-05-22 Thread Alexey Volovoy
why did you declare you View class static ? Move it out of actvity. Create public method init in the view. Get an extra in your activity and pass to View. On May 22, 3:45 pm, guruk ilovesi...@gmail.com wrote: Hi, i have a: public class basal extends GraphicsActivity { --        

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
Thanks for the quick response and sorry for the unneccesary use of the word bug. I was clearly confused wrrt signed ints and 'unsigned' bytes (the values shown in the eclipse debugger), all cleared up now! Cheers, Gav On Fri, May 22, 2009 at 9:43 PM, Romain Guy romain...@google.com wrote:

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
EDIT: 'signed' bytes, as you said Cheers On Fri, May 22, 2009 at 10:00 PM, Gavin Aiken gavin.ai...@imperial.ac.ukwrote: Thanks for the quick response and sorry for the unneccesary use of the word bug. I was clearly confused wrrt signed ints and 'unsigned' bytes (the values shown in the

[android-developers] Re: How to loading images (assets or resources) dynamically?

2009-05-22 Thread Alexey Volovoy
BitmapFactory.decodeByteArray On May 21, 11:54 am, Kim ksunl...@gmail.com wrote: Hi, How do I load the image dynamically through the code? If its unclear, I mean, I want to load image files by name based on the condition in the code. If I use images as resources, the image names have to

[android-developers] Re: sensor_service breaking change in cupcake? getSystemService(Sensor_Service)

2009-05-22 Thread blindfold
It is only an emulator issue: http://code.google.com/p/android/issues/detail?id=2566 On May 22, 10:47 pm, Bob bshumsk...@yahoo.com wrote: Hi, I have the following code in my app which seems to pause indefinitely when I run it in the cupcake emulator: SensorManager  mSensorManager =

[android-developers] Re: no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
I'm finding threads in this forum with somewhat related problems. Here's a link: http://groups.google.com/group/android-developers/browse_thread/thread/bcc1f9a0833aa2c3/69d6425924e3bbb3?lnk=gstq=eclipse#69d6425924e3bbb3 On May 22, 11:56 am, Richard Schilling richard.rootwirel...@gmail.com

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-05-22 Thread Richard Schilling
I'm having similar issues. I'm going to try and un-install then re- install the ADT plugin and see if it helps. There's definitely something wrong with the wizard:

[android-developers] Re: SDK 1.5, Unable to load XML wizard

2009-05-22 Thread Richard Schilling
Very strange: I un-installed the Android tools and restarted eclipse. The Android specific menus and tools are still all there, but the tools are not listed in the Software Updates screen. Richard On May 22, 2:29 pm, Richard Schilling richard.rootwirel...@gmail.com wrote: I'm having similar

[android-developers] Please enable downloading of paid app on ADP

2009-05-22 Thread havexz
Is there a way to download paid apps on the ADP from the market? Or will this be available in the near future? Also is there a way to download the copy protected apps on the ADP? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: no elements available in Eclipse when editing layout

2009-05-22 Thread Richard Schilling
I solved this problem as follows (note: steps #1 and #2 may not be necessary - they were done just to be thourough): 1. completely uninstalled Eclipse and deleted my default workspace directory, because I use a non-standard workspace location. 2. Reinstalled Eclipse 3. Installed ADT version

[android-developers] Re: get intent getStringExtra in a View??

2009-05-22 Thread guruk
thanks... i got it.. quit strange i removed that post from the group.. but looks you still got it. anyhow, thanks for your will to help chris On May 22, 11:58 pm, Alexey Volovoy avolo...@gmail.com wrote: why did you declare you View class static ? Move it out of actvity. Create public method

[android-developers] Re: dexer inner class errors

2009-05-22 Thread Ward Willats
We get these inner-class errors when using java regex. Suppose other things could cause it as well. We are ignoring them. And of course, you can fix the OOM by cranking up the heap in the dx/dx.bat script. -- Ward At 1:20 PM -0700 5/22/09, Jason Proctor wrote: i'm getting a *lot* of this

  1   2   >