[android-developers] How to keep half open SlidingDrawer all the time.

2011-04-03 Thread varinag gold
Hi, I want to keep SlidingDrawer half open all the time . It means partially a user will be able to see the contents of a drawer and interact with it (Touch etc) for the open portion. If a user want it can still slide it further and open it completely. Thanks & regards, varinag -- You received

[android-developers] onActivityResult in Activity in TabActivity

2011-04-03 Thread Julius Spencer
Hi, I am having trouble getting onActivityResult to run when I have an Activity finish. The situation is: Activity A (TabActivity) Activity B (Activity in Activity A) - set up in A like so: intent = new Intent().setClass(this, B.class); spec.setContent(intent); - starts Activit

[android-developers] Re: dialog placement

2011-04-03 Thread skink
On Apr 2, 11:10 pm, Dianne Hackborn wrote: > If you merge two drawables into the same windowBackground drawable, this is > no different than what you are doing now. > > Generally the window background is just a frame, and an icon or other stuff > is drawn by the view hierarchy inside of the wind

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Nicholas Johnson
It shouldn't be too difficult. If you have a byte stream of the bitmap, then just set the pixels on the first/last row/col to black where you want to stretch the image and set the other pixels to zero. Then you could remain the image *.9.png and then load it as a normal 9 patch drawable resource

[android-developers] java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

2011-04-03 Thread Naresh Samba
Hi, One of the feature application is to detect and configure email/vpn profiles if the device on which application is running is Motorola Droid 2. I am using Motorola EDM api for acheiving this. This feature requires target to be set to "target=Motorola Mobility, Inc.:smileyvery-happy:roidPr

[android-developers] uses-feature live_wallpaper

2011-04-03 Thread Sandroids
Hi, it seems that when I declare my Live wallpaper as "uses-feature live_wallpaper" the market filters it out to some phones that *do* support live wallpapers. I have to end up remove this restriction, put a "this does not work on" in the application description, and sustain 1-star ratings fr

Re: [android-developers] How to keep half open SlidingDrawer all the time.

2011-04-03 Thread Mark Murphy
SlidingDrawer does not support that. You are welcome to grab the source code to see if you can make your own SemiSlidingDrawer that behaves the way you seek. On Sun, Apr 3, 2011 at 3:06 AM, varinag gold wrote: > Hi, > > I want to keep SlidingDrawer half open all the time . It means > partially a

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
Nothing happens when i tap in the menu option button "Export" ! On 3 avr, 03:54, TreKing wrote: > On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi > wrote: > > > I have a problem in the Import class that i can't recognize it ! > > What does that mean? > > -

[android-developers] Does background scale?

2011-04-03 Thread Raghav Sood
Hi everyone, I am putting a background image in my app. I need to know if it will scale to different screen sizes automatically or do I need to add some code for it. Also what is the best size for a background. Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ htt

[android-developers] Re: Does background scale?

2011-04-03 Thread lbendlin
What happened when you tried it out? -- 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...@googl

Re: [android-developers] Re: Does background scale?

2011-04-03 Thread Raghav Sood
It scaled to a smaller size. I knew that but I wanted to know if it would scale to a bigger one as well. (like a tablet screen.) On Sun, Apr 3, 2011 at 5:20 PM, lbendlin wrote: > What happened when you tried it out? > > -- > You received this message because you are subscribed to the Google > Gr

Re: [android-developers] Re: Mac phone

2011-04-03 Thread Nasif Noorudeen
use lsusb check it is detcting in usb after enabling usb-debugging.. On Sun, Apr 3, 2011 at 2:46 AM, Oliver Crow wrote: > I found I had this problem with my xperia x10, I installed PDAnet, which > installs further drivers for your individual phone. > > > > On 2 Apr 2011, at 22:03, lbendlin w

Re: [android-developers] Re: Does background scale?

2011-04-03 Thread lbendlin
what happened when you tried it in the Honeycomb emulator? -- 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-develo

Re: [android-developers] Re: Does background scale?

2011-04-03 Thread Raghav Sood
None of the emulators ever finish booting on my computer. I test everything on my phone. On Sun, Apr 3, 2011 at 5:26 PM, lbendlin wrote: > what happened when you tried it in the Honeycomb emulator? > > -- > You received this message because you are subscribed to the Google > Groups "Android Deve

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Nick Longinow
Taking a step back here. I think if I solve the Dialog itself, the Window background drawable may not be an issue. Saying that because once I created the 9-patch with correct transparency and Content and Patch settings, it looks as it should. So, trying to get the dialog layout (view) right first

