Re: [android-developers] Re: dialog placement
Kostya Vasilyev wrote: Pskink - I believe you need to add transparent padding on the right, as wide as the balloon's size on the left. thanks Kostya, that works! it's minimal waste of resources but anyway it made a trick pakink -- 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 keep half open SlidingDrawer all the time.
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 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] onActivityResult in Activity in TabActivity
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 Activity C like so: Intent i = new Intent(B.this, C.class); startActivityForResult(i, REQUEST_CODE); Activity C (separate Activity which setsResult and finishes) - finishes like so: Intent i = new Intent(); i.putExtra(EXTRA, id); setResult(RESULT_CODE, i); finish(); I can't seem to get onActivityResult to run in either A or B. I would have thought it would be in B, as the Intent in B to start Activity C gives itself as the context. although I'm guessing that this influences how onActivityResult works. Is this impossible or am I just missing something about how tabbed activities work like this? I guess I could go with views, but my tab Activity is going to start to get really long as well as the onActivityResult... :) On the other hand I just read that the Intent rather than View way of setting up TabActivities is not that efficient. (thanks MM) Any help would be greatly appreciated! Regards, Julius. -- 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: dialog placement
On Apr 2, 11:10 pm, Dianne Hackborn hack...@android.com 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 window. Thanks Dianne for explanation. btw I have one more question: I found another window attribute - windowFrame. How does it differ from windowBackground? pskink -- 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: Creating 9-patch Images on Device
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. There's more info on the 9-patch at this linkhttp://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch, so you can know which pixels you want to set as black and which to keep clear. Here's the big caveat: I've never done this programmatically, but I have drawn all my 9-patch images by hand in the GIMP setting the 9 patch pixels myself, so I don't think it'd be too hard to do in code. Nick -- 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] java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
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:roidPro:8 in default.properties. But whereas i am planning to use the same apk for honeycomb and other api versions as well So if i change target=android-11. in default .properties and add EDM.jar as an external library to my project everything compiles fine and am able to build APK, but when i try to run this apk on Moto droid devices i am getting following exception. Class ref in pre-verified class resolved to unexpected implementation This i believe because the dex conversion of the class didn't match with wat was available as a shared library on the device? For that matter i am seeing this isse even if i change the target to android-8 or android-9. How do we handle this scenario's if we have to integrate with third party vendors shared libraries? Any idea how to solve this issue? please advise -- 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] uses-feature live_wallpaper
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 from people that download my live-wallpaper to phones which do not support it. Does anyone know of a solution to this problem? -- 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
Re: [android-developers] How to keep half open SlidingDrawer all the time.
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 varinagg...@gmail.com wrote: 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 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 -- 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.3 Available! -- 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: (File export) What's going on with my code?[NEED HELP]
Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Does background scale?
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/ http://www.telstop.tel/ -- 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: Does background scale?
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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does background scale?
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 l...@bendlin.us wrote: 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...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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
Re: [android-developers] Re: Mac phone
use lsusb check it is detcting in usb after enabling usb-debugging.. On Sun, Apr 3, 2011 at 2:46 AM, Oliver Crow cro...@gmail.com 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 l...@bendlin.us wrote: as long as you have checked the development box on your phone it will work with an Intel Mac and OSX 10.6.5 plus Sometimes you have to reboot your phone while leaving it connected for ADB to see it again. -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en http://groups.google.com/group/android-developers?hl=en -- 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 -- 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
Re: [android-developers] Re: Does background scale?
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-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does background scale?
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 l...@bendlin.us wrote: 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-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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: custom dialog frame - how to get a pointy triangle edge
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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8!-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.comwrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge background and small dialog contents. Must be missing something big here. Here is my Dialog display code: mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.getWindow().setLayout(50, 50); // *** this is the nine patch (looks beautiful by the way, just huge) mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.eight)); // *** mAlert.show(); On Apr 2, 4:16 pm, Nick Longinow nicklongi...@gmail.com wrote: Successfully got a .9.png file created and applied it to my ListView - looks very nice. Problem - the AlertDialog I want to use it for seems to add a rectangle with white interior as a container or border around my ListView. I'd like it to be transparent, and only show the ListView. Do I have to do an extends alertdialog class to get rid of that white border? On Mar 30, 6:21 pm, Nick Longinow nicklongi...@gmail.com wrote: Then that's what I'll do. Moving the triangle around randomly isn't very important. Thanks all. On Mar 29, 10:29 pm, Dianne Hackborn hack...@android.com wrote: No, use a 9-patch. That said, if you want to actually position the triangle at different places in the border you probably will need to give up on just setting a custom background drawable and have to draw your own background with things positioned where you want. On Tue, Mar 29, 2011 at 6:06 PM, Nick Longinow nicklongi...@gmail.comwrote: I'm looking for something more like a shape where the vertices are set to like a rectangle, but with one
Re: [android-developers] Re: C/C++ Integration With Android...
use ndk-android On Sat, Apr 2, 2011 at 11:47 PM, SJ boris.iva...@gmail.com wrote: Check here: http://smartctl.net/android/ndk-r5.php On Apr 1, 1:59 pm, iliTheFallen gurcan.il...@gmail.com wrote: Hi All, I want to integrate C/C++ to Android Platform. Java Virtual Machine has a native support for calling C/C++ methods or importing dll files. My question is Does Dalvik Virtual Machine(DVM) have the same support?. If it has; would you mind letting me know about the technique or the resource depicting the case i mentioned? 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] To unsubscribe from this group, send email to
-- 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
Re: [android-developers] Backup Manager Error
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.413: INFO/PerformBackupThread(82): Initializing (wiping) backup state and transport storage 03-31 07:07:46.515: ERROR/PerformBackupThread(82): Error backing up @pm@ 03-31 07:07:46.515: ERROR/PerformBackupThread(82): java.io.FileNotFoundException 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at android.os.Parcel.openFileDescriptor(Native Method) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:115) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$PerformBackupTask.processOneBackup(BackupManagerService.java:1467) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$PerformBackupTask.run(BackupManagerService.java:1314) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$BackupHandler.handleMessage(BackupManagerService.java:315) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at android.os.Handler.dispatchMessage(Handler.java:99) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at android.os.Looper.loop(Looper.java:126) 03-31 07:07:46.515: ERROR/PerformBackupThread(82): at android.os.HandlerThread.run(HandlerThread.java:60) 03-31 07:07:46.515: WARN/PerformBackupThread(82): Backup pass unsuccessful, restaging 03-31 07:10:24.541: INFO/PerformBackupThread(82): Initializing (wiping) backup state and transport storage 03-31 07:10:24.541: ERROR/PerformBackupThread(82): Error backing up @pm@ 03-31 07:10:24.541: ERROR/PerformBackupThread(82): java.io.FileNotFoundException 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at android.os.Parcel.openFileDescriptor(Native Method) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:115) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$PerformBackupTask.processOneBackup(BackupManagerService.java:1467) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$PerformBackupTask.run(BackupManagerService.java:1314) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at com.android.server.BackupManagerService$BackupHandler.handleMessage(BackupManagerService.java:315) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at android.os.Handler.dispatchMessage(Handler.java:99) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at android.os.Looper.loop(Looper.java:126) 03-31 07:10:24.541: ERROR/PerformBackupThread(82): at android.os.HandlerThread.run(HandlerThread.java:60) 03-31 07:10:24.541: WARN/PerformBackupThread(82): Backup pass unsuccessful, restaging I have tried adb -e shell bmgr run bmgr enable true bmgr backup {package} root@android:/ # bmgr list transports * android/com.android.internal.backup.LocalTransport How Do I fix this ??? I have also noticed that if I restart the emulator the data is gone by data files uploaded onto the sdcard.img and data in the sqlite3 /data/data/{package}/database directory 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Main class not starting
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 matchpuzzler open? matchpuzzler gets the data from main.xml and level1 from level1.xml. Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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] help
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 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] Giving Permission to another app
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 require the permission B don't have. Plas reply. I'm stuck here at my app.. -- 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] Giving Permission to another app
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 require the permission B don't have. Plas reply. I'm stuck here at my app.. -- 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
Re: [android-developers] Giving Permission to another app
You can use the shared uid feature On Sun, Apr 3, 2011 at 4:16 PM, neohacker arunscari...@gmail.com 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 ? If i implement app A as a service, then can i do the job required by app B from app A which require the permission B don't have. Plas reply. I'm stuck here at my app.. -- 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 -- Benats Guillaume. (Computer Sciences, FUNDP, Namur) -- 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
Re: [android-developers] Giving Permission to another app
On Sun, Apr 3, 2011 at 10:16 AM, neohacker arunscari...@gmail.com 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 service, then can i do the job required by app B from app A which require the permission B don't have. Yes. -- 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.3 Available! -- 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
Re: [android-developers] Giving Permission to another app
On Sun, Apr 3, 2011 at 10:22 AM, guillaume benats guillaume.ben...@gmail.com 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.3 Available! -- 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] Pass control to another class
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 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: (File export) What's going on with my code?[NEED HELP]
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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } I hope that it's correct, but how the code could be when tapping in the export option menu? I maked this and nothing happens: case R.id.importer: final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Thank you for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Detecting horizontal movement of phone
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 deal with the tilting of the phone, which is not an actual movement but would change the sensor values. Any possible solutions? Thanks. -- 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: (File export) What's going on with my code?[NEED HELP]
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 alaeddineghr...@gmail.com wrote: 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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } I hope that it's correct, but how the code could be when tapping in the export option menu? I maked this and nothing happens: case R.id.importer: final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Thank you for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: (File export) What's going on with my code?[NEED HELP]
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 alaeddineghr...@gmail.com wrote: 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 alaeddineghr...@gmail.com wrote: 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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } I hope that it's correct, but how the code could be when tapping in the export option menu? I maked this and nothing happens: case R.id.importer: final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Thank you for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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 alaeddineghr...@gmail.com написал: 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 alaeddineghr...@gmail.com wrote: 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 alaeddineghr...@gmail.com wrote: 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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } I hope that it's correct, but how the code could be when tapping in the export option menu? I maked this and nothing happens: case R.id.importer: final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Thank you for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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
Re: [android-developers] Re: custom dialog frame - how to get a pointy triangle edge
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 nicklongi...@gmail.comwrote: 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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8!-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.com wrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge background and small dialog contents. Must be missing something big here. Here is my Dialog display code: mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.getWindow().setLayout(50, 50); // *** this is the nine patch (looks beautiful by the way, just huge) mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.eight)); // *** mAlert.show(); On Apr 2, 4:16 pm, Nick Longinow nicklongi...@gmail.com wrote: Successfully got a .9.png file created and applied it to my ListView - looks very nice. Problem - the AlertDialog I want to use it for seems to add a rectangle with white interior as a container or border around my ListView. I'd like it to be transparent, and only show the ListView. Do I have to do an extends alertdialog class to get rid of that white border? On Mar 30, 6:21 pm, Nick Longinow nicklongi...@gmail.com wrote: Then that's what I'll do. Moving the triangle around randomly isn't very important. Thanks all. On Mar 29, 10:29 pm, Dianne Hackborn hack...@android.com wrote: No, use a 9-patch. That said, if you want to actually position the triangle at different places in the border you probably will need to give up on just setting a custom background drawable and have to draw your own
[android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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() + /SDCARD/ Carburant/); dir.mkdir(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } dir variable just creates the directiry to the saved file and cipyfile func stores the data to the storeddata.dat file ! On 3 avr, 17:11, Kostya Vasilyev kmans...@gmail.com wrote: 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 alaeddineghr...@gmail.com написал: 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 alaeddineghr...@gmail.com wrote: 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 alaeddineghr...@gmail.com wrote: 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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } I hope that it's correct, but how the code could be when tapping in the export option menu? I maked this and nothing happens: case R.id.importer: final SharedPreferences preferences = PreferenceManager .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Thank you for your answer. On 3 avr, 12:06, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: Nothing happens when i tap in the menu option button Export ! On 3 avr, 03:54, TreKing treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 8:40 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: I have a problem in the Import class that i can't recognize it ! What does that mean? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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
[android-developers] Re: Best Ads for Android Apps
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-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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com 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 file in the SDCARD in the emulator ? You can use the File Explorer tool to navigate the emulator contents. On Sun, Apr 3, 2011 at 11:20 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: The directory is well created, but i have also storeddata is created as a directiry too not as a file ! Please Google Java IO. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Main class not starting
On Sun, Apr 3, 2011 at 9:04 AM, Raghav Sood raghavs...@gmail.com wrote: How do I make matchpuzzler open? http://developer.android.com/guide/topics/intents/intents-filters.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Pass control to another class
On Sun, Apr 3, 2011 at 9:40 AM, Raghav Sood raghavs...@gmail.com 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 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] MapView
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 height of the map for example 120dp that works, but i want that the map is stretching like match_parent. With the height definition of the table on bottom i could life. Thanks for all suggestions. Daniel -- 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: Resources can't be loaded in a Open GL live wallpaper
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.glwallpaperexample.MyWallpaperService: java.lang.NullPointerException 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.app.ActivityThread.handleCreateService(ActivityThread.java: 2943) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.app.ActivityThread.access$3300(ActivityThread.java:125) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.os.Handler.dispatchMessage(Handler.java:99) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.os.Looper.loop(Looper.java:123) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.app.ActivityThread.main(ActivityThread.java:4627) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.app.ActivityThread.main(ActivityThread.java:4627) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at java.lang.reflect.Method.invoke(Method.java:521) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:868) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at dalvik.system.NativeStart.main(Native Method) 04-03 16:48:33.422: ERROR/AndroidRuntime(290): Caused by: java.lang.NullPointerException 04-03 16:48:33.422: ERROR/AndroidRuntime(290): at android.content.ContextWrapper.getResources(ContextWrapper.java:80) 04-03 16:53:38.932: ERROR/AndroidRuntime(421): at net.markguerra.android.glwallpaperexample.MyWallpaperService.init(MyWallpaperService.java: 26) 04-03 16:53:38.932: ERROR/AndroidRuntime(421): at java.lang.Class.newInstanceImpl(Native Method) 04-03 16:53:38.932: ERROR/AndroidRuntime(421): at java.lang.Class.newInstance(Class.java:1429) 04-03 16:53:38.932: ERROR/AndroidRuntime(421): at android.app.ActivityThread.handleCreateService(ActivityThread.java: 2940) On Apr 2, 5:14 pm, Marcin Orlowski webnet.andr...@gmail.com wrote: On 2 April 2011 16:12, MobileVisuals eyv...@astralvisuals.com wrote: My problem is that I can’t load my texture resources. The app crashes And the log quote is...? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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
Re: [android-developers] Main class not starting
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() { public void onClick(View v) { myIntent = new Intent(matchpuzzler.this, level1.class); startActivity(myIntent); } }; myIntent has been declared earlier. AndroidManifest code: application android:icon=@drawable/icon android:label=@string/app_name activity android:name=.matchpuzzler android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity activity android:label=@string/hello android:name=.level1 /activity /application Still my app force closes. The class I need to show is called level1 and extends Activity. Thanks On Sun, Apr 3, 2011 at 10:19 PM, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 9:04 AM, Raghav Sood raghavs...@gmail.com wrote: How do I make matchpuzzler open? http://developer.android.com/guide/topics/intents/intents-filters.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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
Re: [android-developers] Pass control to another class
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 treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 9:40 AM, Raghav Sood raghavs...@gmail.com 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 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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
Re: [android-developers] Main class not starting
On Sun, Apr 3, 2011 at 11:57 AM, Raghav Sood raghavs...@gmail.com 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 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] MapView
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. Anchor the map to the right/left/top and to the top of the TableLayout. On Sun, Apr 3, 2011 at 12:52 PM, Daniel Rindt daniel.ri...@googlemail.com wrote: 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 height of the map for example 120dp that works, but i want that the map is stretching like match_parent. With the height definition of the table on bottom i could life. Thanks for all suggestions. Daniel -- 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 -- 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.3 Available! -- 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
Re: [android-developers] Main class not starting
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/contacts 04-03 21:26:40.610 I/ContactsProvider( 7028): setTablesAndProjectionMapForContacts Uri content://com.android.contacts/contacts 04-03 21:26:40.720 I/ActivityThread( 4769): Publishing provider com.google.android.googlequicksearchbox.google: com.google.android.googlequicksearchbox.google.GoogleSuggestionProvider 04-03 21:26:40.800 W/dalvikvm( 4772): threadid=1: thread exiting with uncaught exception (group=0x40020ac0) 04-03 21:26:40.810 E/AndroidRuntime( 4772): FATAL EXCEPTION: main 04-03 21:26:40.810 E/AndroidRuntime( 4772): java.lang.RuntimeException: Unable to start activity ComponentInfo{ com.raghavsood.mp/com.raghavsood.mp.matchpuzzler}: java.lang.NullPointerException 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.os.Handler.dispatchMessage(Handler.java:99) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.os.Looper.loop(Looper.java:123) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread.main(ActivityThread.java:4627) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at java.lang.reflect.Method.invokeNative(Native Method) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at java.lang.reflect.Method.invoke(Method.java:521) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at dalvik.system.NativeStart.main(Native Method) 04-03 21:26:40.810 E/AndroidRuntime( 4772): Caused by: java.lang.NullPointerException 04-03 21:26:40.810 E/AndroidRuntime( 4772): at com.raghavsood.mp. matchpuzzler.onCreate(matchpuzzler.java:20) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 04-03 21:26:40.810 E/AndroidRuntime( 4772): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 04-03 21:26:40.810 E/AndroidRuntime( 4772): ... 11 more 04-03 21:26:40.860 I/ActivityThread( 4769): Publishing provider com.google.android.googlequicksearchbox.shortcuts: com.google.android.googlequicksearchbox.ShortcutsProvider 04-03 21:26:40.880 W/ActivityManager( 1368): Force finishing activity com.raghavsood.mp/.matchpuzzler That is what the log read. I can't understand much except that it failed to start the activity. Also the line number indicated in the red line simply sets a onclicklistener for the level1 button. On Sun, Apr 3, 2011 at 10:31 PM, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 11:57 AM, Raghav Sood raghavs...@gmail.com 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 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?
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 will be saved to memory, I want to attach or tag system information at properties of video file. The information is either read only or hidden. Thanks in advance... Hope for helpful reply. -- 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
Re: [android-developers] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?
On Sun, Apr 3, 2011 at 1:13 PM, Nilay nilaymistr...@gmail.com 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) that will allow you to manipulate such files. -- 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.3 Available! -- 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] Unable to detect phone call/dial capabilities on tablet
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 intent (no exception generated) 2. TelephonyManager.getPhoneType() returns a valid state (GSM) 3. TelephonyManager.getCallState() return a valid state (IDLE) 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
Re: [android-developers] Unable to detect phone call/dial capabilities on tablet
Long term, for most tablets, android.hardware.telephony with uses-feature 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.Build to identify these by manufacturer and model, I do not know how else you can tell. On Sun, Apr 3, 2011 at 1:34 PM, ole! olub...@gmail.com wrote: 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 intent (no exception generated) 2. TelephonyManager.getPhoneType() returns a valid state (GSM) 3. TelephonyManager.getCallState() return a valid state (IDLE) 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 -- 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.3 Available! -- 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: (File export) What's going on with my code?[NEED HELP]
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 .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Is that correct ? Thank you for verifying it. On 3 avr, 17:41, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com 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 file in the SDCARD in the emulator ? You can use the File Explorer tool to navigate the emulator contents. On Sun, Apr 3, 2011 at 11:20 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: The directory is well created, but i have also storeddata is created as a directiry too not as a file ! Please Google Java IO. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: (File export) What's going on with my code?[NEED HELP]
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 .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Is that correct ? Thank you for verifying it. On 3 avr, 17:41, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com 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 file in the SDCARD in the emulator ? You can use the File Explorer tool to navigate the emulator contents. On Sun, Apr 3, 2011 at 11:20 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: The directory is well created, but i have also storeddata is created as a directiry too not as a file ! Please Google Java IO. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] google maps that place where I am now.
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 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] Heard that Android can use the functions of another application
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 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: MapView
On 3 Apr., 19:01, Mark Murphy mmur...@commonsware.com 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/ Thanks for taking a look and giving suggestions to solve the issue. Daniel -- 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: google maps that place where I am now.
On 3 Apr., 19:58, Andrei entre...@gmail.com 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/android/add-ons/google-apis/reference/com/google/android/maps/MyLocationOverlay.html -- 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: Is there any method in Android through which we can add some message secretly in the end of Video clip?
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 treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 2:56 PM, Nilay nilaymistr...@gmail.com wrote: My query is, Is there any method in Android through which we can add some message secretly in the end of Video or Video Frame? W ... T .. F ... --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: MapView
On Sun, Apr 3, 2011 at 2:14 PM, Daniel Rindt daniel.ri...@googlemail.com wrote: On 3 Apr., 19:01, Mark Murphy mmur...@commonsware.com 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/ Thanks for taking a look and giving suggestions to solve the issue. You declined to explain what not really working is, forcing us to guess. Off the cuff, change your TableLayout to have wrap_content for width and height. -- 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.3 Available! -- 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] Thanks
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, our perception towards it makes it huge or tiny.) By : Nilay Mistry On Sun, Apr 3, 2011 at 11:51 PM, SJ boris.iva...@gmail.com wrote: 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 treking...@gmail.com wrote: On Sat, Apr 2, 2011 at 2:56 PM, Nilay nilaymistr...@gmail.com wrote: My query is, Is there any method in Android through which we can add some message secretly in the end of Video or Video Frame? W ... T .. F ... --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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: Monkeyrunner not capturing screenshot correctly
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 dtmil...@gmail.com wrote: Add more delay to see it this solves the problem. On Apr 2, 1:56 pm, SJ boris.iva...@gmail.com wrote: I have also seen not 100% perfect screenshot. There is only one function in Monkeyrunner to take Snapshots: com.android.monkeyrunner.MonkeyDevice.takeSnapshot Gets the device's screen buffer, yielding a screen capture of the entire display. Which function have you mention? On Mar 31, 2:31 am, lbendlin l...@bendlin.us wrote: Are you taking the screenshots from the framebuffer? You may want to use a more higher level function that will only execute when the whole screen is blitted. -- 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
Re: [android-developers] Re: MapView
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 mmur...@commonsware.com написал: -- 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
Re: [android-developers] Is there any method or code or procedure through which we can embed some information to 3gp or mp4 video files?
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 mmur...@commonsware.comwrote: On Sun, Apr 3, 2011 at 1:13 PM, Nilay nilaymistr...@gmail.com 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) that will allow you to manipulate such files. -- 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.3 Available! -- 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 -- 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
Re: [android-developers] Main class not starting
On Sun, Apr 3, 2011 at 12:12 PM, Raghav Sood raghavs...@gmail.com 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/AndroidRuntime( 4772): at com.raghavsood.mp. matchpuzzler.onCreate(*matchpuzzler.java:20*) You have a null pointer at line 20 in your onCreate. Use your debugger to find out what is null. Then make it not null. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: MapView
On 3 Apr., 20:22, Mark Murphy mmur...@commonsware.com 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 show the table and the button, but in the background is the map present, and so not really usable, because the zoom controls are overlap with my button and text. So the best is to split the screen in 2 pieces, where the biggest part should used by the map. The rest are the table and the small button. Here is my currrent layout. Thanks again for your help. http://fpaste.org/kQ9m/ Daniel -- 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
Re: [android-developers] Heard that Android can use the functions of another application
On Sun, Apr 3, 2011 at 1:04 PM, Andrei entre...@gmail.com 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 won't. if it nevozhnozhno What did you call me!? tell me other ways to solve the problem. What problem? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: MapView
On Sun, Apr 3, 2011 at 1:53 PM, Daniel Rindt daniel.ri...@googlemail.comwrote: 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 take up all the space in the parent Don't do that if that's not what you want. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] New Android Phone
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. So i need some advice upon an android phone as i want to buy a new one. -- 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
Re: [android-developers] New Android Phone
On 3 April 2011 21:04, Andrei Gherzan and...@gherzan.ro 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 Agenda to come up and running. And this is annoying. There's something wrong with your phone. So i need some advice upon an android phone as i want to buy a new one. This is not the right group for such discussion. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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 -- 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
Re: [android-developers] New Android Phone
03.04.2011 23:26 пользователь Marcin Orlowski webnet.andr...@gmail.com написал: On 3 April 2011 21:04, Andrei Gherzan and...@gherzan.ro 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 Agenda to come up and running. And this is annoying. There's something wrong with your phone. There is. Samsung's reliable file system combined with their smart memory controller. Can take up to 3-4 seconds to commit a file write, instead of the usual 50-100 milliseconds. I have one of those too... sigh... So i need some advice upon an android phone as i want to buy a new one. This is not the right group for such discussion. Regards, Marcin Orlowski Tray Agenda - keep you daily schedule handy... WebnetMobile on Facebook and Twitter -- 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 -- 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 -- 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
Re: [android-developers] Heard that Android can use the functions of another application
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 http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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: Creating 9-patch Images on Device
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 when the apk is built.. Since I need to create 9patch images after apk packaging, it looks like I need to replicate what the aapt does. Unfortunately this is quite beyond my knowledge so any information anyone can offer would be greatly appreciated! Matt. On Apr 3, 4:54 am, Nicholas Johnson metthejohn...@gmail.com wrote: 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. There's more info on the 9-patch at this linkhttp://developer.android.com/guide/topics/graphics/2d-graphics.html#n..., so you can know which pixels you want to set as black and which to keep clear. Here's the big caveat: I've never done this programmatically, but I have drawn all my 9-patch images by hand in the GIMP setting the 9 patch pixels myself, so I don't think it'd be too hard to do in code. Nick -- 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
Re: [android-developers] onActivityResult in Activity in TabActivity
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 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 Activity C like so: Intent i = new Intent(B.this, C.class); startActivityForResult(i, REQUEST_CODE); Activity C (separate Activity which setsResult and finishes) - finishes like so: Intent i = new Intent(); i.putExtra(EXTRA, id); setResult(RESULT_CODE, i); finish(); I can't seem to get onActivityResult to run in either A or B. I would have thought it would be in B, as the Intent in B to start Activity C gives itself as the context. although I'm guessing that this influences how onActivityResult works. Is this impossible or am I just missing something about how tabbed activities work like this? I guess I could go with views, but my tab Activity is going to start to get really long as well as the onActivityResult... :) On the other hand I just read that the Intent rather than View way of setting up TabActivities is not that efficient. (thanks MM) Any help would be greatly appreciated! Regards, Julius. -- 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 -- 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: Creating 9-patch Images on Device
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/android/mydroid/frameworks/base/include/utils/ResourceTypes.h -- 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: Dev Console profile edit page??
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. -John Coryat -- 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: custom dialog frame - how to get a pointy triangle edge
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 hack...@android.com wrote: 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 nicklongi...@gmail.comwrote: 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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8 !-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.com wrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge background and small dialog contents. Must be missing something big here. Here is my Dialog display code: mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.getWindow().setLayout(50, 50); // *** this is the nine patch (looks beautiful by the way, just huge) mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.eight)); // *** mAlert.show(); On Apr 2, 4:16 pm, Nick Longinow nicklongi...@gmail.com wrote: Successfully got a .9.png file created and applied it to my ListView - looks very nice. Problem - the AlertDialog I want to use it for seems to add a rectangle with white interior as a container or border around my ListView. I'd like it to be transparent, and only show the ListView. Do I have to do an extends alertdialog class to get rid of that white border? On Mar 30, 6:21 pm, Nick Longinow nicklongi...@gmail.com wrote: Then that's what I'll do. Moving the triangle around randomly isn't very important. Thanks
Re: [android-developers] Re: custom dialog frame - how to get a pointy triangle edge
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 nicklongi...@gmail.comwrote: 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 hack...@android.com wrote: 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 nicklongi...@gmail.com 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 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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8!-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.com wrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge background and small dialog contents. Must be missing something big here. Here is my Dialog display code: mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.getWindow().setLayout(50, 50); // *** this is the nine patch (looks beautiful by the way, just huge) mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.eight)); // *** mAlert.show(); On Apr 2, 4:16 pm, Nick Longinow nicklongi...@gmail.com wrote: Successfully got a .9.png file created and applied it to my ListView - looks very nice. Problem - the AlertDialog I want to use it for seems to add a rectangle with white interior as a
[android-developers] Re: Creating 9-patch Images on Device
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 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: New Android Phone
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 webnet.andr...@gmail.com wrote: On 3 April 2011 21:04, Andrei Gherzan and...@gherzan.ro 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 Agenda to come up and running. And this is annoying. There's something wrong with your phone. So i need some advice upon an android phone as i want to buy a new one. This is not the right group for such discussion. Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * -- 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 -- 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: custom dialog frame - how to get a pointy triangle edge
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 hack...@android.com wrote: 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 nicklongi...@gmail.comwrote: 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 hack...@android.com wrote: 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 nicklongi...@gmail.com 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 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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8 !-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.com wrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog list items are normal size. I did alert.getWindow().setLayout(50, 50) to resize that window but it has no effect. Still have this huge background and small dialog contents. Must be missing something big here. Here is my Dialog display code: mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.getWindow().setLayout(50, 50); // *** this is the nine patch (looks beautiful by the way, just huge) mAlert.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.eight)); // *** mAlert.show();
[android-developers] Re: Hardware key combination capture
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 that doesn't have an Android platform convention, great. Or maybe I'm thinking about the search button in the wrong way. Doug On Apr 2, 5:56 pm, Dianne Hackborn hack...@android.com wrote: Remapping the search button can't break stuff, because the search button is not something required by the platform so apps shouldn't rely on it being there. The only required buttons are home and menu (and I guess the power button). On Sat, Apr 2, 2011 at 5:18 PM, Doug beafd...@gmail.com wrote: On Apr 1, 8:59 am, ncerezo narciso.cer...@gmail.com wrote: I fully understand the security issues in capturing all the keystrokes or special keys like home or end call. However, there should be a way to assign an application to a given hardware key or at least to trap some of the hardware keys. No, there shouldn't. This would be a customer service nightmare for the carriers. To make matters worse, one carrier actually DOES remap the search button to their own stuff, which breaks existing applications and causes platform fragmentation. Doug -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: (File export) What's going on with my code?[NEED HELP]
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 = Environment.getExternalStorageDirectory(); File dir = new File (sdCard.getAbsolutePath() + /SDCARD/ Carburant/); dir.mkdirs(); Toast.makeText(context, Test, Toast.LENGTH_SHORT).show(); copyfile(context,nom,sdCard.getAbsolutePath() + /SDCARD/Carburant/ storeddata.dat); } private void copyfile(Context context,String srFile, String dtFile){ try{ File f1 = new File(srFile); File f2 = new File(dtFile); InputStream in = new FileInputStream(f1); OutputStream out = new FileOutputStream(f2); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0){ out.write(buf, 0, len); } in.close(); out.close(); Toast.makeText(context, Export effectué, Toast.LENGTH_SHORT).show(); } catch(FileNotFoundException ex){ Toast.makeText(context, File Not found, Toast.LENGTH_SHORT).show(); } catch(IOException e){ Toast.makeText(context, Echec, Toast.LENGTH_SHORT).show(); } } } It shows me File Not Found, my question is the file is not found in the /SDCARD or in the /data/data/... ? On 3 avr, 18:46, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: 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 .getDefaultSharedPreferences(context); String fileName = getResources().getString(R.string.fileName); fileDir = + preferences.getString(login, ) + .+ preferences.getString(marque, ) + .; Import myImport = new Import(this,fileDir+fileName); myImport.transfer(); return true; Is that correct ? Thank you for verifying it. On 3 avr, 17:41, TreKing treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 10:06 AM, Alaeddine Ghribi alaeddineghr...@gmail.com 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 file in the SDCARD in the emulator ? You can use the File Explorer tool to navigate the emulator contents. On Sun, Apr 3, 2011 at 11:20 AM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: The directory is well created, but i have also storeddata is created as a directiry too not as a file ! Please Google Java IO. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: custom dialog frame - how to get a pointy triangle edge
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); mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); mDialog.setContentView(textEntryView); mDialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.tenth)); mDialog.show(); On Apr 3, 7:39 pm, Nick Longinow nicklongi...@gmail.com wrote: 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 hack...@android.com wrote: 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 nicklongi...@gmail.comwrote: 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 hack...@android.com wrote: 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 nicklongi...@gmail.com 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 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. Code: // 1 - specify the layout (pretty simple stuff) ?xml version=1.0 encoding=UTF-8? LinearLayout xmlns:android=http:// schemas.android.com/apk/res/android android:id=@+id/layout_root0 android:layout_width=fill_parent android:layout_height=fill_parent android:background=#fff8 !-- gives me a red bar at the top of the dialog -- ListView android:id=@+id/shareList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@drawable/tenth !-- my 9-patch. Correctly displays as expected -- /ListView /LinearLayout // 2 - inflate and populate the View LayoutInflater factory = LayoutInflater.from(this); final View textEntryView = factory.inflate(R.layout.bc, null); ListView shareList = (ListView)textEntryView.findViewById(R.id.shareList); shareList.setAdapter(gla); // 3. Now, display the dialog (turn off the title bar) AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setCancelable(true) .setView(textEntryView); mAlert = builder.create(); mAlert.requestWindowFeature(Window.FEATURE_NO_TITLE); mAlert.show(); This code will produce a nice alert dialog with a perfect 9-patch surrounding the ListView (options items) and a red bar at the top of the ListView. **Problem** -- Still have a border around the LinearLayout. There is a thin black horizontal bar at the top *and* a 1-pixel frame around the whole thing. Its that frame around the dialog I want to get rid of. Is that a remnant of the LinearLayout that wraps the ListView? Do I need to specify some sort of no border attribute to the LinearLayout? Or is it a remnant of the Dialog? Do I need to do something beyond the requestWindowFeature (no title) statement? On Apr 2, 7:36 pm, Dianne Hackborn hack...@android.com wrote: The window will be resized to wrap its content. Be sure in your 9-patch that you have correctly indicated the content area along the right and bottom edges. If that isn't the problem, you can use hierarchyviewer to see what is going on with the layout of the view hierarchy if your window. You don't want to set a specific layout size. On Sat, Apr 2, 2011 at 4:30 PM, Nick Longinow nicklongi...@gmail.com wrote: Getting much closer. But not quite. I've got my customized background (nine patch) built and assigned to the alert window. But, its huge while the dialog
Re: [android-developers] Heard that Android can use the functions of another application
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... I don't have a way of quantifying that number, however, so I could be off. ( http://www.openintents.org/en/). However, that being said, you probably want to read this: http://developer.android.com/guide/topics/location/index.html instead, given what I *think* your situation is. kris On Sun, Apr 3, 2011 at 2:04 PM, Andrei entre...@gmail.com wrote: 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 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 -- 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] More on Fragment inflation
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=gstq=fragment# My application, as is typical, does something like this: public void onCreate(Bundle state) { super.onCreate(state); setContentView(R.layout.main); R.layout.main contains a Fragment. If I get my app going and get a few fragments on the back stack, and then switch from portrait to landscape (or vice-versa), it crashes with the dreaded IllegalState... did not create a view. The reason is that when Activity.onCreate is called any attached fragments are in the state INITIALIZING and are moved to CREATED. Unless they are mFromLayout, their onCreateView is not called. The most the original fragment -- the one from the layout -- has been replaced by one that is not from the layout. Boom. Calling setContentView from Activity.onStart() makes the problem go away. So does setting mFromLayout true, in the fragment constructor. I'm not sure I'd call this a bug but it sure is surprising. I'm not sure I understand the correct way to handle it, either. Setting mFromLayout requires bare-faced hackery but it sort of seems like what I want: I want replacements for the original, in-layout fragment to behave just like it did. Moving onCreate code to onStart is, maybe, ok, but it requires doing a lot of initialization that probably ought to be one-time, every time the app becomes visible. Suggestions? -blake -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: It shows me File Not Found Step through your code and figure out which one is throwing the exception, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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 treking...@gmail.com On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: It shows me File Not Found Step through your code and figure out which one is throwing the exception, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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 alaeddineghr...@gmail.comwrote: 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 treking...@gmail.com On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: It shows me File Not Found Step through your code and figure out which one is throwing the exception, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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 krismicin...@gmail.com 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 alaeddineghr...@gmail.com wrote: 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 treking...@gmail.com On Sun, Apr 3, 2011 at 7:08 PM, Alaeddine Ghribi alaeddineghr...@gmail.com wrote: It shows me File Not Found Step through your code and figure out which one is throwing the exception, for starters. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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 -- 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 -- 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: Dev Console profile edit page??
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@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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
On Sun, Apr 3, 2011 at 9:11 PM, Alaeddine Ghribi alaeddineghr...@gmail.comwrote: 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 the message the exception gives you (ex.getMessage()) to find out what file is giving the error. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Creating 9-patch Images on Device
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 is a way to detect orientation change in a home screen widget I would certainly accept that as the next best thing. Although I have yet to find how to detect orientation in an AppWidgetProvider. Matt. On Apr 3, 6:56 pm, Nicholas Johnson metthejohn...@gmail.com wrote: 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 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
Re: [android-developers] More on Fragment inflation
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:28 PM, blake blake.me...@gmail.com wrote: 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=gstq=fragment# My application, as is typical, does something like this: public void onCreate(Bundle state) { super.onCreate(state); setContentView(R.layout.main); R.layout.main contains a Fragment. If I get my app going and get a few fragments on the back stack, and then switch from portrait to landscape (or vice-versa), it crashes with the dreaded IllegalState... did not create a view. The reason is that when Activity.onCreate is called any attached fragments are in the state INITIALIZING and are moved to CREATED. Unless they are mFromLayout, their onCreateView is not called. The most the original fragment -- the one from the layout -- has been replaced by one that is not from the layout. Boom. Calling setContentView from Activity.onStart() makes the problem go away. So does setting mFromLayout true, in the fragment constructor. I'm not sure I'd call this a bug but it sure is surprising. I'm not sure I understand the correct way to handle it, either. Setting mFromLayout requires bare-faced hackery but it sort of seems like what I want: I want replacements for the original, in-layout fragment to behave just like it did. Moving onCreate code to onStart is, maybe, ok, but it requires doing a lot of initialization that probably ought to be one-time, every time the app becomes visible. Suggestions? -blake -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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
Re: [android-developers] Re: (File export) What's going on with my code?[NEED HELP]
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 treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 9:11 PM, Alaeddine Ghribi alaeddineghr...@gmail.com 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 the message the exception gives you (ex.getMessage()) to find out what file is giving the error. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- 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
Re: [android-developers] Pass control to another class
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 demos, and other samples. The basic thing that happens is that you use an intent to open up the class. There should be ample documentation on it available, but do read up about what intents do. Kris On Sun, Apr 3, 2011 at 12:59 PM, Raghav Sood raghavs...@gmail.com wrote: 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 treking...@gmail.com wrote: On Sun, Apr 3, 2011 at 9:40 AM, Raghav Sood raghavs...@gmail.com 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 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- 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 -- 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] Android Layouts Are Horrible
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 of stuff thrown in there as an after thought, seems it wasn't really planned out. They should have taken a lesson from Java's crappy Gridbag layout and used or at least analyzed how Miglayout fixed many issues with Java GUI's. I won't use any other layout manager other than Miglayout. Anyway just venting here as I spent the last 1hr fixing something that should be so simple in a Scrollview/TableLayout/TableRow with ImageView and TextView in each row. -- 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] Refresh Imageview PLEASE HELP killing me!
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 image at its last state... i want to see the image rotating just as i do when i drag my finger on it? what am i doing wrong! it has to be something simple. please help... I have tried invalidate and postinvalidate nothing... main.xml: ?xml version=*1.0* encoding=*utf-8*? LinearLayout xmlns:android=*http://schemas.android.com/apk/res/android; * android:orientation=*vertical * android:layout_width=*fill_parent * android:layout_height=*fill_parent * TextView android:layout_width=*fill_parent * android:layout_height=*wrap_content * android:text=*@string/hello * / Button android:text=*Button* android:id=*@+id/button1* android:layout_width=*wrap_content* android:layout_height=*wrap_content* /Button Spinner android:id=*@+id/scale * android:layout_width=*fill_parent * android:layout_height=*wrap_content * / SeekBar android:id=*@+id/rotate * android:layout_width=*fill_parent * android:layout_height=*wrap_content * android:layout_margin=*5px * android:max=*360 * android:progress=*0 * / ImageView android:id=*@+id/imageview * android:layout_gravity=*center * android:layout_width=*fill_parent * android:layout_height=*fill_parent * android:scaleType=*center * / /LinearLayout Main file: package com.exercise.AndroidBitmap; import java.util.Random; import android.app.Activity; import android.app.AlertDialog; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Matrix; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ImageView; import android.widget.SeekBar; import android.widget.Spinner; public class AndroidBitmap extends Activity { //private final String imageInSD = /sdcard/er.PNG; ImageView myImageView; Spinner spinnerScale; SeekBar seekbarRotate; private static final String[] strScale = {0.2x, 0.5x, 1.0x, 2.0x, 5.0x}; private static final Float[] floatScale = {0.2F, 0.5F, 1F, 2F, 5F}; private final int defaultSpinnerScaleSelection = 2; private ArrayAdapterString adapterScale; private float curScale = 1F; private float curRotate = 0F; //spinning variables private static int ROTATETO; private int START = 720; private int END = 1440; Random random = new Random(); Bitmap bitmap; int bmpWidth, bmpHeight; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.button1); myImageView = (ImageView)findViewById(R.id.imageview); spinnerScale = (Spinner)findViewById(R.id.scale); seekbarRotate = (SeekBar)findViewById(R.id.rotate); adapterScale = new ArrayAdapterString(this, android.R.layout.simple_spinner_item, strScale); adapterScale.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinnerScale.setAdapter(adapterScale); spinnerScale.setSelection(defaultSpinnerScaleSelection); curScale = floatScale[defaultSpinnerScaleSelection]; // bitmap = BitmapFactory.decodeFile(imageInSD); bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon); bmpWidth = bitmap.getWidth(); bmpHeight = bitmap.getHeight(); drawMatrix(); spinnerScale.setOnItemSelectedListener(spinnerScaleOnItemSelectedListener); seekbarRotate.setOnSeekBarChangeListener(seekbarRotateSeekBarChangeListener); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { //AlertDialog.Builder builder = new AlertDialog.Builder(AndroidBitmap.this); //builder.setMessage(hi); ///AlertDialog alert = builder.create(); //alert.show(); RandomInteger(START, END, random); Log.d(up, Integer.toString(ROTATETO) ); for (int i = 0; i ROTATETO; i++) { curRotate = (float)i; drawMatrix(); //myImageView.postInvalidate(); } } }); } private void drawMatrix(){ Matrix matrix = new Matrix(); matrix.postScale(curScale, curScale); matrix.postRotate(curRotate); Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0, bmpWidth, bmpHeight, matrix, true); myImageView.setImageBitmap(resizedBitmap); myImageView.postInvalidate(); } private
[android-developers] adb devices returns an empty list
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-Applications- Development-USB debugging 2. I have changed the following file on my computer . /etc/udev/rules.d/51-android.rules and added the following line. SUBSYSTEM==usb, SYSFS{idVendor}==18d1, ATTR{idProduct}==0001, SYMLINK+=android_adb, MODE=0666, OWNER=MYNAME (on Computer) Command Issued lsusb Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 1690:0741 Askey Computer Corp. [hex] Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 062a:6301 Creative Labs Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 006: ID 18d1:0001 Bus 001 Device 003: ID 0408:1fc3 Quanta Computer, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Note: device is connect to usb bus at Line no. 9 above . (on Computer) Command Issued adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached (on Device itself) Command Issued adbd cannot bind 'tcp:5037' (on Device itself) Command Issued netstat -a | grep 5037 nothing returns from above command. If you have experienced such issue please let me know steps to resolve it. It seems the problem is on device side for which adbd returns 'cannot bind 'tcp:5037' Thanks for your strong support. regards, argon -- 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: More on Fragment inflation
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 for landscape and one for everything else, each show the position of the fragment in the layout XML, not in code. The Layout API demo *adds* its fragment. It is never in the layout. The problem is that the fragments from two different sources, mFromLayout = true and mFromLayout = false, have onCreateView called at different times in the Activity lifecycle. In the first case it is called when the fragment moves from INITIALIZING to CREATED, in the latter when it moves from CREATED to APPLICTION_CREATED. When the app gets restarted (because of a screen rotation) with one of the mFrontLayout = false fragments on top of the back stack, the call to setViewContent in Activity.onCreate ends up trying to use a fragment that hasn't been fully initialized. -blake -- 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: Creating 9-patch Images on Device
On Apr 4, 4:44 am, Matt M matthew.mag...@gmail.com 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 the most efficient method, however if there is a way to detect orientation change in a home screen widget I would certainly accept that as the next best thing. Although I have yet to find how to detect orientation in an AppWidgetProvider. Matt. Matt, Instead of creating 9-patch did you consider creating your own custom Drawable? pskink -- 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: Creating 9-patch Images on Device
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 psk...@gmail.com wrote: On Apr 4, 4:44 am, Matt M matthew.mag...@gmail.com 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 the most efficient method, however if there is a way to detect orientation change in a home screen widget I would certainly accept that as the next best thing. Although I have yet to find how to detect orientation in an AppWidgetProvider. Matt. Matt, Instead of creating 9-patch did you consider creating your own custom Drawable? pskink -- 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] Undocumented manifest tag
Looking through the OS source, I'm seeing places were the tag original-package android:name=[some.package] / is included as a child of manifest/. 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 using it? - Brill Pappin -- 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