[android-developers] Retreive Default Application associated with a file type
Is there any way to retrieve either the default application name associate to a mime type or a list of applications? Im not looking for the actual application just the application name so it can be stored in a string. -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Remove an inputtype once set
Using setInputType() on a text view works great for making it editable but there does not seem to be a way to remove this once set. I tried setting it to null but still the same issue. Any ideas? -- 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, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Seekbar thumb animation
Well my problem is i actually want to change the thumb image after it has been created like say a different one for 25 50 and 75% but it vanishes. On Jun 22, 8:31 pm, az9702 wrote: > AnimationDrawable can be used to implement simplethumbanimation such > as blinking. > > * Create animation in anim/thumb_anim.xml: > > xmlns:android="http://schemas.android.com/apk/res/android"; > android:oneshot="true"> > > > > ... > > > > * Create an ImageView that turns the above XML into AnimationDrawable: > //mImageView.setVisibility(View.INVISIBLE); > mImage.setBackgroundResource(R.anim.thumb_anim); > mAnim = (AnimationDrawable)mImage.getBackground(); > > * Setseekbarthumbto the AnimationDrawable: > > mSeekBar.setThumb(mAnim); > > * In onWindowFocuseChanged, > > public void onWindowFocusChanged(boolean hasFocus) { > if(hasFocus) { > mAnim.start(); > } else { > mAnim.stop(); > } > } > > This step is baesd on disucssion in: > http://code.google.com/p/android/issues/detail?id=79#c4 > > * Note the imageview is needed only for turning the XML into > AnmiationDrawable so > its visibility can be turned off (or using a ViewStub ?) > > * Also need to turn off mAnim as soon as user starts interacting w/ > thethumb. > > As pointed out in > On Jun 20, 12:11 pm, Protocol-X wrote: > > > > > I appear to be having the same issue > > > On Jun 19, 6:42 pm, az9702 wrote: > > > > Hi, > > > > As the seekbarthumbis a drawable so its support for animation seems > > > limited. > > > It may not be feasible but I would like to hear feedback from those > > > who have more experience w/ UI. > > > > Animations I have in mind are quite simple like a few blinks when > > > layout becomes visible. > > > With Views, blinks can be easily implemented with alpha & cycles but > > > not so for Drawables. > > > > I explored several ideas but none seems to work well: > > > > * Using AnimationDrawable does not seem to help as it requires an > > > ImageView host. > > > > * My main activity has an animation on its layout. > > > I tried tosetthethumbdrawable to another bitmap onAnimationEnd > > > when the main layout is complete. > > > The old drawable went away but the new one did not show so > > > thethumbdisappeared. > > > I checked the thumboffset to make sure it was not out of range. > > > > *Seta Drawable callback on the drawable but that also requires a > > > view. > > > > Another way is to have a customseekbarwith a View forthumbinstead > > > of Drawable. > > > > Please let me know if I have overlooked any other options currently > > > supported by SDK ? > > > > Thanks in advance. > > > > - az9702- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Change SeekBar Thumb image after onCreate
I am having some difficulty changing the image for the SeekBar Thumb after it has been created. I want the SeekBar to have a different Thumb image at 25, 50, & 75, but when i try to change it via setThumb() it disappears. I tried to Override the drawableStateChanged & verifyDrawable but run into the same issue. I have also tried disabling cache and no luck... Could anyone show me an example or point me in the correct direction if im not on the right track? Thanks you --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Seekbar thumb animation
I appear to be having the same issue On Jun 19, 6:42 pm, az9702 wrote: > Hi, > > As the seekbarthumbis a drawable so its support for animation seems > limited. > It may not be feasible but I would like to hear feedback from those > who have more experience w/ UI. > > Animations I have in mind are quite simple like a few blinks when > layout becomes visible. > With Views, blinks can be easily implemented with alpha & cycles but > not so for Drawables. > > I explored several ideas but none seems to work well: > > * Using AnimationDrawable does not seem to help as it requires an > ImageView host. > > * My main activity has an animation on its layout. > I tried tosetthethumbdrawable to another bitmap onAnimationEnd > when the main layout is complete. > The old drawable went away but the new one did not show so > thethumbdisappeared. > I checked the thumboffset to make sure it was not out of range. > > *Seta Drawable callback on the drawable but that also requires a > view. > > Another way is to have a custom seekbar with a View forthumbinstead > of Drawable. > > Please let me know if I have overlooked any other options currently > supported by SDK ? > > Thanks in advance. > > - az9702 --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Album Art
I know media scanner does but the problem is it does not work.. even using a working example in the samples it will not pull the album art.. i am not the only once experiencing this problem either. it breakes the code trying to pull the album art so im looking for a working example On Jan 5, 5:21 pm, rktb wrote: > MediaScanner retrievesALBUM_ART. You may check that service. > > -Ravi > > On Dec 27 2008, 1:02 pm, Protocol-X wrote: > > > > > Does anyone have a working Example ofALBUM_ART, I have tried every > > example out there and cannot find any that actually retreive the art. > > the Lack of support on googles behalf on issues seems to be getting > > greater as well- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem saving canvas to file
if i change "Picture newPicture = Picture.createFromStream(in); " to "Picture newPicture = new Picture();" it does not restart the app but the image is black and only 150 bytes On Jan 4, 12:41 pm, Protocol-X wrote: > I gave it a try and all it does is make the app restart with no > error. > > On Jan 4, 12:09 pm, "Sergey Ten" wrote: > > > > > I have not tried it myself, but looks like you can use Picture class. > > E.g: > > > �...@override protected void onDraw(Canvascanvas) { > > > FileInputStream in = null; > > try { > > in = new FileInputStream("myimage.jpg"); > > } catch (FileNotFoundException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > > int wd = bitmapOrg.getWidth(); > > int hd = bitmapOrg.getHeight(); > > > Picture newPicture = Picture.createFromStream(in); > > CanvasnewCanvas = newPicture.beginRecording(wd, hd); > > newCanvas.drawBitmap(bitmapOrg, 0, 0, null); > > newCanvas.drawBitmap(bitmapOrg, wd, 0, null); > > newCanvas.drawBitmap(bitmapOrg, 0, hd, null); > > newCanvas.drawBitmap(bitmapOrg, wd, hd, null); > > newPicture.endRecording(); > > > FileOutputStream fos = null; > > try { > > fos = new FileOutputStream("/sdcard/test.png"); > > } catch (FileNotFoundException e) { > > e.printStackTrace(); > > } > > newPicture.writeToStream(fos); > > > BTW, since you are accessing in and fos outside of try blocks, the app > > can throw NPE. > > > Sergey > > > -Original Message- > > From: android-developers@googlegroups.com > > > [mailto:android-develop...@googlegroups.com] On Behalf Of Protocol-X > > Sent: Sunday, January 04, 2009 5:27 AM > > To: Android Developers > > Subject: [android-developers] Problem savingcanvasto file > > > Ive been searching all ove on how to edit a image andsaveit. The > > only way i have come accross other than just changing the size or > > orientation is to usecanvas. Nowcanvasworks fine but i cannot seem > > tosavethe newley created image.. the image always returns the > > original image. > > > �...@override protected void onDraw(Canvascanvas) { > > > FileInputStream in = null; > > try { > > in = new FileInputStream("myimage.jpg"); > > } catch (FileNotFoundException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > > int wd = bitmapOrg.getWidth(); > > int hd = bitmapOrg.getHeight(); > > > canvas.drawBitmap(bitmapOrg, 0, 0, null); > > canvas.drawBitmap(bitmapOrg, wd, 0, null); > > canvas.drawBitmap(bitmapOrg, 0, hd, null); > > canvas.drawBitmap(bitmapOrg, wd, hd, null); > > > canvas.save(); > > > FileOutputStream fos = null; > > try { > > fos = new > > FileOutputStream("/sdcard/test.png"); > > } catch (FileNotFoundException e) { > > > e.printStackTrace(); > > } > > bitmapOrg.compress(Bitmap.CompressFormat.PNG, > > 50, fos); > > > try { > > fos.close(); > > } catch (IOException e) { > > > e.printStackTrace(); > > } > > }- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem saving canvas to file
I gave it a try and all it does is make the app restart with no error. On Jan 4, 12:09 pm, "Sergey Ten" wrote: > I have not tried it myself, but looks like you can use Picture class. > E.g: > > �...@override protected void onDraw(Canvascanvas) { > > FileInputStream in = null; > try { > in = new FileInputStream("myimage.jpg"); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > int wd = bitmapOrg.getWidth(); > int hd = bitmapOrg.getHeight(); > > Picture newPicture = Picture.createFromStream(in); > CanvasnewCanvas = newPicture.beginRecording(wd, hd); > newCanvas.drawBitmap(bitmapOrg, 0, 0, null); > newCanvas.drawBitmap(bitmapOrg, wd, 0, null); > newCanvas.drawBitmap(bitmapOrg, 0, hd, null); > newCanvas.drawBitmap(bitmapOrg, wd, hd, null); > newPicture.endRecording(); > > FileOutputStream fos = null; > try { > fos = new FileOutputStream("/sdcard/test.png"); > } catch (FileNotFoundException e) { > e.printStackTrace(); > } > newPicture.writeToStream(fos); > > BTW, since you are accessing in and fos outside of try blocks, the app > can throw NPE. > > Sergey > > > > -Original Message- > From: android-developers@googlegroups.com > > [mailto:android-develop...@googlegroups.com] On Behalf Of Protocol-X > Sent: Sunday, January 04, 2009 5:27 AM > To: Android Developers > Subject: [android-developers] Problem savingcanvasto file > > Ive been searching all ove on how to edit a image andsaveit. The > only way i have come accross other than just changing the size or > orientation is to usecanvas. Nowcanvasworks fine but i cannot seem > tosavethe newley created image.. the image always returns the > original image. > > �...@override protected void onDraw(Canvascanvas) { > > FileInputStream in = null; > try { > in = new FileInputStream("myimage.jpg"); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > int wd = bitmapOrg.getWidth(); > int hd = bitmapOrg.getHeight(); > > canvas.drawBitmap(bitmapOrg, 0, 0, null); > canvas.drawBitmap(bitmapOrg, wd, 0, null); > canvas.drawBitmap(bitmapOrg, 0, hd, null); > canvas.drawBitmap(bitmapOrg, wd, hd, null); > > canvas.save(); > > FileOutputStream fos = null; > try { > fos = new > FileOutputStream("/sdcard/test.png"); > } catch (FileNotFoundException e) { > > e.printStackTrace(); > } > bitmapOrg.compress(Bitmap.CompressFormat.PNG, > 50, fos); > > try { > fos.close(); > } catch (IOException e) { > > e.printStackTrace(); > } > }- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem saving canvas to file
oh i know i just had them commented out and threw it in seperate throws to paste in here thanks ill give it a try On Jan 4, 12:09 pm, "Sergey Ten" wrote: > I have not tried it myself, but looks like you can use Picture class. > E.g: > > �...@override protected void onDraw(Canvascanvas) { > > FileInputStream in = null; > try { > in = new FileInputStream("myimage.jpg"); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > int wd = bitmapOrg.getWidth(); > int hd = bitmapOrg.getHeight(); > > Picture newPicture = Picture.createFromStream(in); > CanvasnewCanvas = newPicture.beginRecording(wd, hd); > newCanvas.drawBitmap(bitmapOrg, 0, 0, null); > newCanvas.drawBitmap(bitmapOrg, wd, 0, null); > newCanvas.drawBitmap(bitmapOrg, 0, hd, null); > newCanvas.drawBitmap(bitmapOrg, wd, hd, null); > newPicture.endRecording(); > > FileOutputStream fos = null; > try { > fos = new FileOutputStream("/sdcard/test.png"); > } catch (FileNotFoundException e) { > e.printStackTrace(); > } > newPicture.writeToStream(fos); > > BTW, since you are accessing in and fos outside of try blocks, the app > can throw NPE. > > Sergey > > > > -Original Message- > From: android-developers@googlegroups.com > > [mailto:android-develop...@googlegroups.com] On Behalf Of Protocol-X > Sent: Sunday, January 04, 2009 5:27 AM > To: Android Developers > Subject: [android-developers] Problem savingcanvasto file > > Ive been searching all ove on how to edit a image andsaveit. The > only way i have come accross other than just changing the size or > orientation is to usecanvas. Nowcanvasworks fine but i cannot seem > tosavethe newley created image.. the image always returns the > original image. > > �...@override protected void onDraw(Canvascanvas) { > > FileInputStream in = null; > try { > in = new FileInputStream("myimage.jpg"); > } catch (FileNotFoundException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > > Bitmap bitmapOrg = BitmapFactory.decodeStream(in); > > int wd = bitmapOrg.getWidth(); > int hd = bitmapOrg.getHeight(); > > canvas.drawBitmap(bitmapOrg, 0, 0, null); > canvas.drawBitmap(bitmapOrg, wd, 0, null); > canvas.drawBitmap(bitmapOrg, 0, hd, null); > canvas.drawBitmap(bitmapOrg, wd, hd, null); > > canvas.save(); > > FileOutputStream fos = null; > try { > fos = new > FileOutputStream("/sdcard/test.png"); > } catch (FileNotFoundException e) { > > e.printStackTrace(); > } > bitmapOrg.compress(Bitmap.CompressFormat.PNG, > 50, fos); > > try { > fos.close(); > } catch (IOException e) { > > e.printStackTrace(); > } > }- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Problem saving canvas to file
Ive been searching all ove on how to edit a image and save it. The only way i have come accross other than just changing the size or orientation is to use canvas. Now canvas works fine but i cannot seem to save the newley created image.. the image always returns the original image. @Override protected void onDraw(Canvas canvas) { FileInputStream in = null; try { in = new FileInputStream("myimage.jpg"); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } Bitmap bitmapOrg = BitmapFactory.decodeStream(in); int wd = bitmapOrg.getWidth(); int hd = bitmapOrg.getHeight(); canvas.drawBitmap(bitmapOrg, 0, 0, null); canvas.drawBitmap(bitmapOrg, wd, 0, null); canvas.drawBitmap(bitmapOrg, 0, hd, null); canvas.drawBitmap(bitmapOrg, wd, hd, null); canvas.save(); FileOutputStream fos = null; try { fos = new FileOutputStream("/sdcard/test.png"); } catch (FileNotFoundException e) { e.printStackTrace(); } bitmapOrg.compress(Bitmap.CompressFormat.PNG, 50, fos); try { fos.close(); } catch (IOException e) { e.printStackTrace(); } } --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Album Art
Does anyone have a working Example of ALBUM_ART, I have tried every example out there and cannot find any that actually retreive the art. the Lack of support on googles behalf on issues seems to be getting greater as well --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] MediaStore.Audio.AudioColumns.ALBUM_ART returns -1
has anyone sucessfully been able to access album art? it always returns a -1 when trying to 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, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: simple g1 text editor questions
There are a ton of apps on the market to this extent already. If you would like a good example, go to the notepad tutorial to see how to create/edit text files and from their u can build a more specific app as you are looking --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] setSelector listview Text bug?
when using setSelector in listview on release if there is anykind of list movement or intent called a box gets left around the text. Is there a way around this or is it a bug? --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] See thru application
Does anyone know if there is a way to be able to visibly see the content of an intent beneath your current intent? for example. if i make my app theme a dialog based and open my app i can still see the home screen beneath it. im looking to accomplish this without using a dialog theme.. is it possible?> --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Gesture detection
Can someone show an example on how to tell if a fling as gone left or right or a scroll has gone left or right? I cannot seem to find any documentation on this On Nov 3, 5:06 pm, Rohit Mordani wrote: > Yes - that also works ! Thanks for letting us know that ! > > Rohit > > On Oct 31, 1:34 pm, hackbod wrote: > > > > > Fyi, doing that will disable all normal touch event dispatching for > > that view and any of its children. It's really rare that you should > > override a dispatch method, especially doing so and never calling > > through to the super class. > > > The correct thing is almost always to override onTouchEvent(). > > > On Oct 31, 2:05 pm, Rohit Mordani wrote: > > > > In addition I had to do the following in my view: > > > > @Override > > > public boolean dispatchTouchEvent(MotionEvent ev){ > > > return mGestureDetector.onTouchEvent(ev); > > > > } > > > > Thanks > > > Rohit > > > > On Oct 31, 1:59 pm, Rohit Mordani wrote: > > > > > Hey Adam and Jason - thanks ! I tried out the things that you guys > > > > said and they make fling / swipe work now ! > > > > > Rohit > > > > > On Oct 31, 12:59 pm, "Jason Parekh" wrote: > > > > > > If you haven't already, can you try returning true in your onDown > > > > > method? > > > > > > jason > > > > > > On Thu, Oct 30, 2008 at 4:18 PM, Rohit Mordani > > > > > wrote: > > > > > > > I am facing the same problem. The onFling() method is never called. > > > > > > > I THINK the problem is that in the emulator, pressing the left mouse > > > > > > button is more like a tap and that sets the MotionEvent.Action to be > > > > > > ACTION_DOWN. As a result the onDown() method of the > > > > > > OnGestureListener > > > > > > is called instead of onFling(). There might be a way to emulate the > > > > > > fling in the emulator but I am not sure of it. If anyone finds out > > > > > > then please let me know. That would then call onFling() correctly I > > > > > > think > > > > > > > Rohit > > > > > > > On Oct 29, 2:12 pm, zl25drexel wrote: > > > > > > > Erik, > > > > > > > > I tried your codes, the onScroll and onFling method are still not > > > > > > > being called. > > > > > > > > On Oct 11, 7:10 pm, Erik Calissendorff > > > > > > > wrote: > > > > > > > > > Hi Kingtut, > > > > > > > > > I believe that this code should work for you, I use this > > > > > > > > solution in > > > > > > > > my Activity: > > > > > > > > > @Override > > > > > > > > public boolean dispatchTouchEvent(MotionEvent ev) { > > > > > > > > boolean returnValue=false; > > > > > > > > returnValue=returnValue | mGestureDetector.onTouchEvent(ev); > > > > > > > > returnValue=returnValue | super.dispatchTouchEvent(ev); > > > > > > > > return returnValue; > > > > > > > > > } > > > > > > > > > Good luck with the development.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] external libraries crashing app
At first I thought it was just an incompatibility but I have even looked up on here external libraries other people are using. No matter what library I use an app I design that calls on one of these instant crashes my app. I have tried different ways of adding the libraries. Just adding the jar, adding a new library, adding the jar into the android library. All with the same results. Anyideas? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Custom Style
I have tried that. the Issue i am encountering is if i change the progress Drawable it does change the slider on the progress bar only. the actual progress stays orange. I can change the background and get rid of the orange all together and show the progressing slider but i want to be able to keep the actual progress and change that color as well On Dec 5, 11:55 pm, "Jason Parekh" <[EMAIL PROTECTED]> wrote: > You can just use the default style of the horizontal progress bar and in > addition set the progressDrawable to the resource for your XML file. > > jason > > > > On Wed, Dec 3, 2008 at 6:06 PM, Protocol-X <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I am trying to implement a custom style to a progress bar. I have the > > style but i cannot seem to find any documentation on how to actually > > add it since there is no style folder that can be accessed that i see > > atleast. > > > Can anyone help? > > > http://schemas.android.com/apk/res/ > > android"> > > > > > > > > > > android:startColor="#ff9d9e9d" > > android:centerColor="#ff5a5d5a" > > android:centerY="0.75" > > android:endColor="#ff747674" > > android:angle="270" > > /> > > > > > > > > > > > > > > > > android:startColor="#80ffd300" > > android:centerColor="#80ffb600" > > android:centerY="0.75" > > android:endColor="#a0ffcb00" > > android:angle="270" > > /> > > > > > > > > > > > > > > > > > > android:startColor="#d300" > > android:centerColor="#b600" > > android:centerY="0.75" > > android:endColor="#cb00" > > android:angle="270" > > /> > > > > > > > > > - Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Crash Files
Anyone know where to find the files produced anytime android crashes? is ther e a place on the device. does android log its own crash logs for system crashes not 3rd part apps? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: hello
If you do not want to be on this list then click on the "Edit my Membership" link and choose to quit the group On Dec 3, 10:04 pm, samuel <[EMAIL PROTECTED]> wrote: > I don't want to join this group now? > > Could you delete my account on the list? > > Because I always got lots of mail from this group which is bothered me for a > long time. > > Thank you --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Custom Style
Hello, I am trying to implement a custom style to a progress bar. I have the style but i cannot seem to find any documentation on how to actually add it since there is no style folder that can be accessed that i see atleast. Can anyone help? http://schemas.android.com/apk/res/ android"> --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: contextmenu getselectedtestid
I figured it out kind of ... It seems since i was using the same method in moth the onItemSelected and the onContextItemSelected the onItemSelected was taking ownership of the method instead of listening to the onContextItemSelected... never encountered this issue before has anyone else? On Nov 29, 4:07 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > this is my sample code > > @Override > public boolean onContextItemSelected(MenuItem item) > { > final AdapterView.AdapterContextMenuInfo acmi = > (AdapterView.AdapterContextMenuInfo) > item.getMenuInfo(); > long clickedId = (long) acmi.id; > > switch (item.getItemId()) { > > case INSERT_ID: > Toast.makeText(this, "'"+clickedId+"'", > Toast.LENGTH_SHORT).show > (); > return true; > > no matter what list item i select it always shows 6 > > On Nov 28, 6:54 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > > > Thanks for the reply. I tried your method but now instead of 0 every > > time i get 6 > > > On Nov 26, 1:58 pm, G <[EMAIL PROTECTED]> wrote: > > > > @Override > > > public boolean onContextItemSelected(MenuItem item) { > > > // TODO Auto-generated method stub > > > AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) > > > item.getMenuInfo(); > > > long clickedId = acmi.id; > > > > } > > > > In the above case, clickedId is the id of the row that was long- > > > pressed to bring up the context menu. You can also get a specific view > > > in the row that was long pressed... > > > TextView tv = (TextView)acmi.targetView.findViewById > > > (R.id.some_view_inside_your_row_view) > > > > Take a look at the docs for AdapterContextMenuInfo for more info. > > > > On Nov 25, 1:15 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > > > > > How do u the row id or position of a listactiviy when using a context > > > > menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: contextmenu getselectedtestid
this is my sample code @Override public boolean onContextItemSelected(MenuItem item) { final AdapterView.AdapterContextMenuInfo acmi = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo(); long clickedId = (long) acmi.id; switch (item.getItemId()) { case INSERT_ID: Toast.makeText(this, "'"+clickedId+"'", Toast.LENGTH_SHORT).show (); return true; no matter what list item i select it always shows 6 On Nov 28, 6:54 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > Thanks for the reply. I tried your method but now instead of 0 every > time i get 6 > > On Nov 26, 1:58 pm, G <[EMAIL PROTECTED]> wrote: > > > @Override > > public boolean onContextItemSelected(MenuItem item) { > > // TODO Auto-generated method stub > > AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) > > item.getMenuInfo(); > > long clickedId = acmi.id; > > > } > > > In the above case, clickedId is the id of the row that was long- > > pressed to bring up the context menu. You can also get a specific view > > in the row that was long pressed... > > TextView tv = (TextView)acmi.targetView.findViewById > > (R.id.some_view_inside_your_row_view) > > > Take a look at the docs for AdapterContextMenuInfo for more info. > > > On Nov 25, 1:15 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > > > > How do u the row id or position of a listactiviy when using a context > > > menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Word Document
hello Humble, this is a developers page not a general forum. you can access google docs from the device via the web. as far as an app goes ythere is nothing as of yet but youd be better off going to a forum to ask ?ls like this. as far as the device being new and you not understanding how it could not have the features you need, putting a little work into learning about what you are buying is always a good practice. On Nov 27, 4:17 pm, humble <[EMAIL PROTECTED]> wrote: > I purchased this phone thinking that I would be able to do my school > papers while on the run - train, bus, ect... I can't get into any > document through the Gdoc and I can't download MS Office. How can > this phone be so new and not have that application? Bummer. Makes me > regret buying it. Do any of you on the web world know how I can get a > Word program on this T-Mobile G1? Please, I got final papers due very > soon. > Humble. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: contextmenu getselectedtestid
Thanks for the reply. I tried your method but now instead of 0 every time i get 6 On Nov 26, 1:58 pm, G <[EMAIL PROTECTED]> wrote: > @Override > public boolean onContextItemSelected(MenuItem item) { > // TODO Auto-generated method stub > AdapterContextMenuInfo acmi = (AdapterContextMenuInfo) > item.getMenuInfo(); > long clickedId = acmi.id; > > } > > In the above case, clickedId is the id of the row that was long- > pressed to bring up the context menu. You can also get a specific view > in the row that was long pressed... > TextView tv = (TextView)acmi.targetView.findViewById > (R.id.some_view_inside_your_row_view) > > Take a look at the docs for AdapterContextMenuInfo for more info. > > On Nov 25, 1:15 pm, Protocol-X <[EMAIL PROTECTED]> wrote: > > > How do u the row id or position of a listactiviy when using a context > > menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] contextmenu getselectedtestid
How do u the row id or position of a listactiviy when using a context menu. It always seems to always select 0 for the row id. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: .getSelectedItemId() always selecting 0 when using the touch screen
Actually i figured that out between posts... but since you cannot use an int on creating the context menu i run into the same issue on any item that requires a long click On Nov 17, 10:43 pm, Romain Guy <[EMAIL PROTECTED]> wrote: > This is perfectly normal. Just use the position parameter given to you > in onListItemClick(). > > > > > > On Mon, Nov 17, 2008 at 7:08 PM, Protocol-X <[EMAIL PROTECTED]> wrote: > > > Hello all, > > > I have been dealing with this issue for a long time and have yet to > > find a solution online anywhere. > > > Using a ListAvtivity i encounter an issue with jsut the touch screen. > > below is a quick example of the code: > > WHen using the trackball everything is correct but when using the > > touch screen no matter what item on my list i select the position is > > always indicated as Zero... any ideas? > > > protected void onListItemClick(ListView l, View v, int position, long > > id) { > > super.onListItemClick(l, v, position, id); > > > int SrowID= (int) this.getSelectedItemId(); > > > Toast.makeText(this, "'"+SrowID+"'", Toast.LENGTH_SHORT).show(); > > > } > > -- > Romain Guywww.curious-creature.org- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] .getSelectedItemId() always selecting 0 when using the touch screen
Hello all, I have been dealing with this issue for a long time and have yet to find a solution online anywhere. Using a ListAvtivity i encounter an issue with jsut the touch screen. below is a quick example of the code: WHen using the trackball everything is correct but when using the touch screen no matter what item on my list i select the position is always indicated as Zero... any ideas? protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); int SrowID= (int) this.getSelectedItemId(); Toast.makeText(this, "'"+SrowID+"'", Toast.LENGTH_SHORT).show(); } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: CHeck File Permissions
i tried but it keeps giving me errors and asking if i want to create a method canRead or canWrite On Nov 13, 7:44 pm, szeldon <[EMAIL PROTECTED]> wrote: > What about canRead() and canWrite() methods from File class? > > On Nov 14, 12:11 am, Protocol-X <[EMAIL PROTECTED]> wrote: > > > > > Heyeveryone, > > > Ive been tryign to figure out how to check to see if a file has read/ > > write permissions, or just read only permissions and have not been > > able to find a way that works in android.. If anyone has a working > > example they wouldnt mind throwing up it would be great. Thanks in > > advance- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] CHeck File Permissions
Heyeveryone, Ive been tryign to figure out how to check to see if a file has read/ write permissions, or just read only permissions and have not been able to find a way that works in android.. If anyone has a working example they wouldnt mind throwing up it would be great. Thanks in advance --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Comment spam in android market :(
Yes it is rediculous, There is swearing, racial slurs, comments about body parts, all randomly out of nowhere. Google needs to kill the comments from being displayed so that only the app creator can see them and the rating system is defunk as well because people are ratting 1;'s because they dont understand apps or there is a german online book being rated ones because people are commenting its stupud because its in german... what do u expect even the descripion is German if u cannot see this was in German dont rate it poorly.. these are all situations and issue that need to be worked out. or require atleast a 300 character comment inorder to rate lower than a 3 so people are not just rated unfairly because of immature people. On Nov 11, 5:56 am, Al Sutton <[EMAIL PROTECTED]> wrote: > I can see this as a good idea so I've comment ratings into > AndAppStore.com, sorted the displayed comments by ranking, and show 5 at > a time. > > It took me a couple of hours to put the code together, so I'd hope that > the guys at google can do something similar for marketplace in the next > few days. > > Al. > > > > > > plusminus wrote: > > Comments with bad ratings get hidden and need to be expanded by the > > user --> Almost no one will see them anymore > > > +1 for Comment-Rating-System > > > On 11 Nov., 00:10, zl25drexel <[EMAIL PROTECTED]> wrote: > > >> well the ratings/comments now are just the same as the ratings/ > >> comments on youtube. does any1 ever reads them? > > >> On Nov 10, 4:29 pm, "Andrew Burgess" <[EMAIL PROTECTED]> wrote: > > >>> On Mon, Nov 10, 2008 at 4:18 PM, Disconnect <[EMAIL PROTECTED]> wrote: > > ..or just punt out users for ToS violations. > > On Sat, Nov 8, 2008 at 3:24 PM, ryaninc <[EMAIL PROTECTED]> wrote: > > > I wholeheartedly agree. The comments are invaluable for determining > > how well an application works, but it's almost to the point where the > > comments are worthless because there's so much spam and completely off- > > topic discussion. > > > While I don't like comment moderation as a whole, there should be > > automatic filtering at the very least. Maybe Google could implement a > > filter that would delete comments with swear words, or even just turn > > them into asterisks. > > > There really needs to be a solution to this, it's really getting > > bad. :-( > > >>> Perhaps an implementation similar to many online retailers where users can > >>> say whether a review was helpful. Comments that others found helpful in > >>> making their decision could be floated to the top (or at least supply a > >>> sorting option/preference) so that it's easier to find more useful > >>> information. Similarly, a comment with enough bad feedback could be put > >>> up > >>> for some sort of review, and if deemed acceptable, the offending user > >>> could > >>> have comment privileges banned for some period of time. > > >>> -- > >>> Andrew Burgess > > -- > == > Funky Android Limited is registered in England & Wales with the > company number 6741909. The registered head office is Kemp House, > 152-160 City Road, London, EC1V 2NX, UK. > > The views expressed in this email are those of the author and not > necessarily those of Funky Android Limited, it's associates, or it's > subsidiaries.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: DOWNLOADING MUSIC FROM WINDOWS VISTA MEDIA P;AYER FOR G1 PHONE
First of all id like to mention this is the devekopers version of the groups not a section to complain in because u feel your provider should tell u how to do a simple task. So to start providers are not allowed to tell u how to move music to your device due to legal reasons. Second the way u explained it the probably couldn't understand. 3rd very simply put. Ur book tells u that u need to turn mass storage on for pretty much anything u do via pc and that's common for almost any device out there. On top of that all the stuff u listed is senseless. All u have to do is open windows media player and after u plug your phone in and click the sync option you have in media player just like any other device that supports this. Lastly if you want to whine, complain, put others or companies down go to a forum that what they are made for. On a final final note always remember phones usually are not as bad or broken as people say they are. 90% of phone or device issues are from users that believe they know everything or feel they are to important to learn about their phone and expect everyone else to do thing for them. On Nov 6, 8:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I WAS UNABLE TO DOWNLOAD MUSIC FROM MY WINOWS MEDIA PLAYER USING > WINDOWS. FIRST, I WAS ALWAYS ASKED FOR DRIVERS, WHICH THERE ARE'NT > ANY! > THREE HOURS W/T-MOBILE SUPPORT DID NOT HELP EITHER, SO I JUST PLAYED > WITH THE PHONE BY MYSELF. HERE IS HOW TO DO IT! > FIRST PLUG PHONE INTO THE COMPUTER AND WHEN ASKED FOR DRIVERS CLICK > "DO NOT ASK AGAIN." THEN DISCONECT THE PHONE. GO TO THE MEDIA PLAYER > AND DRAG THE MUSIC THAT YOU WANT TO SYNC TO YOUR PHONE. CONECT THE > PHONE AND WHEN THE SIGNAL LETS YOU KNOW THAT YOU HAVE A USB CONECTION, > DRAG DOWN THE CONECTION PAGE, CLICK OR TAP THE ORANGE USB CONECTED > BAR. THEN CLICK MOUNT. CLICK ON MUSIC ICON, ON MEDIA PLAYER CLICK > "SYNC". A DROPDOWN WILL APPEAR ASKING TO "REFRESH DEVICES" CLICK THIS > BAR. IT MIGHT TAKE MORE THAN ONCE IN THE BEGINING BUT IN THE SYNC > AREA YOU WILL SEE THE INFORMATION ABOUT THE PHONE SHOWING THAT IT HAS > BEEN RECOGNIZED. IT WILL ALSO SHOW HOW MUCH SPACE YOU HAVE LEFT IF > YOU DOWNLOAD THE MUIC SELECTED. AT THE BOTOM HIT "START SYNC" AND > YOUR ON YOUR WAY!! GOOD LUCK AND ENJOY!! NO CHARGE! > chefbigbear52 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Missing Import "android.provider.Telephony"
Unfort at the moment i dont have a pc running linux so i have no way to look at the source. On Nov 5, 1:35 am, "Andrew Stadler" <[EMAIL PROTECTED]> wrote: > This is a good opportunity to remind readers of the difference between > the SDK and the open source release. > > The SDK presents a set of APIs which is supported, documented, and > most importantly, guarantees compatibility across a wide range of > Android-based devices. > > The open source release are the tools to build and modify the Android > platform itself, as well as many of the applications that we be a part > of many Android devices. > > The class you're looking for, android.provider.Telephony, is a perfect > example of the difference. Yes, as pointed out, you can find it in > the open source release and use it to better understand the workings > of the platform. No, it *does not* appear in the SDK, and this means > you should not try to use it from your applications. > > If you look carefully at the .java file in the open source release, > you'll notice that the class documentation includes the annotation > @hide. This means it will not appear in the SDK, either as a class > you can compile against, or Javadoc. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---