Re: [android-developers] Re: C/C++ Integration With Android...

2011-04-03 Thread Nasif Noorudeen
use ndk-android On Sat, Apr 2, 2011 at 11:47 PM, SJ wrote: > Check here: > > http://smartctl.net/android/ndk-r5.php > > On Apr 1, 1:59 pm, iliTheFallen wrote: > > Hi All, > > > > I want to integrate C/C++ to Android Platform. Java Virtual Machine > > has a native support for calling C/C++ metho

[android-developers] To unsubscribe from this group, send email to

2011-04-03 Thread raghda salah
-- 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

Re: [android-developers] Backup Manager Error

2011-04-03 Thread New Developer
Is No one else seeing the PerformBackupThread error using Honeycomb and the emulator ?? On Mar 31, 2011, at 7:19 AM, New Developer wrote: > I have searched the web the closest I could get is 2.2 but I'm using 3.0 > (Honeycomb) on my emulator and I keep getting the following > > 03-31 07:07:46

[android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Hi, In my app there are currently 2 classes. matchpuzzler and level1. level1 is the first level of the game and matchpuzzler is the name of the project and the class whih has the menu. Both of the classes extend Activity. for some reason level1 opens up whenever the app starts. How do I make match

[android-developers] help

2011-04-03 Thread nainfanta
Can not account registration, who can help me upload an application? >From Robin 2011-04-03 22:13:01 -- 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

[android-developers] Giving Permission to another app

2011-04-03 Thread neohacker
I'm in the middle of a project where 2 apps are included say A and B. App A have some permissions enabled that are not present in app B. Can i transfer necessary permission to app B on request from app A ? If i implement app A as a service, then can i do the job required by app B from app A which

[android-developers] Giving Permission to another app

2011-04-03 Thread neohacker
I'm in the middle of a project where 2 apps are included say A and B. App A have some permissions enabled that are not present in app B. Can i transfer necessary permission to app B on request from app A ? If i implement app A as a service, then can i do the job required by app B from app A which

Re: [android-developers] Giving Permission to another app

2011-04-03 Thread guillaume benats
You can use the shared uid feature On Sun, Apr 3, 2011 at 4:16 PM, neohacker wrote: > I'm in the middle of a project where 2 apps are included say A and B. > App A have some permissions enabled that are not present in app B. Can > i transfer necessary permission to app B on request from app A ?

Re: [android-developers] Giving Permission to another app

2011-04-03 Thread Mark Murphy
On Sun, Apr 3, 2011 at 10:16 AM, neohacker wrote: > I'm in the  middle of a project where 2 apps are included say A and B. > App A have some permissions enabled that are not present in app B. Can > i transfer necessary permission to app B on request from app A ? No. > If i implement app A as a s

Re: [android-developers] Giving Permission to another app

2011-04-03 Thread Mark Murphy
On Sun, Apr 3, 2011 at 10:22 AM, guillaume benats wrote: > You can use the shared uid feature Please don't. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3

[android-developers] Pass control to another class

2011-04-03 Thread Raghav Sood
Hi, In my main class I have a button. There is another class called level1 which extends the main class. How do Imake that class show when the button is clicked? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this messa

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I edited the code to a one more correct: public class Import { private Context context; private String nom; public Import(Context context,String nom) { this.context = context; this.nom=nom; } public void transfer(){ File sdCard = Enviro

[android-developers] Detecting horizontal movement of phone

2011-04-03 Thread Kevin
Hi, Is it possible to detect the horizontal movement of a phone, and its direction? Say I hold a phone on my hand and move my hand leftward without tilting the phone, I would like the phone to realize it has been moved left. I am thinking accelerator sensor is the solution, but then I would have to

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I solved the half of the problem for now, however, i'm having a File Not Found exception ! why the file is not copied ? How can i verify the file in the SDCARD in the emulator ? Thanks. On 3 avr, 15:42, Alaeddine Ghribi wrote: > I edited the code to a one more correct: > public class Import { >  

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I added a virtual SDCARD and the file is not exported ! I have a storeddata.dat directory :\ ! Plus, i have a file not found exception when tapping in the menu option "export" ! Any idea ? On 3 avr, 16:06, Alaeddine Ghribi wrote: > I solved the half of the problem for now, however, i'm having a F

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Kostya Vasilyev
I think you are not creating a directory for the target file. Look up File.mkdir and mkdirs. 03.04.2011 19:40 пользователь "Alaeddine Ghribi" написал: > I added a virtual SDCARD and the file is not exported ! I have a > storeddata.dat directory :\ ! Plus, i have a file not found exception > when t

Re: [android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Dianne Hackborn
Use hierarchyviewer to look at your view hierarchy and see what is drawing each element. On Sun, Apr 3, 2011 at 5:10 AM, Nick Longinow wrote: > Taking a step back here. I think if I solve the Dialog itself, the > Window background drawable may not be an issue. Saying that because > once I create

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
The directory is well created, but i have also storeddata is created as a directiry too not as a file ! I'm trying also this code and same problem: public void transfer(){ File sdCard = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + "/SDC

[android-developers] Re: Best Ads for Android Apps

2011-04-03 Thread ko5tik
Your admob account will be migrated to adsense in near future anyway. It starts by displaying adsense ads through admob widgets. regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develope

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi wrote: > I solved the half of the problem for now, however, i'm having a File Not > Found exception ! > OK. From what? > why the file is not copied ? > I assume your FileNotFoundException has something to do with it. > How can i verify the f

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 9:04 AM, Raghav Sood wrote: > How do I make matchpuzzler open? http://developer.android.com/guide/topics/intents/intents-filters.html - TreKing

Re: [android-developers] Pass control to another class

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 9:40 AM, Raghav Sood wrote: > In my main class I have a button. There is another class called level1 > which extends the main class. How do Imake that class show when the button > is clicked? http://developer.android.com/guide/topics/fundamentals.html ---

[android-developers] MapView

2011-04-03 Thread Daniel Rindt
Hello, i would build a layout where i can have on top a google map on the bottom should appear a table layout with some content and a button. How to implement such a layout, i tried it a couple of hours now, and my summary is that the map is all the time over the entire screen. I can set the heigh

[android-developers] Re: Resources can't be loaded in a Open GL live wallpaper

2011-04-03 Thread MobileVisuals
Here is the out put from logcat. The error happens when I call resources=this.getResources(); 04-03 16:48:33.422: ERROR/AndroidRuntime(290): FATAL EXCEPTION: main 04-03 16:48:33.422: ERROR/AndroidRuntime(290): java.lang.RuntimeException: Unable to instantiate service net.markguerra.android.glwallp

Re: [android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Thanks TreKing. Got that fixed a while back nut thanks anyways. The problem right now is that I need to start another activity from the main one but after putting in the necessary code it force closes. main activity code to start new activity: public OnClickListener a = new OnClickListener()

Re: [android-developers] Pass control to another class

2011-04-03 Thread Raghav Sood
Thanks TreKing I have already been through that and encountered problems please refer to my other discussion. On Sun, Apr 3, 2011 at 10:22 PM, TreKing wrote: > On Sun, Apr 3, 2011 at 9:40 AM, Raghav Sood wrote: > >> In my main class I have a button. There is another class called level1 >> which

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 11:57 AM, Raghav Sood wrote: > The problem right now is that I need to start another activity from the > main one but after putting in the necessary code it force closes. http://developer.android.com/guide/developing/debugging/index.html -

Re: [android-developers] MapView

2011-04-03 Thread Mark Murphy
Use a LinearLayout as the container for the map and the TableLayout. Give the map a height of 0 and a weight of 1. Give the table whatever height makes sense and no weight. Or, use a RelativeLayout as the container for the map and the TableLayout. Anchor the TableLayout to the right/left/bottom. A

Re: [android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Thanks. I have already done that: 04-03 21:26:40.460 I/ActivityManager( 1368): Start proc com.raghavsood.mpfor activity com.raghavsood.mp/.matchpuzzler: pid=4772 uid=10113 gids={3003} 04-03 21:26:40.580 I/ContactsProvider( 7028): Query Uri match >> 1000 Uri >> content://com.android. contacts/co

[android-developers] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?

2011-04-03 Thread Nilay
Hello All, I am working with Android Multimedia Framework. I want to know, Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files? So here the task is like that... 1) Video Capturing from Camcorder 2) At the time of end while video file w

Re: [android-developers] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?

2011-04-03 Thread Mark Murphy
On Sun, Apr 3, 2011 at 1:13 PM, Nilay wrote: > Is there any method or code or procedure through which we can embed > some information to 3gp or mp4 video files? There is nothing built into Android for this. Please use a search engine to find Java code (or C/C++ code, if you wish to use the NDK)

[android-developers] Unable to detect phone call/dial capabilities on tablet

2011-04-03 Thread ole!
I have not been able to detect whether a dialer executes correctly on a tablet. The ACTION_CALL intent does nothing. The problem arises on the T-Mobile Galaxy, but I suspect other tablets have the same problem. What I have tried: 1. catching an exception from start_activity using the ACTION_CALL i

Re: [android-developers] Unable to detect phone call/dial capabilities on tablet

2011-04-03 Thread Mark Murphy
Long term, for most tablets, android.hardware.telephony with or hasSystemFeature() on PackageManager should work. Some Android 2.x tablets, like the Galaxy Tab, may claim to have telephony even if they do not have a dialer, in order to qualify for the Android Market. Short of using android.os.Bui

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I copied the apk to my phone, and when i tap in the menu button "export", same problem! Plus the directory is not created(in the Simulator yes the direc is created)! Here is the menu button export code: case R.id.exporter: final SharedPreferences preferences = PreferenceManager

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
I copied the apk to my phone, and when i tap in the menu button "export", same problem! Plus the directory is not created(in the Simulator yes the direc is created)! Here is the menu button export code: case R.id.exporter: final SharedPreferences preferences = PreferenceManager

[android-developers] google maps that place where I am now.

2011-04-03 Thread Andrei
Hello. How do you open downloaded google maps that place where I am now. Place to be determined by GPS. 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 un

[android-developers] Heard that Android can use the functions of another application

2011-04-03 Thread Andrei
Hello. Heard that Android can use the functions of another application. So do not tell me how to implement a search for your map using the search from Google maps, if it nevozhnozhno, tell me other ways to solve the problem. -- You received this message because you are subscribed to the Google Gr

[android-developers] Re: MapView

2011-04-03 Thread Daniel Rindt
On 3 Apr., 19:01, Mark Murphy wrote: > Use a LinearLayout as the container for the map and the TableLayout. > Give the map a height of 0 and a weight of 1. Give the table whatever > height makes sense and no weight. This is unfortunately not really working. Here is my code: http://fpaste.org/oqJv/

[android-developers] Re: google maps that place where I am now.

2011-04-03 Thread Daniel Rindt
On 3 Apr., 19:58, Andrei wrote: > Hello. > How do you open downloaded google maps that place where I am now. > Place to be determined by GPS. Thank you Not sure to right understand you, but you can obtain those informations with easy from the MyLocationOverlay: http://code.google.com/intl/de-DE/an

[android-developers] Re: Is there any method in Android through which we can add some message secretly in the end of Video clip?

2011-04-03 Thread SJ
MP4 H264 has metadata. Normally this is track info, and even image of covers. Advanced players has metadata parsers. Have a look at http://developer.android.com/reference/android/media/MediaMetadataRetriever.html On Apr 2, 10:26 pm, TreKing wrote: > On Sat, Apr 2, 2011 at 2:56 PM, Nilay wrote:

Re: [android-developers] Re: MapView

2011-04-03 Thread Mark Murphy
On Sun, Apr 3, 2011 at 2:14 PM, Daniel Rindt wrote: > On 3 Apr., 19:01, Mark Murphy wrote: >> Use a LinearLayout as the container for the map and the TableLayout. >> Give the map a height of 0 and a weight of 1. Give the table whatever >> height makes sense and no weight. > This is unfortunately

[android-developers] Thanks

2011-04-03 Thread NILAY MISTRY
Thank you so much for your kind support... Can i add more attributes to video file properties at real time(at capture time) in android? Nilay R. Mistry M.Tech. CSE Nirma University Ahmedabad Kaam Kabhi bada ya chota nahi hota, apna nazariya bada ya chota hota hai. (Work is not huge or tiny, ou

[android-developers] Re: Monkeyrunner not capturing screenshot correctly

2011-04-03 Thread SJ
Thanks Diego. (Actually Im using your approach with Eclipse but on MAC. Works well. But not manage on Win.) MonkeyRunner.sleep(1.0) result = device.takeSnapshot() MonkeyRunner.sleep(1.0) This made me perfect screenshot. On Apr 2, 10:43 pm, Diego Torres Milano wrote: > Add more delay to see it t

Re: [android-developers] Re: MapView

2011-04-03 Thread Kostya Vasilyev
That layout file mixes metaphors: it has layout_weight, a LinearLayout option, inside a RelativeLayout. It needs to be one or the other. 03.04.2011 22:23 пользователь "Mark Murphy" написал: -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

Re: [android-developers] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?

2011-04-03 Thread NILAY MISTRY
Thank you so much Nilay R. Mistry M.Tech. CSE Nirma University Ahmedabad Kaam Kabhi bada ya chota nahi hota, apna nazariya bada ya chota hota hai. (Work is not huge or tiny, our perception towards it makes it huge or tiny.) By : Nilay Mistry On Sun, Apr 3, 2011 at 10:47 PM, Mark Murphy wrote

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 12:12 PM, Raghav Sood wrote: > That is what the log read. I can't understand much except that it failed to > start the activity. > Read the stack trace. > *04-03 21:26:40.810 E/AndroidRuntime( 4772): Caused by: > java.lang.NullPointerException* > 04-03 21:26:40.810 E/Andro

[android-developers] Re: MapView

2011-04-03 Thread Daniel Rindt
On 3 Apr., 20:22, Mark Murphy wrote: > You declined to explain what "not really working" is, forcing us to guess. I followed your suggestions, but the table and the button is not visible. That i forgot to mention in my previous post. The map uses the entire screen again. My last summary was to sho

Re: [android-developers] Heard that Android can use the functions of another application

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 1:04 PM, Andrei wrote: > Hello. > Wassup? > Heard that Android can use the functions of another application. > If "another application" is set up correctly, sure. > So do not tell me how to implement a search for your map using the search > from Google maps, > OK, I

Re: [android-developers] Re: MapView

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 1:53 PM, Daniel Rindt wrote: > I followed your suggestions, but the table and the button is not visible. > You didn't really follow Mark's suggestions completely. Reread his post. > The map uses the entire screen again. > Well you told it to. height=fill_parent means "ta

[android-developers] New Android Phone

2011-04-03 Thread Andrei Gherzan
Hello to all, I have a Samsung Galaxy S phone. I've been using this phone for a 4 months. In these months i realized that i really need a faster phone. This one works like... :) Really! I mean some times, i have to wait like 20 seconds for my Agenda to come up and running. And this is annoying.

Re: [android-developers] New Android Phone

2011-04-03 Thread Marcin Orlowski
On 3 April 2011 21:04, Andrei Gherzan wrote: > Hello to all, > > I have a Samsung Galaxy S phone. I've been using this phone for a 4 months. > In these months i realized that i really need a faster phone. This one works > like... :) Really! I mean some times, i have to wait like 20 seconds for my

Re: [android-developers] New Android Phone

2011-04-03 Thread Kostya Vasilyev
03.04.2011 23:26 пользователь "Marcin Orlowski" написал: > > > On 3 April 2011 21:04, Andrei Gherzan wrote: >> >> Hello to all, >> >> I have a Samsung Galaxy S phone. I've been using this phone for a 4 months. In these months i realized that i really need a faster phone. This one works like... :)

Re: [android-developers] Heard that Android can use the functions of another application

2011-04-03 Thread Marcin Orlowski
> if it nevozhnozhno >> > What did you call me!? > невозможно - learn some languages :) tell me other ways to solve the problem. >> > What problem? > I think OP may need better software translator than this one Regards, Marcin Orlowski *Tray Agenda * - keep you dail

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Matt M
Nick, Thank you for your thoughts. I hoped it would be that easy as well, however according to this discussion: https://groups.google.com/group/android-developers/browse_thread/thre... Romain Guy states "There's a compilation phase to embed extra information inside the PNG but it happens in aapt

Re: [android-developers] onActivityResult in Activity in TabActivity

2011-04-03 Thread Julius Spencer
Hi, After reading the documentation, the problem was that my REQUEST_CODE was negative so doesn't return a result. Ooops! Hope this helps someone else. Regards, Julius. On 3/04/2011, at 7:41 PM, Julius Spencer wrote: > Hi, > > I am having trouble getting onActivityResult to run when I have a

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Matt M
Sorry, this discussion: https://groups.google.com/group/android-developers/browse_thread/thread/22f402ccedba9533 Also, this link is the ResourceTypes.h file that describes (sort of) how to manage the byte[] chunk. I've studied it I just do not know what to return exactly. http://www.netmite.com/a

[android-developers] Re: Dev Console profile edit page??

2011-04-03 Thread Maps.Huge.Info (Maps API Guru)
The developer's console is still broken. Now it's getting odd 404 messages and a popup saying something like "This application doesn't belong to you" or whatever. I'm also not able to view comments or even my apps occasionally as well. Somebody really screwed the pooch on this latest "upgrade." -J

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Nick Longinow
HierarchyViewer says that the border is being drawn by the AlertDialog code itself. ie, it's coming from an object called "FrameLayout, with ID = id/customPanel". So, to solve this is it necessary to extend AlertDialog? Or is that overkill? On Apr 3, 12:12 pm, Dianne Hackborn wrote: > Use hiera

Re: [android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Dianne Hackborn
Oh wait, you are using AlertDialog? Why? AlertDialog is for making standard-looking dialogs. If you just want a dialog you can use Dialog and customize its content as desired. On Sun, Apr 3, 2011 at 3:04 PM, Nick Longinow wrote: > HierarchyViewer says that the border is being drawn by the Aler

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Nicholas Johnson
Ah, ok, I hadn't read that at all. By the way, what are you doing with the image that you need to make it a 9 patch? Perhaps you can use a matrix to scale it however you need before displaying it? Nick -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Re: New Android Phone

2011-04-03 Thread Kevin TeslaCoil Software
> There's something wrong with your phone. He already said that: > I have a Samsung Galaxy S phone. -Kevin On Apr 3, 2:25 pm, Marcin Orlowski wrote: > On 3 April 2011 21:04, Andrei Gherzan wrote: > > > Hello to all, > > > I have a Samsung Galaxy S phone. I've been using this phone for a 4 m

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Nick Longinow
Perfect. I found some good examples of subclassing AlertDialog, but this may be alot easier to do. I'll take my 9-patch and apply it to a Dialog. thanks On Apr 3, 6:28 pm, Dianne Hackborn wrote: > Oh wait, you are using AlertDialog?  Why?  AlertDialog is for making > standard-looking dialogs.  I

[android-developers] Re: Hardware key combination capture

2011-04-03 Thread Doug
Be that as it may, if I tell users of my app that something will happen if they push the search button but something else happens instead, it makes my app look broken on that device that changed the convention for that button. However, if a manufacturer wants to make another super special button t

[android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
So here is the code(not working yet): public class Import { private Context context; private String nom; public Import(Context context,String nom) { this.context = context; this.nom=nom; } public void transfer(){ File sdCard = Environme

[android-developers] Re: custom dialog frame - how to get a pointy triangle edge

2011-04-03 Thread Nick Longinow
Works perfectly. 9-patch with transparency set for Stretch and Content is exactly right. Ended up applying my 9-patch to the Dialog itself, instead of the View inside the inflated Dialog's contents. This code below works now. Thanks again. mDialog = new Dialog(mContext);

Re: [android-developers] Heard that Android can use the functions of another application

2011-04-03 Thread Kristopher Micinski
So you want to use the Google maps to search for something from your application? I think what you mean is that you can use intents to do things in other applications. Sure, this is possible, but like TreKing mentioned, you have to set it up correctly. So far I don't think too many things do this.

[android-developers] More on Fragment inflation

2011-04-03 Thread blake
I think there is another issue, related to the one discussed in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/6cfac9e17dd7afe9/0ff2c762526e1f22?lnk=gst&q=fragment# My application, as is typical, does something like this: public void onCreate(Bundle state

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi wrote: > It shows me File Not Found Step through your code and figure out which one is throwing the exception, for starters. - TreKing

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
Sorry, but do you mean that i put a break point in this line: catch(FileNotFoundException ex){ Toast.makeText(context, "File Not found", Toast.LENGTH_SHORT).show(); and see what it gives as output values ? 2011/4/4 TreKing > On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi < > alaeddineghr.

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Kristopher Micinski
Nope, he means step through until you *get* the exception... However, if you put a breakpoint at *that* line you should be able to read (in the Eclipse debugger) what file is causing you trouble. kris On Sun, Apr 3, 2011 at 9:51 PM, Alaeddine Ghribi wrote: > Sorry, but do you mean that i put a

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Alaeddine Ghribi
To be honest, i don't know how to step through the code until i get the exception :\! F5 in the debugger? But as you said, i have an other option that consists to put a break point un the catch line! I'll report the getted results. 2011/4/4 Kristopher Micinski > Nope, he means step through unti

[android-developers] Re: Dev Console profile edit page??

2011-04-03 Thread Zsolt Vasvari
> Somebody really screwed the pooch on > this latest "upgrade." You make it sound like that ANY upgrade so far had gone smoothly. -- 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@googl

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 9:11 PM, Alaeddine Ghribi wrote: > So i put a breakpoint in the catch line and in the debugger i think that i > have the right variables: Put a break at the *start* of your code and *step through* line by line until you hit the line that causes the exception. OR Print th

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Matt M
I was looking at 9patch because the images are being displayed on a home screen widget. They are designed for portrait display, so when orientation is changed to landscape the widget looks a bit distorted. If 9patch on device is possible that seems like the most efficient method, however if there i

Re: [android-developers] More on Fragment inflation

2011-04-03 Thread Dianne Hackborn
Could you please explain more specifically what you are doing? How is what you are doing different than the Layout API demo? The Layout API demo has different layouts for landscape and portrait, one which has two embedded fragments, and one which only has one of those. On Sun, Apr 3, 2011 at 6:2

Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]

2011-04-03 Thread Kristopher Micinski
Right, you should probably learn to use the debugger. It's not long, there's not much to it. Try messing around with it for a while and figure it out. It's a good way to find out what your code is "really doing." On Sun, Apr 3, 2011 at 10:38 PM, TreKing wrote: > On Sun, Apr 3, 2011 at 9:11 PM,

Re: [android-developers] Pass control to another class

2011-04-03 Thread Kristopher Micinski
You don't really have a "class" that gets called. You have a view that comes to the foreground. However, since it's really implemented as a class I could see how beginners would confuse the two. In any case, what you want is an intent. You should be able to figure out how to do this from the API d

[android-developers] Android Layouts Are Horrible

2011-04-03 Thread grndvl1
Why is it I spend more time dealing with the layout of items than the actual coding of the program? The Eclipse Graphical Layout tool really blows as it has a ton of errors and can't handle simple things like italic text in textview, scrollviews... The layout parameters seem to be a hodge-podge o

[android-developers] Refresh Imageview PLEASE HELP killing me!

2011-04-03 Thread Noobs41bot
Ok so I have all the code in place to create a random degree of rotation between a start and finish... works great... i have a progress bar that i can pull and watch the image rotate on the screen, while i drag it... but when i click the button, it just sits there, and then finally shows the im

[android-developers] adb devices returns an empty list

2011-04-03 Thread argongold
Hi, I've a mini MID device and I am trying to use it for development/ debugging purpose. But after all the setting steps( see below) . I am still not able to get device listed when I issue 'adb devices' command. Things I have done as follows: 1. enable USB debugging on the device under Settings->

[android-developers] Re: More on Fragment inflation

2011-04-03 Thread blake
Hi Dianne, I'd be happy to send the source, if you like. The key difference is that I set up the fragment in R.layout.main, and then *replace* it, in the fragment transaction. I did this because it seems like a nice, static way to describe my application: The main layouts, one for small, one

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread skink
On Apr 4, 4:44 am, Matt M wrote: > I was looking at 9patch because the images are being displayed on a > home screen widget. They are designed for portrait display, so when > orientation is changed to landscape the widget looks a bit distorted. > If 9patch on device is possible that seems like t

[android-developers] Re: Creating 9-patch Images on Device

2011-04-03 Thread Matt M
skink, Thank you for your input. I have not considered Drawable, but probably because I do not know much about them :) What do they bring to the table to appropriately "stretch" an image like a 9patch? Thank you! Matt. On Apr 4, 1:23 am, skink wrote: > On Apr 4, 4:44 am, Matt M wrote: > > > I

[android-developers] Undocumented manifest tag

2011-04-03 Thread Brill Pappin
Looking through the OS source, I'm seeing places were the tag is included as a child of . The tag seems to be undocumented, but it looks like it would allow the app to change its package name without breaking the market system. Does anyone have information on this tag? Is there a danger to us

Re: [android-developers] Undocumented manifest tag

2011-04-03 Thread Kumar Bibek
Hmm, this is interesting. Never heard of it. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Apr 4, 2011 at 11:22 AM, Brill Pappin wrote: > Looking through the OS source, I'm seeing places were the > tag is included as a > child of . > > The tag seems to be undocument

  1   2   >