[android-developers] Library Projects with Resources to Jar using r14

2011-10-26 Thread drasticp
When I saw the update notes for r14 regarding library projects, I was ecstatic. It's a dream come true to be able to export a library project as a JAR file! From the latest release notes, it looks like things are coming along, however it appears that resources are still not bundled in the new Jar

[android-developers] Re: Fragment.onActivityResult is not called

2011-03-10 Thread drasticp
I think Peter's response is accurate. There seems to be a bug in the FragmentActivity.startActivityFromFragment method. I went back and looked at the ApiDemos code and it does work as long as requestCode = 0. However, if you change the request code to anything other than zero, the ApiDemos will

[android-developers] Fragment.onActivityResult is not called

2011-03-09 Thread drasticp
I have an application that targets 2.1. I'm using the Android Compatibility Package to migrate the code in my Activities to Fragments. I had an Activity which was launching a contact picker as follows: Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI);

[android-developers] Re: Identify phone number on web page

2011-03-09 Thread drasticp
Take a look at the Linkify class. It may be quite useful. You would need to use it to add markup to the html before the webview renders it. http://developer.android.com/reference/android/text/util/Linkify.html On Mar 9, 6:22 am, Anndy see.n...@gmail.com wrote: Hi All, I have a html page which

[android-developers] Re: Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread drasticp
I reproduced your issue. It seems the same for me. FragmentTransaction.hide(Fragment) seems to work, but remove does not. Also, the second attempt generates an exception as you described. 1up. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: HTC Incredible, unified media content provider for internal/external storage

2010-05-04 Thread drasticp
The content URI for images in the “phoneStorage” seems to be content://media/phoneStorage/images/media Can you try using that Uri instead of EXTERNAL_CONTENT_URI? Of course this will require some conditional code specifically for the Incredible, but at least you may be able to get to the content.

[android-developers] ADB working with HTC Droid Eris?

2009-11-08 Thread drasticp
I'm trying to debug apps with the new HTC Droid Eris and ADB doesn't seem to recognize the device. I have the latest SDK installed with Usb Driver Package, Revsion 2 downloaded through the Android SDK and AVD Manager. When the device is connected, it recognizes new hardware and I point it to the

[android-developers] Re: My appwidget broken Donut when keyboard slide out/in

2009-10-27 Thread drasticp
I'm seeing the same issue. I've even tried commenting out all of the onUpdate code and the widget still crashes aCore. This problem only seems to occur with 1.6. Any ideas? Anyone else having the same issue? --~--~-~--~~~---~--~~ You received this message because

[android-developers] launch calendar app with generic intent

2009-09-13 Thread drasticp
There's seemingly no way to launch the calendar app in a generic way. I've written a widget which allows you to launch the calendar. I use the following Intent: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setClassName(com.android.calendar, com.android.calendar.LaunchActivity);

[android-developers] Re: WM-DRM Support

2009-09-04 Thread drasticp
PacketVideo has all of the answers. They contributed heavily to the development of the OpenCore and I think they could sell you some WM- DRM if you have a commercial product. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: Create/Send Email using Draft/Template

2009-09-04 Thread drasticp
Intent i = new Intent(Intent.ACTION_SEND); i.putExtra(Intent.EXTRA_EMAIL, new String[]{webmas...@website.com}); i.putExtra(Intent.EXTRA_SUBJECT, mySubject); i.putExtra(Intent.EXTRA_TEXT, myBodyText); startActivity(i); have fun. On Sep 3, 9:16 pm, rooster 808 rich.al...@gmail.com wrote: I've

[android-developers] Re: how to re-draw the listview ?

2009-04-14 Thread drasticp
Look at the notifyDataSetChanged() and notifyDataSetInvalidated() methods on your adapter. I'm not sure if this is the most elegant way to get the job done, but they will cause the list to dump any cached views and redraw them. --~--~-~--~~~---~--~~ You received

[android-developers] Any way to use getChildDrawingOrder? where do we set FLAG_USE_CHILD_DRAWING_ORDER?

2009-03-16 Thread drasticp
I'm writing a custom widget in which I need to control the child drawing order. My control extends AbsoluteLayout. I can see that getChildDrawingOrder is overrideable. The following note is in the javadocs for this method: NOTE: In order for this method to be called, the

[android-developers] Re: Extending AdapterView - getting only 1 level of children

2009-02-22 Thread drasticp
Diane, et. al. I've looked at this extensively without resolution. The widget that is most similar to what I'm trying to create is the Gallery. In the Gallery, there is a private setUpChild method. This method has the following (stuff omitted for brevity): Gallery.LayoutParams lp =

[android-developers] Re: How to add transparent button to screen

2009-02-22 Thread drasticp
Try using an image drawable or ninepatch drawable PNG with some alpha in it. This is an example that's already in the framework. Set this as the background of a FrameLayout: @android:drawable/gallery_thumb On Feb 22, 12:08 am, cindy ypu01...@yahoo.com wrote: Hi all, When I use android's

[android-developers] Extending AdapterView - getting only 1 level of children

2009-02-16 Thread drasticp
I'm creating a custom widget that extends AdapterView. Imagine something like a ListView except that the list items can overlap each other with some transparency. Because of the overlap, I'm trying to control the layout and drawing order of the children. My issue is that the control renders it's

[android-developers] Broken Gallery View? using Gallery.setSelection(int position, boolean animate)

2009-02-06 Thread drasticp
I'm trying to set the selection of a Gallery in code. I would like to have the Gallery smoothly roll down a few items over the duration of a second or two. At frist glance, it appears that two members would to the trick: Gallery.setAnimationDuration(int animationDurationMillis);

[android-developers] Re: Scale a View's Frame

2009-01-23 Thread drasticp
Hey Ryan. I saw you never got an answer to this. Hopefully this helps: I'm scaling a view by overriding onDraw. Inside the onDraw method of my view I'm calling layout(l1, t1, r1, b1). The l,t,r, and b values are external to the view so as they change, the view changes size. The effect looks the

[android-developers] Re: RunningTaskInfo.thumbnail is always null and onCreateThumbnail never called

2009-01-23 Thread drasticp
:46 AM, drasticp drast...@gmail.com wrote: I'd like to get some thumbnail images of the running applications. The combination of RunningTaskInfo.thumbnail and Activity.onCreateThumbnail seems like just the thing but I don't see it working. I've overridden onCreateThumbnail in my main

[android-developers] RunningTaskInfo.thumbnail is always null and onCreateThumbnail never called

2009-01-21 Thread drasticp
I'd like to get some thumbnail images of the running applications. The combination of RunningTaskInfo.thumbnail and Activity.onCreateThumbnail seems like just the thing but I don't see it working. I've overridden onCreateThumbnail in my main Activity. According to the documentation, this method