[android-beginners] Re: How to make a child activity?
thanks, I feel a bit over complicate and bug-prone to manage views manually via setContentView, so I simply changed the architecture, putting the common classes of interest in a singleton (luckily this solution fits with my app design). This way I can decouple the activities and keep a common business class, leaving Android manage the views. On 15 Ott, 20:45, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: If you are more specific about what the 3+ buttons are supposed to do, we may be able to suggest alternatives. To answer your question, setContentView is needed with ActivityGroup. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. P.S. You can only make a child activity when a mommy activity and a daddy activity love each other very much enough to get married first. On Oct 15, 12:50 am, vchris80 vuc...@gmail.com wrote: hi james, thanx for reply. I try to explain what I want to achieve. It is actually very simple, but maybe I am walking on the wrong path since I think in the Windows way other than in the Android way :) My app is a window with 3 buttons (can't use tab since the buttons will increase in the future and since this is a porting from other platform and I have to follow the same UI guidelines as far as possible). Each button launch an activity and needs a reference to the main activity (parent) in order to use some common utility classes. I thought to do so by implementing the main activity as an ActivityGroup (thank to you first suggestion) and launch each child activity by getLocalActivityManager().startActivity() as I said in the previous post. But, as said, this doesn't update the screen with the new activity view. I have to explicitly call setContentView and put the child activity view (obtained by getDecorView()). Is this the right way or am I doing a mess? Then, when I finish() the child I restore the old view. On 14 Ott, 20:50, James Yum j...@google.com wrote: Hi, I'm still not sure what you're trying to achieve. Are you really trying to embed an activity within another? You can look at the TabActivity source for a pretty clean example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... Cheers, James On Wed, Oct 14, 2009 at 1:31 AM, vchris80 vuc...@gmail.com wrote: thank for your reply, but I still have some troubles: now I have my main activiy been a ActivityGroup and the child activity been a simple Activity. I start the child with this code: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class); getLocalActivityManager().startActivity(and.mypackage.ChildActivity, startIntent); this way, in the onCreate of the child activity, I can get the parent and the activity results child of something by calling isChild() method. Fine. But the screen actually doesn't appear. The documentation of startActivity of LocalActivityManager says that The caller needs to take care of adding this window to a view hierarchy, but I can't figure out how to do that. I watched the WindowManager for a suitable method but with no luck. On 13 Ott, 19:09, James Yum j...@google.com wrote: Hi, Those are meant for an ActivityGroup and its embedded activities, for example a TabActivity. What you might want to look into, is this introduction on opening screens (activities): http://developer.android.com/guide/appendix/faq/commontasks.html#open... Cheers, James On Tue, Oct 13, 2009 at 7:25 AM, vchris80 vuc...@gmail.com wrote: Hi all, I have a simple question: how I make an activity that is child of another? I use this code to start an activity from another: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class); startActivity(startIntent); but on the onCreate method of ChildActivity, if I watch for getParent () I get null, and if I ask for isChild() I get false,... so what I miss? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems with WakeLock
Occurs on both emu (the 1.6 one) and a HTC Hero (running latest rom which is a 1.5 one). SDK is the latest using the 1.5 API. The finish is in a onClick handler (allowTapToClose is a private member) public void onClick(View v) { if (allowTapToClose) { setResult(RESULT_OK); finish(); } } out side of the calls posted it doesn't really do very much it's just a display;ay at the moment. On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Could you please post the rest of your code - or at least the portion where you call finish. I can't reproduce your problem with the information that is present. Also, what version of the SDK are you using and where are you seeing this problem..on a device (which one) or the emulator (which platform) ? Thanks, Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote: I am using a PowerManager.WakeLock to lock to stop the screen auto diming after a period of non use. This works fine up until I try to release the lock. private void aquireBacklightLock() { PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); mWakeLock = pm.newWakeLock (PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag); mWakeLock.acquire(); } private void releaseBacklightLock() { if (mWakeLock != null) { mWakeLock.release(); } } The aquireBacklightLock is called when the activity is created or resumed. releaseBacklightLock is called in the onPause. However, if I exit the app (I call finish) I get a force close a few seconds later. The logcat is saying WakeLock finalized while still held. Where am I going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] broken link in icons template download
The README.txt file shipped with icon-templates-v1.0 and downloaded from [http://developer.android.com/guide/practices/ui_guidelines/ icon_design.html] includes the following invalid link: http://developer.android.com/guide/practices/ui_guidelines/icon_guidelines-v1.pdf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Unsubscribe
Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? Thanks David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Unsubscribe
David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to extract ICON from an APK file?
ahI've not been deep into linux, and i have no sense on how to handle linux gui, and I think it's pretty easy once you know how to hookup ICON interface. the aapt source is there and open :D I'll keep update when I'm doing research aapt tool. :D On 10月15日, 下午9时03分, Sean Hodges seanhodge...@googlemail.com wrote: Very interesting, thanks for keeping us up to date. Any chance your shell extension implementation might be ported to Linux? 2009/10/15 KK guo.jing...@gmail.com: actually, the code of extractioniconis inside aapt which is from base package of android source code. I create a .net dll to displayiconin explorer, for now, I easily include aapt.exe into resorce, extract it and run it when needed. I will transform the code into native .net language (hopefully)... try it if you are interested. http://code.google.com/p/apkshellext/ On 10月8日, 下午2时54分, KK guo.jing...@gmail.com wrote: Hi, I found the path is stored in resources.arsc, but where to indicates the index? BR, KK On Oct 7, 11:48 am, KK guo.jing...@gmail.com wrote: Sorry, I'm NOT using android API On Oct 7, 11:40 am, KK guo.jing...@gmail.com wrote: Actually I'm doing a shell extension for windows, showing theiconof apk files in windows, isn't it a good idea? :D so I want to know where theiconlocated in apk file, and I'm using android API... Thanks for your tip, at least I can go and see the source code of packagemanager.. BR, KK On Oct 7, 2:58 am, Justin Anderson janderson@gmail.com wrote: What exactly are you trying to do with thisicon? You can get theiconof an installed application on your phone via PackageManager.getActivityIcon() or PackageManager.getApplicationIcon(). http://developer.android.com/reference/android/content/pm/PackageMana... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Tue, Oct 6, 2009 at 12:50 AM, KK guo.jing...@gmail.com wrote: Hi, I'm trying to get theiconfrom an apk file, but I found not every app use the theicon.png under res/, and androidmanifest.xml is compiled inside apk, where I can get the position information? Thx BR, KK- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Unsubscribe
I have the same issue. Can the owner zap me off the list too? Sent from my iPhone On Oct 16, 2009, at 6:44 AM, David McNab rebi...@orcon.net.nz wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? Thanks David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
Please HELP -- RE: [android-beginners] Re: Unsubscribe
Dear all, I am still receiving messages after I tried to unsubscribe. Please send me an exact link that works to unsubscribe. Many Thanks...Mimi -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, October 16, 2009 6:46 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Unsubscribe
On Fri, Oct 16, 2009 at 2:55 PM, Danny W. Pimienta iph...@the16thletter.com wrote: I have the same issue. Can the owner zap me off the list too? The same instructions that Mark gave David apply to you as well. Click on this link: http://groups.google.com/group/android-beginners?hl=en Click on the Edit my membership link on the right hand side, and then press the unsubscribe button. Sent from my iPhone Three cheers for Danny's iPhone :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Unsubscribe
There is no such option, I joined through the e-mail on the Android Developers group. I never joined the actual group so the unsub link is my only way out the list which doesn't work. Original Message Subject: [android-beginners] Re: Unsubscribe From: Sean Hodges seanhodge...@googlemail.com Date: Fri, October 16, 2009 7:03 am To: android-beginners@googlegroups.com On Fri, Oct 16, 2009 at 2:55 PM, Danny W. Pimienta iph...@the16thletter.com wrote: I have the same issue. Can the owner zap me off the list too? The same instructions that Mark gave David apply to you as well. Click on this link: http://groups.google.com/group/android-beginners?hl=en Click on the "Edit my membership" link on the right hand side, and then press the "unsubscribe" button. Sent from my iPhone Three cheers for Danny's iPhone :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Reading/Decoding bar code stored in resources
Wahib, I will try out a few things and let you know. I spend 2 days in a week on this one that is why there is delay in my replies..Sorry for that. Is it possible for you to send your code to try a few things with it? I will keep you posted. Thanks, Abhishek On Oct 14, 7:38 pm, wahib haq wahib.t...@gmail.com wrote: feels good to see your reply. Its just an assignment for me. yes i am stuck with part 1. In the start i tried a lot with camera stuff and searched for source codes to display camera preview and take snap. I was successful with getting camera preview but either the image was not saved or the image taken was of very small size like thumbnail. so then i thought about using the built-in camera app. Then after few days of research i able to call the camera app as i click a button in my custom app. but now the issue is after taking snap i want to run my decode function.But i dont know how to exit the camera preview and call my decode() function:S so its here i am stuck with. I have posted it and i'll post it again. it wud be great if you could help me. Regards, wahib On 10/14/09,Abhishekabhishek.moh...@gmail.com wrote: Wahib.. sorry for the mistake in your name. Thanks for pointing out. 3 phases of my app 1) Scan picture(bar code) from camera store 2) Decode the barcode 3.) Search the product information and display. I am done with Part 2.. I think you are also working on same application if I am not wrong. Now I will concentrate on Part 1. Where are you stuck in Part1? What is the error if any? Please let me know. I will also keep you posted. Thanks, Abhishek On Oct 9, 10:36 pm, wahib haq wahib.t...@gmail.com wrote: You are welcome. Btw my name is wahib :) How do u intend to use this barcode code with camera thing? are you using your own camera preview code or calling built in camera app intent?? I am just stuck with this phase .. i hope its the last thing. Regards, wahib On 10/10/09,Abhishekabhishek.moh...@gmail.com wrote: Hey Wahid, Same code worked for me. Multiformatreader can read QR codes. Thanks a lot for help. Abhishek On Oct 9, 9:11 am,Abhishekabhishek.moh...@gmail.com wrote: Wahid, Thanks a lot brother. Is it possible for you to send you activity file to me onabhishek.moh...@gmail.com? I will keep you posted about my progress on this application. Abhishek On Oct 7, 7:42 pm, wahib haq wahib.t...@gmail.com wrote: hiabhishek!! I am a newbie and my first initiative is also building a simple barcode decoding module. I dont have a android phone so i have to go on a different path to do this barcode app thing. :S can you plz guide me what to be on right side of BufferedImage myImage = ... ?? I am using this code I have imported these ... import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.widget.TextView; import com.google.zxing.MonochromeBitmapSource; import com.google.zxing.MultiFormatReader; import com.google.zxing.Reader; import com.google.zxing.ReaderException; import com.google.zxing.client.androidtest.*; import com.google.zxing.common.BaseMonochromeBitmapSource; Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.bar5); Bitmap bitmap1 = BitmapFactory.decodeFile(file://sdcard/DCIM/Camera/2009-10-04 21.31.02.jpg); MultiFormatReader reader1=new MultiFormatReader();//For all barcode formats try { result=reader1.decode(new RGBMonochromeBitmapSource(bitmap)); tv.setText(result.getText()); } catch (Exception e) { tv.setText(Error occured !!); } } // I have tried it with reading bmp and jpeg image from pasting in res/drawable folder and it works fine with 1D barcode. Its not working with 2D and i dont know how to do it though multiformat i guess means it shud support 2D as well. Well this will solve ur problem. I also tried to read it with a sdcard image coz after all it has to fetch from the image taken by camera. but i dont have a camera and unable to push image in gallery after lots of tries so it still undone. Share anything else you cum to know abt barcode decoding task. Regards, wahib On 10/6/09,Abhishekabhishek.moh...@gmail.com wrote: Hello All, I am writing an application to scan a bar code. As a small module of it I am trying to decode the bar code form the image file stored as resource. (R.raw.bc02) where bc02.jpg is my bar code image file. I am usinghttp://code.google.com/p/zxing/wiki/DeveloperNotestowrite a program for decoding. I am stuck up at following step: i.e. reading the image as bufferedImage BufferedImage myImage = ...;
[android-beginners] Re: Unsubscribe
If the signature of the group text said the correct e-mail it might work better for people. Note the second – should be a + sign. Mike To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of iph...@the16thletter.com Sent: 16 October 2009 15:12 To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe There is no such option, I joined through the e-mail on the Android Developers group. I never joined the actual group so the unsub link is my only way out the list which doesn't work. Original Message Subject: [android-beginners] Re: Unsubscribe From: Sean Hodges seanhodge...@googlemail.com Date: Fri, October 16, 2009 7:03 am To: android-beginners@googlegroups.com On Fri, Oct 16, 2009 at 2:55 PM, Danny W. Pimienta iph...@the16thletter.com wrote: I have the same issue. Can the owner zap me off the list too? The same instructions that Mark gave David apply to you as well. Click on this link: http://groups.google.com/group/android-beginners?hl=en Click on the Edit my membership link on the right hand side, and then press the unsubscribe button. Sent from my iPhone Three cheers for Danny's iPhone :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Exception Activity Not Found
Hello boys, I need to activate the synchronization, I'm writing this: try { Intent syn=new Intent(android.provider.Settings.ACTION_SYNC_SETTINGS); startActivity(syn); } catch(Exception ex) {} When I running the application and click on the button, I receive this type of exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.SyncSettings}; have you declared this activity in your AndroidManifest.xml? What is a problem?? Can yuo help me? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
Re: Please HELP -- RE: [android-beginners] Re: Unsubscribe
Seriously? You have already been given the link: 1) http://groups.google.com/group/android-beginners 2) Sign in with your gmail account 3) Click Edit My Membership 4) Click Unsubscribe -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Oct 16, 2009 at 8:01 AM, Mimi Tam mimik...@gmail.com wrote: Dear all, I am still receiving messages after I tried to unsubscribe. Please send me an exact link that works to unsubscribe. Many Thanks...Mimi -Original Message- From: android-beginners@googlegroups.com [mailto: android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, October 16, 2009 6:46 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Exception Activity Not Found
Is the activity declared in your manifest? If you are not sure, post the contents of your AndroidManifest for this application. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of mist3r0 Sent: Friday, October 16, 2009 11:00 AM To: Android Beginners Subject: [android-beginners] Exception Activity Not Found Hello boys, I need to activate the synchronization, I'm writing this: try { Intent syn=new Intent(android.provider.Settings.ACTION_SYNC_SETTINGS); startActivity(syn); } catch(Exception ex) {} When I running the application and click on the button, I receive this type of exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.SyncSettings}; have you declared this activity in your AndroidManifest.xml? What is a problem?? Can yuo help me? No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems with WakeLock
Ok. I was able to reproduce the problem, but it happened only twice ( I must have tried it about 12~15 times). I also found this discussion thread . http://groups.google.com/group/android-developers/browse_thread/thread/a9c4c2fd37f8f6a6 I assume you have a reference to mWakeLock object, I do in my test program. Seems like a timing issue. The GC kicks in before the PowerManagerService is able to service the release of the WakeLock. Maybe one of the Android Framework Engineers would like to reply to this one :) Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 16, 1:43 am, Chris themaninthesuitc...@googlemail.com wrote: Occurs on both emu (the 1.6 one) and a HTC Hero (running latest rom which is a 1.5 one). SDK is the latest using the 1.5 API. The finish is in a onClick handler (allowTapToClose is a private member) public void onClick(View v) { if (allowTapToClose) { setResult(RESULT_OK); finish(); } } out side of the calls posted it doesn't really do very much it's just a display;ay at the moment. On 15 Oct, 18:13, Balwinder Kaur (T-Mobile USA) balwinder.k...@t- mobile.com wrote: Could you please post the rest of your code - or at least the portion where you call finish. I can't reproduce your problem with the information that is present. Also, what version of the SDK are you using and where are you seeing this problem..on a device (which one) or the emulator (which platform) ? Thanks, Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 15, 2:51 am, Chris themaninthesuitc...@googlemail.com wrote: I am using a PowerManager.WakeLock to lock to stop the screen auto diming after a period of non use. This works fine up until I try to release the lock. private void aquireBacklightLock() { PowerManager pm = (PowerManager) getSystemService (Context.POWER_SERVICE); mWakeLock = pm.newWakeLock (PowerManager.SCREEN_BRIGHT_WAKE_LOCK, mTag); mWakeLock.acquire(); } private void releaseBacklightLock() { if (mWakeLock != null) { mWakeLock.release(); } } The aquireBacklightLock is called when the activity is created or resumed. releaseBacklightLock is called in the onPause. However, if I exit the app (I call finish) I get a force close a few seconds later. The logcat is saying WakeLock finalized while still held. Where am I going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: It there a bug in the1.6 Emulators in landscape mode ?
ctrl-F12 does display the emulator screen in the landscape mode. i just tried the same and it works fine On Oct 15, 11:56 pm, Nitin67 nitin6...@gmail.com wrote: Hello, I have started the QVGA and WVGA800 emulators from Eclipse. I am using Windows XP. I pressed Ctrl-F12 to put them in landscape mode. Then tried to bring up the Android keyboard, but it will not popup. This is preventing me from testing my own input method. Can someone verify if they also have this problem or is it just my setup ? Thanks ! Nitin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Which phone to use for developer?
Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhd http://www.mysql.cc c...@mysql.cc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Can we develop android apps in C or C++?
I am very new to android and also for JAVA. Untill now i am working on C. Is there any way to develop the Android apps on C or C++. Please let me know, whether it is possible or not. Nothing can stop you from developing applications using NDK in C++ for Android. However, from the NDK page[1]- The NDK includes a set of cross-toolchains (compilers, linkers, etc..) that can generate native ARM binaries on Linux, OS X, and Windows (with Cygwin) platforms. It provides a set of system headers for stable native APIs that are guaranteed to be supported in all later releases of the platform: libc (C library) headers libm (math library) headers JNI interface headers libz (Zlib compression) headers liblog (Android logging) header A Minimal set of headers for C++ support The NDK also provides a build system that lets you work efficiently with your sources, without having to handle the toolchain/platform/CPU/ABI details. You create very short build files to describe which sources to compile and which Android application will use them — the build system compiles the sources and places the shared libraries directly in your application project. I can think of several libraries that are missing here - Graphics(OpenGLES), UI, Concurrency and so on. Unless you have significant time/money/resource at your disposal, I would recommend you to stick with Java SDK for developing applications that run on Android-capable phone. Having said that though, I'd use the NDK _if_ I had to say develop my own shared libraries, wrappers for various other native libs and so on.. Basically anything you want to hook into the system. What would be awesome for NDK is to include some tiny port of STL and Boost subset. _This_ would be awesome. [1] http://developer.android.com/sdk/ndk/1.5_r1/index.html -- Regards, Ishwor Gurung --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Problems importing Notepad Tutorial projects with Fedora Eclipse 3.4.2, ADT plugin 0.9.1
I think you need to specify the versionCode and versionName in the NotePadv1 Manifest... the following addition worked for me: Changed manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.demo.notepad1 To manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.demo.notepad1 android:versionCode=1 android:versionName=1.0 On Sep 14, 3:55 pm, Anthony anthonyhorto...@gmail.com wrote: Hi, I've installed the Android SDK (1.5 r3), Eclipse (Fedora Eclipse 3.4.2), the ADT DDMS Eclipse plugins (0.9.1.v200905011822-1621), and successfully worked my way through the Hello World Tutorial. However I'm not able to get very far into the Notepad Tutorial because I'm not able to properly import the project files. No problems downloading the ZIP archive and extracting the files to sub-directories of my Eclipse workspace directory, however I'm then unable to open them as Android projects in Eclipse. The Notepad Tutorial instructs me to: 1. Start a new Android Project by clicking File New Android Project. 2. In the New Android Project dialog, select Create project from existing source. 3. Click Browse and navigate to where you copied the NotepadCodeLab (downloaded during setup) and select Notepadv1. This is where I hit a problem, as with my combination of ADT plugins and Eclipse version the New Android Project dialogue doesn't have a 'Browse' button or any other way to select a path for the creation of a project from existing source! All I get is an error stating AndroidManifest.xml not found in samples. and no way to proceed any further. As that was a dead end I tried to import Notepadv1 as a General Project and use the Android Tools to convert it to an Android project afterwards. The general project dialogue at least gives me the option of selecting the path to the Notepadv1 project directory so I'm able to create the first project, however when I then right click and select Android Tools Convert to Android Project I get an 'Problem Occurred' dialogue windows which tells me that 'Convert Project' has encountered a problem. Notepadv1 does not exist. The Details button doesn't give me any details. The project now appears as an Android project, but fails to build after a clean or a modification to the files. The Android ADT error in the Problems tab is 'Failed to get output folder!'. If I try Android Tools FIx Project Properties I get the same error dialogue as with Convert Project. I've search these groups, and the web in general, and wasn't able to come up with any solutions to my problems with what really ought to be straightforward. Can anyone give me some pointers as to what is going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] having a newbie issue with my app
I'm trying to run some simple code to access a database and populate TextViews on the the screen with the data that they return...and it works great!...except when the activity is put into the background and is eventually killed, then reopened, the TextViews all show their default states prior to the code in my onCreate. So i basically have a blank screen. The only way to get them to repopulate is by navigating back to a splash screen that allows you to go back into the activity. I've tried moving the code that populates those fields into the onResume to no avail. Should I be using a SharedPreference,Editor for this? Are there any other options that will allow me to keep the values in my TextViews when the activity is resumed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] converting javac to android
I have a Java program. I use javac to complie when you do java - version it should tell you have installed in your dos prompt. I need to convert this program to ANDROID program. How do i go about? Is there any utiltiy or free utility in internet to do or ahas anyone down or can suggest to help us to do it. Nancy Forbes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] hi
ive tried to post a couple times now to this group and i havent seen my posts show up. Im guessing the moderators havent approved me yet? I just joined yesterday. How long will it normally take? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: horde software at a client Level -any suggestions Nancy
Hello I have 2 questions to ask you I understand you were using horde software for dalecarnegie. I understand we can use through web based. Do we need to install something to do it if someone is going to start using HORDE? How would we do this? How to convert Java to Android program? question 1- here are 2 small java programs:zoneaandd.java and clock.java. To compile we use javac *.java to run java ZonesAndIDs and java clocke. How to convert the above program to in to simple Android program? Thanks Nancy -- Forbes and Associates - Web Design, Web Redesign, Web Updates, Logo, business card , brochure design and all kinds of web marketing. If your website can not be found in the search engines or is not getting the results you want to SEE, please talk to me l www.forbesandassociates.com l na...@forbesandassociates.com l Office 407 657 9069 l --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android Theme Widget wanted (For mAPPn's Home Alternative Application - aHome)
Hi there, My name is Brian and I am the Operation Manager of mAPPn, a mobile application and software provider based in Southern California. I am posting the message here looking to potentially partnerships with Android designers and developers. In short, we have had great success on the Android platform with very successful applications. Our most prominent, titled aHome, gained tremendous popularity amongst users and even caught the attention of T- Mobile USA, who then proceeded to form a partnership with our company for their successful G1 and MyTouch mobile devices. Together with T- Mobile, we have created FreshFace, a home-shell customization application that allows users to customize their background, icons, and widgets. All of our aHome themes are very popular in Android market. Check out the latest theme, Yan yan theme by http://www.cyrket.com/package/com.mappn.ahome.theme.yanyan. You also can browse the ahome themes in Market via your android phone. Developing ourselves as the leading android content provider, we are looking to partner with designers and developers who can create unique and creative themes, widgets for our aHome product. We will provide the development guide. So if you are interested and would like more information on potential opportunities in designing themes for our platform, please feel free to contact me at bri...@mappn.com. In the meantime, please visit our website at www.mappn.com to learn more about who we are. Thanks and I look forward to hearing from you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] hi
hello i'm in iran , how can i use gps on my phone(hero) without internet? please help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: seriously, how can I unsubscribe?
How do you unsubscribe if you are not subscribed with a gmail account? On Oct 14, 2009, at 1:05 PM, Mark Murphy wrote: David Meyer wrote: android-beginners-unsubscr...@googlegroups.com mailto:android-beginners-unsubscr...@googlegroups.com bounces and the list owners aren't responding. From every email's sig: For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en There, you can unsubscribe, change your email preferences (e.g., digest vs. individual messages, etc.). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Emulator starting problem
Hello everybody, When I try to run an android Hello world application, got an error message The procedure entry point freeaddrinfo could not be located in the dynamic link library WS2_32.DLL. Could anybody please help me out how to fix this problem? Thanks, Sridevi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to convert oid program? java programs:zoneaandd.java and clock.javato Android program?
How to convert Java to Android program? question 1- here are 2 small java programs:zoneaandd.java and clock.java. To compile we use javac *.java to run java ZonesAndIDs and java clocke. How to convert the above program to in to simple Android program? -- Forbes and Associates - Web Design, Web Redesign, Web Updates, Logo, business card , brochure design and all kinds of web marketing. If your website can not be found in the search engines or is not getting the results you want to SEE, please talk to me l www.forbesandassociates.com l na...@forbesandassociates.com l Office 407 657 9069 l --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] how to use information from phone
Hi, I am trying to read call logs from the phone. How can i read information regarding a call like #of minutes talked. This information is in the call logs when you click on a particular call log it displays information regarding it. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How can I sensor device read?
Hello. My device has accelometer. I just add driver in kernel. /sys/class/ accelometer. I don't know How can android read this sensor? To activate accelometer, where do I add the in platform code? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Android Charts
Hello there! I'm starting with android, and the app I'm developing is gonna need some charts. I've looked and did not find any chart API (there's java4less but its too poor to worth anything). First I thought I could use jfreechart, but it is entirely based on java.awt.image and that is not supported by android. Is there a chart api out there? or should I code the charts by hand (man I'm doomed) Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Error in the project, unable to track
Hi, I have an error somewhere in the code but i don't know were. There is just a cross on the project folder and nowhere else. And when i try to start it tells me to correct the error. The only thing that i see errors in are some wrong spellings according to eclipse. Thanks Calle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Help! I get this error message concerning the AVD
I get the same message, tried updating but there was now cange. content config.ini hw.lcd.density=240 skin.name=WVGA800 skin.path=platforms\android-1.6\skins\WVGA800 image.sysdir.1=platforms\android-1.6\images\ content myAvd.ini target=android-4 path=C:\Users\Stålmannen\.android\avd\myAvd.avd Have you figured out what was wrong with the other? On 2 Okt, 07:43, Xavier Ducrohet x...@android.com wrote: This is very strange. you could try to fix the config file with android updateavd--name name If that doesn't help can you send the file to me? xav On Wed, Sep 30, 2009 at 3:21 PM, PeterBrynte peter.bry...@gmail.com wrote: When trying to run my first attempt to an android app I get thiserror message concerning theAVD: [2009-09-30 23:57:00 - Emulator]emulator:ERROR: no search paths found in thisAVD'sconfiguration. [2009-09-30 23:57:00 - Emulator]Weird, theAVD'sconfig.ini file is malformed. Try re-creating it. [2009-09-30 23:57:00 - Emulator] contents of the config.ini-file are: skin.name=HVGA skin.path=platforms\android-1.5\skins\HVGA image.sysdir.2=platforms\android-1.5\images\ image.sysdir.1=add-ons\google_apis-3\images\ Please tell me, what is wrong ? Kind regards Peter Brynte -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Help! I get this error message concerning the AVD
I'm having the same issue. how can I locate the file, and how can I send it to you? I tried to recreate it multiple times, repair it using the command line and Eclipse's UI (same thing I guess). On Oct 2, 12:43 am, Xavier Ducrohet x...@android.com wrote: This is very strange. you could try to fix the config file with android update avd --name name If that doesn't help can you send the file to me? xav On Wed, Sep 30, 2009 at 3:21 PM, PeterBrynte peter.bry...@gmail.com wrote: When trying to run my first attempt to an android app I get this error message concerning the AVD: [2009-09-30 23:57:00 - Emulator]emulator: ERROR: no search paths found in this AVD's configuration. [2009-09-30 23:57:00 - Emulator]Weird, the AVD's config.ini file is malformed. Try re-creating it. [2009-09-30 23:57:00 - Emulator] contents of the config.ini-file are: skin.name=HVGA skin.path=platforms\android-1.5\skins\HVGA image.sysdir.2=platforms\android-1.5\images\ image.sysdir.1=add-ons\google_apis-3\images\ Please tell me, what is wrong ? Kind regards Peter Brynte -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Questions on building and running android source on Rooted G1
Hello, I've been working with a G1 (not an Android dev phone) that I've successfully rooted in the past but had wanted to do a work with building the system.img from source as I'm playing with with some of the framework libraries as well as apps. Along the way I've run into some strange problems with the network connectivity. I've gotten extremely close having built the system.image and flashed it onto the G1 but am unable to make/receive calls or SMS once I have done so. I've tried the radio updates from HTC for both Android 1.5 and 1.6, but while the rooted 1.6 system build I got from www.androidspin.com worked just great, but my (apparently?) successful build does not. The symptom is as follows: Going into Settings - Wireless controls - Mobile networks - Network operators and doing Search networks or Select automatically yields Error while searching for networks. and Your SIM card does not allow a connection to this network. I have tried this with both a T-Mobile and an ATT SIMs with the same result. In the process of trying to fix this, I updated to the latest code on the Android master branch only to have it fail to boot at all. This was a bit confusing as the code I'd use just last week (on or about Oct 7th) built installed but w/o working GSM network. My questions are: 1.) Should it be possible to take a rooted G1, build Android from source and have it working network and all? 2.) Would a failed image built of of master be a reportable bug? Does this happen often, or is it my own misfortune? 3.) Should I be looking at a specific combination of kernel/radio/ recover/bootloader in order to build and run a system.img from master or even donut/donut-release? Thanks, --Garrick West --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Intent is not properly returned through onActivityResult
I have 2 activities which I need to share data between. The data passes from the first (parent) activity to the child properly using the intent and unpacking the bundle in the child class. However when the child activity ends and onActivityResult() is called in the parent the returned intent is null. Here is a snippet of the code involved: // In parent class Parent.java /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); configureButtonFunctionality(); } private void configureButtonFunctionality() { Button b = (Button) findViewById(R.id.UpdateVelocityButton); b.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub launchAviationActivity(Activities.Velocity.ordinal()); } }); } private Intent setIntentDataForActivities(int activity) { currentVelocity = 123.0; // privately defined class member. Intent i = new Intent(this, Child.class); i.putExtra(Velocity, currentVelocity); return(i); } private void launchChildActivity(int a) { startActivityForResult(setIntentDataForActivities(a), a); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { /// Here is where the intent returns from the Child class but is null... / super.onActivityResult(requestCode, resultCode, intent); if(requestCode == Activities.Velocity.ordinal()) { currentVelocity = intent.getDoubleExtra(Velocity, 0.0); } } // In child class Child.java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = this.getIntent(); Bundle b = i.getExtras(); currentVelocity = b.getDouble(Velocity); // value is passed and received properly here. ... } private void closeActivity() { clearFields(); //Intent i = new Intent(); // Building the intent with either constructor does not make a difference in behavior Intent i = new Intent(this, Parent.class); i.putExtra(Velocity, currentVelocity); setResult(RESULT_OK, i); finish(); } I am new with Android and have ran out of explanations for this. Any assistance will be appreciated :). Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to convert oid program? java programs:zoneaandd.java and clock.javato Android program?
I understand you were using horde software for dalecarnegie. I understand we can use through web based. Do we need to install something to do it if someone is going to start using HORDE? How would we do this Forbes and Associates - Web Design, Web Redesign, Web Updates, Logo, business card , brochure design and all kinds of web marketing. If your website can not be found in the search engines or is not getting the results you want to SEE, please talk to me l www.forbesandassociates.com l na...@forbesandassociates.com l Office 407 657 9069 l --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] using a simpleCursorAdapter to bind data from a database to a spinner
Im trying to fill a spinner with data from a table. That part works fine. What i cant figure out is how to use the selection made through the spinner. if i use : String someString = (String) classSpin.getSelectedItem().toString(); i get some sort of SQL reference. Am i missing a step? Im new to both java and android so i hope this is something very obvious im missing. heres some of my code for the spinner: Cursor classCur = db.getClasses(); startManagingCursor(classCur); from = new String[]{DBAdapterStats2.KEY_CLASS}; to = new int[]{android.R.id.text1}; SimpleCursorAdapter classAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, classCur, from, to); classAdapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item); classSpin.setAdapter(classAdapter); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] ActionListener Graphics2D Object Canvas
Hi All, I wish to develop an application like a crossword puzzle. Is it possible for me to handle the each of the boxes in the puzzle individually, probably as an Object of Rectangle or something? Then I can add them into the canvas and let the canvas to draw it. One of the reason why I am doing this, I wish that I could add actionListener to each object individually, instead of having a actionListener on the whole screen, then I have to calculate which box that the user actually clicked on. Or I would be very grateful if someone can propose some different solution on my problems. My requirement: 1. A crossword puzzle like main screen 2. The program should be able to recognize which boxes I clicked 3. Each boxes can then be selected, and receive input, and update Thanks All --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Buidling Android Emulator from Source code (Android 1.6)
Hi Guys! I'll be grateful if you can list down a) the steps to build the Android Emulator (qemu) from the source code. b) the steps to build whole Android platform for Emulator. If the answers to above questions are already available in any old thread then please paste the link to the answers. Thanks in advance. Regards Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] How to convert Java to Android program?
question 1- here are 2 small java programs:zoneaandd.java and clock.java. To compile we use javac *.java to run java ZonesAndIDs and java clocke. How to convert the above program to in to simple Android program? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Error when starting the AVD
Get an error when i'm trying to start my AVD. emulator: ERROR: no search paths found in this AVD's configuration. Weird, the AVD's config.ini file is malformed. Try re-creating it. config.ini content hw.lcd.density=240 skin.name=WVGA800 skin.path=platforms\android-1.6\skins\WVGA800 image.sysdir.1=platforms\android-1.6\images\ myAvd.ini target=android-4 path=C:\Users\StÃ¥lmannen\.android\avd\myAvd.avd Don't now whats wrong. The strange letters in the path is a swedish letter, å. Can that be a problem? Regards Calle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] 2 O/S on same mobile?
I'm buying a phone (the acer neotouch (a.k.a the F1 or s200)) which has windows mobile 6.5 preinstalled. Is it possible to install the Android O/S onto the same phone and be able to choose which O/S to use whenever - similar to partitioning the hard drive on a pc with Windows and Ubuntu for example? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Help! I get this error message concerning the AVD
Hello all, yes it looks like there's a bug in the emulator where it can't deal with those characters in the path. To fix this you can override the location where all the android tools look for those files. create a system wide environment variable called ANDROID_SDK_HOME and containing a path that doesn't include those non ascci char. The android tools will create a .android folder in it, and the emulator will access it too. We'll see about fixing the emulator too. Xav On Wed, Oct 14, 2009 at 10:41 PM, andres andres...@gmail.com wrote: I'm having the same issue. how can I locate the file, and how can I send it to you? I tried to recreate it multiple times, repair it using the command line and Eclipse's UI (same thing I guess). On Oct 2, 12:43 am, Xavier Ducrohet x...@android.com wrote: This is very strange. you could try to fix the config file with android update avd --name name If that doesn't help can you send the file to me? xav On Wed, Sep 30, 2009 at 3:21 PM, PeterBrynte peter.bry...@gmail.com wrote: When trying to run my first attempt to an android app I get this error message concerning the AVD: [2009-09-30 23:57:00 - Emulator]emulator: ERROR: no search paths found in this AVD's configuration. [2009-09-30 23:57:00 - Emulator]Weird, the AVD's config.ini file is malformed. Try re-creating it. [2009-09-30 23:57:00 - Emulator] contents of the config.ini-file are: skin.name=HVGA skin.path=platforms\android-1.5\skins\HVGA image.sysdir.2=platforms\android-1.5\images\ image.sysdir.1=add-ons\google_apis-3\images\ Please tell me, what is wrong ? Kind regards Peter Brynte -- Xavier Ducrohet Android SDK Tech Lead Google Inc. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: converting javac to android
Get Eclipse and the latest Android plugin for eclipse. http://developer.android.com/sdk/1.6_r1/index.html -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Nancy Sent: Wednesday, October 14, 2009 1:46 PM To: Android Beginners Subject: [android-beginners] converting javac to android I have a Java program. I use javac to complie when you do java - version it should tell you have installed in your dos prompt. I need to convert this program to ANDROID program. How do i go about? Is there any utiltiy or free utility in internet to do or ahas anyone down or can suggest to help us to do it. Nancy Forbes No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] kml
I have read the KML files in a listview how can I do thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Error in the project, unable to track
Can you please provide more details, specific wording if possible for the error? -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Carl Sent: Friday, October 16, 2009 4:31 AM To: Android Beginners Subject: [android-beginners] Error in the project, unable to track Hi, I have an error somewhere in the code but i don't know were. There is just a cross on the project folder and nowhere else. And when i try to start it tells me to correct the error. The only thing that i see errors in are some wrong spellings according to eclipse. Thanks Calle No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Unsubscribe
On Fri, 2009-10-16 at 06:45 -0400, Mark Murphy wrote: For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. Can't unsubscribe - the page doesn't show me as subscribed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: hi
Try wifi connection if data connection is not available. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of mehdi Sent: Wednesday, October 14, 2009 5:46 PM To: Android Beginners Subject: [android-beginners] hi hello i'm in iran , how can i use gps on my phone(hero) without internet? please help me. No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Computer.
Why? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Oct 14, 2009 at 8:28 PM, kami kamashkh...@gmail.com wrote: This site is dedicated to computers.It has lots and lots about computer related articles. Please visit.http://yourstuffs.com/main/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Questions on building and running android source on Rooted G1
This forum is for SDK applications... not android source. Your questions should be asked in the Android Developers group. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Oct 15, 2009 at 9:44 PM, garrick.w...@gmail.com garrick.w...@gmail.com wrote: Hello, I've been working with a G1 (not an Android dev phone) that I've successfully rooted in the past but had wanted to do a work with building the system.img from source as I'm playing with with some of the framework libraries as well as apps. Along the way I've run into some strange problems with the network connectivity. I've gotten extremely close having built the system.image and flashed it onto the G1 but am unable to make/receive calls or SMS once I have done so. I've tried the radio updates from HTC for both Android 1.5 and 1.6, but while the rooted 1.6 system build I got from www.androidspin.com worked just great, but my (apparently?) successful build does not. The symptom is as follows: Going into Settings - Wireless controls - Mobile networks - Network operators and doing Search networks or Select automatically yields Error while searching for networks. and Your SIM card does not allow a connection to this network. I have tried this with both a T-Mobile and an ATT SIMs with the same result. In the process of trying to fix this, I updated to the latest code on the Android master branch only to have it fail to boot at all. This was a bit confusing as the code I'd use just last week (on or about Oct 7th) built installed but w/o working GSM network. My questions are: 1.) Should it be possible to take a rooted G1, build Android from source and have it working network and all? 2.) Would a failed image built of of master be a reportable bug? Does this happen often, or is it my own misfortune? 3.) Should I be looking at a specific combination of kernel/radio/ recover/bootloader in order to build and run a system.img from master or even donut/donut-release? Thanks, --Garrick West --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
Re: Please HELP -- RE: [android-beginners] Re: Unsubscribe
On Fri, 2009-10-16 at 10:42 -0600, Justin Anderson wrote: Seriously? You have already been given the link: 1) http://groups.google.com/group/android-beginners 2) Sign in with your gmail account 3) Click Edit My Membership Did that, but android-beginners doesn't show on my list of groups. Seems I'm not the only one suffering from inescapable phantom subscription. 4) Click Unsubscribe How can I click 'unsubscribe' when the group won't even show me as subscribed? David -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Oct 16, 2009 at 8:01 AM, Mimi Tam mimik...@gmail.com wrote: Dear all, I am still receiving messages after I tried to unsubscribe. Please send me an exact link that works to unsubscribe. Many Thanks...Mimi -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, October 16, 2009 6:46 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Buidling Android Emulator from Source code (Android 1.6)
This group is for questions aboud SDK applications. Your question should be posted in the Android Developers group. -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Thu, Oct 15, 2009 at 9:45 AM, Leo sajidh...@gmail.com wrote: Hi Guys! I'll be grateful if you can list down a) the steps to build the Android Emulator (qemu) from the source code. b) the steps to build whole Android platform for Emulator. If the answers to above questions are already available in any old thread then please paste the link to the answers. Thanks in advance. Regards Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] listview kml
I have read the KML files in a listview how can I do thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Computer.
Cuz now they can send spam. On Fri, Oct 16, 2009 at 3:05 PM, Justin Anderson janderson@gmail.com wrote: Why? -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Wed, Oct 14, 2009 at 8:28 PM, kami kamashkh...@gmail.com wrote: This site is dedicated to computers.It has lots and lots about computer related articles. Please visit.http://yourstuffs.com/main/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Intent is not properly returned through onActivityResult
It doesn't appear that closeActivity() is ever being called -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Oct 16, 2009 at 9:22 AM, mellamanjefe mellamanj...@gmail.comwrote: I have 2 activities which I need to share data between. The data passes from the first (parent) activity to the child properly using the intent and unpacking the bundle in the child class. However when the child activity ends and onActivityResult() is called in the parent the returned intent is null. Here is a snippet of the code involved: // In parent class Parent.java /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); configureButtonFunctionality(); } private void configureButtonFunctionality() { Button b = (Button) findViewById(R.id.UpdateVelocityButton); b.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub launchAviationActivity(Activities.Velocity.ordinal()); } }); } private Intent setIntentDataForActivities(int activity) { currentVelocity = 123.0; // privately defined class member. Intent i = new Intent(this, Child.class); i.putExtra(Velocity, currentVelocity); return(i); } private void launchChildActivity(int a) { startActivityForResult(setIntentDataForActivities(a), a); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { /// Here is where the intent returns from the Child class but is null... / super.onActivityResult(requestCode, resultCode, intent); if(requestCode == Activities.Velocity.ordinal()) { currentVelocity = intent.getDoubleExtra(Velocity, 0.0); } } // In child class Child.java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = this.getIntent(); Bundle b = i.getExtras(); currentVelocity = b.getDouble(Velocity); // value is passed and received properly here. ... } private void closeActivity() { clearFields(); //Intent i = new Intent(); // Building the intent with either constructor does not make a difference in behavior Intent i = new Intent(this, Parent.class); i.putExtra(Velocity, currentVelocity); setResult(RESULT_OK, i); finish(); } I am new with Android and have ran out of explanations for this. Any assistance will be appreciated :). Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Which phone to use for developer?
Best advice I can give is to make sure any phone you want to buy has: a) The Google Market Place Application (and also the other Google Apps) and b) From the font menu button you can get to: [Menu] Settings Applications Development USB Debugging Stay awake Allow mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56 am, kengheng kengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhdhttp://www.mysql.cc c...@mysql.cc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Exception Activity Not Found
This code is contained inside an activity (UseModes), and this activity is declared in the manifest, for this reason I don't understand the exception that is thrown. Here is the manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=android.usemode android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.UseModes 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:name=.Ufficioptions android:label=@string/ app_name intent-filter action android:name=android.intent.action.MENUFFICIO / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.CasaOptions android:label=@string/ app_name intent-filter action android:name=android.intent.action.MENUCASA / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.AlloffOption android:label=@string/ app_name intent-filter action android:name=android.intent.action.MENUALLOFF / category android:name=android.intent.category.DEFAULT / /intent-filter /activity activity android:name=.StreetOption android:label=@string/ app_name intent-filter action android:name=android.intent.action.MENUSTREET / category android:name=android.intent.category.DEFAULT / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / uses-permission android:name=android.premission.ACCESS_FINE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_WIFI_STATE/uses-permission uses-permission android:name=android.permission.CHANGE_WIFI_STATE/uses-permission uses-permission android:name=android.permission.WAKE_LOCK/uses- permission /manifest On Oct 16, 7:50 pm, tinyang tiny...@earthlink.net wrote: Is the activity declared in your manifest? If you are not sure, post the contents of your AndroidManifest for this application. -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of mist3r0 Sent: Friday, October 16, 2009 11:00 AM To: Android Beginners Subject: [android-beginners] Exception Activity Not Found Hello boys, I need to activate the synchronization, I'm writing this: try { Intent syn=new Intent(android.provider.Settings.ACTION_SYNC_SETTINGS); startActivity(syn); } catch(Exception ex) {} When I running the application and click on the button, I receive this type of exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/ com.android.settings.SyncSettings}; have you declared this activity in your AndroidManifest.xml? What is a problem?? Can yuo help me? No virus found in this incoming message. Checked by AVG -http://www.avg.com Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009 8:39 PM- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Which phone to use for developer?
Do all phones have the Google Maps API add-on library? How to find out which phones have that? On Oct 16, 12:50 pm, RichardC richard.crit...@googlemail.com wrote: Best advice I can give is to make sure any phone you want to buy has: a) The Google Market Place Application (and also the other Google Apps) and b) From the font menu button you can get to: [Menu] Settings Applications Development USB Debugging Stay awake Allow mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56 am, kengheng kengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhdhttp://www.mysql.cc c...@mysql.cc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] UrgentHelp:Play Video file when accelerometer is triggered code error:
Hi All, MyTask: I want play a video file in media player or videoview when the device is being shaken(accelerometer triggers). 1. I'm able to get notification whenever accelerometer is triggered on the device using the following code separately. 2. And i'm able to play my video file from sdcard using the following code separately. I'm now integrating both to play my video file when the accelerometer has triggered(whether device moved or shaked or etc). But when it was working both the functionality separately, is not working when i integrated both code to work as per my MyTask. After integrating the code, i tested by shaking my device to observe starting video, but it throws error as The application has stopped unexpectedly. Please try again'. Can some one please look at my code below and suggest how do improve it and resolve it based on your experince and view? Integrated Code for both Accelerometer access and Playing Video when device is triggered accelerometer: [NOTE: The same code when i executed separately, worked fine for both cases(Accelerometer access and Playing Video)] @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // start motion detection sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE); boolean accelSupported = sensorMgr.registerListener(this, SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); if (!accelSupported) { // on accelerometer on this device sensorMgr.unregisterListener( this, SensorManager.SENSOR_ACCELEROMETER); } } protected void onPause() { if (sensorMgr != null) { sensorMgr.unregisterListener(this, SensorManager.SENSOR_ACCELEROMETER); sensorMgr = null; } super.onPause(); } public void onAccuracyChanged(int arg0, int arg1) { // TODO Auto-generated method stub } public void onSensorChanged(int sensor, float[] values) { Log.d(sensor, onSensorChanged: + sensor); if (sensor == SensorManager.SENSOR_ACCELEROMETER) { long curTime = System.currentTimeMillis(); // only allow one update every 100ms. if ((curTime - lastUpdate) 100) { long diffTime = (curTime - lastUpdate); lastUpdate = curTime; x = values[SensorManager.DATA_X]; y = values[SensorManager.DATA_Y]; z = values[SensorManager.DATA_Z]; float speed = Math.abs(x+y+z - last_x - last_y - last_z) / diffTime * 1; // WHICH MEANS ACCELEROMETER HAS TRIGGERED if (speed SHAKE_THRESHOLD enagaged==false) { enagaged=true; Log.d(sensor, shake detected w/ speed: + speed); // PLAY VIDEO FILE FROM SDCARD . getWindow().setFormat(PixelFormat.TRANSLUCENT); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); myVideo=(VideoView)findViewById(R.id.VideoView01); myVideo.setVideoPath(filename); // filename = file:///sdcard/myvideo.3gp mc=new MediaController(this); mc.setMediaPlayer(myVideo); myVideo.setMediaController(mc); myVideo.requestFocus(); } last_x = x; last_y = y; last_z = z; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
UPDATE from myself about this: I RESOLVED IT BY MYSELF BY REMOVING requestWindowFeature(Window.FEATURE_NO_TITLE); line. Now I have other queries too related to the same thing. 1. If i want to play my video always in Landscape mode, how to achieve this? 2. If i want to play a video file continuously(play video in looping) even after stopped one cycle, how to achieve it? 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? I tried many ways, couldn't be able to resolve the above issues. Could some one if have experience on this resolving it, please share your suggestions with me as i'm new to this development? --- On Sat, 10/17/09, Clave Yard calvetobediffic...@yahoo.com wrote: From: Clave Yard calvetobediffic...@yahoo.com Subject: [android-beginners] UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 2:05 AM Hi All, MyTask: I want play a video file in media player or videoview when the device is being shaken(accelerometer triggers). 1. I'm able to get notification whenever accelerometer is triggered on the device using the following code separately. 2. And i'm able to play my video file from sdcard using the following code separately. I'm now integrating both to play my video file when the accelerometer has triggered(whether device moved or shaked or etc). But when it was working both the functionality separately, is not working when i integrated both code to work as per my MyTask. After integrating the code, i tested by shaking my device to observe starting video, but it throws error as The application has stopped unexpectedly. Please try again'. Can some one please look at my code below and suggest how do improve it and resolve it based on your experince and view? Integrated Code for both Accelerometer access and Playing Video when device is triggered accelerometer: [NOTE: The same code when i executed separately, worked fine for both cases(Accelerometer access and Playing Video)] @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // start motion detection sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE); boolean accelSupported = sensorMgr.registerListener(this, SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); if (!accelSupported) { // on accelerometer on this device sensorMgr.unregisterListener( this, SensorManager.SENSOR_ACCELEROMETER); } } protected void onPause() { if (sensorMgr != null) { sensorMgr.unregisterListener(this, SensorManager.SENSOR_ACCELEROMETER); sensorMgr = null; } super.onPause(); } public void onAccuracyChanged(int arg0, int arg1) { // TODO Auto-generated method stub } public void onSensorChanged(int sensor, float[] values) { Log.d(sensor, onSensorChanged: + sensor); if (sensor == SensorManager.SENSOR_ACCELEROMETER) { long curTime = System.currentTimeMillis(); // only allow one update every 100ms. if ((curTime - lastUpdate) 100) { long diffTime = (curTime - lastUpdate); lastUpdate = curTime; x = values[SensorManager.DATA_X]; y = values[SensorManager.DATA_Y]; z = values[SensorManager.DATA_Z]; float speed = Math.abs(x+y+z - last_x - last_y - last_z) / diffTime * 1; // WHICH MEANS ACCELEROMETER HAS TRIGGERED if (speed SHAKE_THRESHOLD enagaged==false) { enagaged=true; Log.d(sensor, shake detected w/ speed: + speed); // PLAY VIDEO FILE FROM SDCARD . getWindow().setFormat(PixelFormat.TRANSLUCENT); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); myVideo=(VideoView)findViewById(R.id.VideoView01); myVideo.setVideoPath(filename); // filename = file:///sdcard/myvideo.3gp mc=new MediaController(this); mc.setMediaPlayer(myVideo); myVideo.setMediaController(mc); myVideo.requestFocus(); } last_x = x;
[android-beginners] Re: Which phone to use for developer?
i think it's safe to assume if it has google maps (the app) then it has the google SDK. On 10/16/09 1:34 PM, jotobjects wrote: Do all phones have the Google Maps API add-on library? How to find out which phones have that? On Oct 16, 12:50pm, RichardC richard.crit...@googlemail.com wrote: Best advice I can give is to make sure any phone you want to buy has: a) The Google Market Place Application (and also the other Google Apps) and b) From the font menu button you can get to: [Menu] Settings Applications Development USB Debugging Stay awake Allow mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56am, kengheng kengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhdhttp://www.mysql.cc c...@mysql.cc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~--- --
Re: Please HELP -- RE: [android-beginners] Re: Unsubscribe
The unsubscribe email address in the footer should be fixed now. Just email android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comto unsubscribe. Xav On Fri, Oct 16, 2009 at 12:20 PM, David McNab rebi...@orcon.net.nz wrote: On Fri, 2009-10-16 at 10:42 -0600, Justin Anderson wrote: Seriously? You have already been given the link: 1) http://groups.google.com/group/android-beginners 2) Sign in with your gmail account 3) Click Edit My Membership Did that, but android-beginners doesn't show on my list of groups. Seems I'm not the only one suffering from inescapable phantom subscription. 4) Click Unsubscribe How can I click 'unsubscribe' when the group won't even show me as subscribed? David -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Oct 16, 2009 at 8:01 AM, Mimi Tam mimik...@gmail.com wrote: Dear all, I am still receiving messages after I tried to unsubscribe. Please send me an exact link that works to unsubscribe. Many Thanks...Mimi -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, October 16, 2009 6:46 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Which phone to use for developer?
If you get an Android phone from T-Mobile, you should be safe :-) -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 16, 2:03 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com wrote: i think it's safe to assume if it has google maps (the app) then it has the google SDK. On 10/16/09 1:34 PM, jotobjects wrote: Do all phones have the Google Maps API add-on library? How to find out which phones have that? On Oct 16, 12:50 pm, RichardCrichard.crit...@googlemail.com wrote: Best advice I can give is to make sure any phone you want to buy has: a) The Google Market Place Application (and also the other Google Apps) and b) From the font menu button you can get to: [Menu] Settings Applications Development USB Debugging Stay awake Allow mock locations Making sure the above are are all present will give you a phone suitable for development of Android applicatons. -- RichardC On Oct 15, 8:56 am, kenghengkengh...@mysql.cc wrote: Hi All, I would like to check which phone to use for the android development ? Thanks. -- Best regards, KengHeng. Chan Mobile : +6-016-717-0273 SQL Technology Sdn Bhdhttp://www.mysql.cc c...@mysql.cc -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
Re: Please HELP -- RE: [android-beginners] Re: Unsubscribe
oh wait this is a different group. Use android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com I'll make sure the footer for this group gets fixed. On Fri, Oct 16, 2009 at 2:11 PM, Xavier Ducrohet x...@android.com wrote: The unsubscribe email address in the footer should be fixed now. Just email android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comto unsubscribe. Xav On Fri, Oct 16, 2009 at 12:20 PM, David McNab rebi...@orcon.net.nzwrote: On Fri, 2009-10-16 at 10:42 -0600, Justin Anderson wrote: Seriously? You have already been given the link: 1) http://groups.google.com/group/android-beginners 2) Sign in with your gmail account 3) Click Edit My Membership Did that, but android-beginners doesn't show on my list of groups. Seems I'm not the only one suffering from inescapable phantom subscription. 4) Click Unsubscribe How can I click 'unsubscribe' when the group won't even show me as subscribed? David -- There are only 10 types of people in the world... Those who know binary and those who don't. -- On Fri, Oct 16, 2009 at 8:01 AM, Mimi Tam mimik...@gmail.com wrote: Dear all, I am still receiving messages after I tried to unsubscribe. Please send me an exact link that works to unsubscribe. Many Thanks...Mimi -Original Message- From: android-beginners@googlegroups.com [mailto:android-beginn...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, October 16, 2009 6:46 AM To: android-beginners@googlegroups.com Subject: [android-beginners] Re: Unsubscribe David McNab wrote: Hi all I've been trying unsuccessfully to unsubscribe from this group. Messages I've sent to android-beginners-unsubscr...@googlegroups.com have been ignored, and my Google Groups list is no longer showing this group. But I'm still receiving messages. Can someone please unsubscribe me? snip For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en Click that link. Unsubscribe from there. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Beginning Android_ from Apress Now Available! -- Xavier Ducrohet Android SDK Tech Lead Google Inc. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Which phone to use for developer?
jotobjects wrote: Do all phones have the Google Maps API add-on library? How to find out which phones have that? The only production device I am aware of that doesn't have it is the ARCHOS 5 Android tablet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: 1. If i want to play my video always in Landscape mode, how to achieve this? Heave an android:screenOrientation=landscape attribute into your activity element in your manifest file. 2. If i want to play a video file continuously(play video in looping) even after stopped one cycle, how to achieve it? Reset and start up the MediaPlayer again. 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? Don't attach a MediaController. Or, better yet, don't use a VideoView -- use a MediaPlayer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Thanks a lot for your answers. I'll try that out. Regarding your last answer, 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? - Don't attach a MediaController. Or, better yet, don't use a VideoView -- use a MediaPlayer. - I tried initially MediaPlayer only by following the code below: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.a); mp.start(); . } But it did play only the sound, no video visible. Only i could able to hear the sound. I'm testing on Android 1.5 HTC G-1. Any suggestions please? -Prabakar. --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 2:48 AM Prabakar wrote: 1. If i want to play my video always in Landscape mode, how to achieve this? Heave an android:screenOrientation=landscape attribute into your activity element in your manifest file. 2. If i want to play a video file continuously(play video in looping) even after stopped one cycle, how to achieve it? Reset and start up the MediaPlayer again. 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? Don't attach a MediaController. Or, better yet, don't use a VideoView -- use a MediaPlayer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: Thanks a lot for your answers. I'll try that out. Regarding your last answer, 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? - Don't attach a MediaController. Or, better yet, don't use a VideoView -- use a MediaPlayer. - I tried initially MediaPlayer only by following the code below: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.a); mp.start(); . } But it did play only the sound, no video visible. Only i could able to hear the sound. I'm testing on Android 1.5 HTC G-1. Any suggestions please? Attach a SurfaceView. MediaPlayer does not have an intrinsic playback surface. For example: http://github.com/commonsguy/vidtry -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Error in the project, unable to track
You may see a tab near the bottom of Eclipse that called Problems. Click on that and see what it says. Also, in some cases Eclipse complains that you haven't auto-generated some files yet, such that if you run the application, it generates them and is happy. So try to run your app and see if it runs or if the Console tab shows any errors. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 16, 2:30 am, Carl cm.sandens...@gmail.com wrote: Hi, I have an error somewhere in the code but i don't know were. There is just a cross on the project folder and nowhere else. And when i try to start it tells me to correct the error. The only thing that i see errors in are some wrong spellings according to eclipse. Thanks Calle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: 2 O/S on same mobile?
I'm not aware of an Android port to that hardware. In general, to port an OS to a hardware platform, you need drivers for that hardware which are compatible with your OS. I'm guessing there are no Android drivers for the neotouch/F1/s200, but I could be wrong. As for running two operating systems on one phone, I don't believe that the needed virtual-device software is available yet. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 15, 8:32 am, P B belgrad...@googlemail.com wrote: I'm buying a phone (the acer neotouch (a.k.a the F1 or s200)) which has windows mobile 6.5 preinstalled. Is it possible to install the Android O/S onto the same phone and be able to choose which O/S to use whenever - similar to partitioning the hard drive on a pc with Windows and Ubuntu for example? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Thanks Mr.Mark. I have two questions here. 1. Do you mean with the current code MediaController on VideoView, i can't achieve removing built-in overlay controls? If i use MediaPlayer and SurfaceView, i'll be able to hide built-in overlay controls and add mine if i want? 2. I have gone through vidtry code a day ago, but got totally confused. I'm sorry, i'm new to this development. Is there any other way that i can see the code for only this particular task? 3. If i want to start the video player with my video file **Automatically, when the device starts(reboot), is it possible to do that on Android? Please advise. --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 3:02 AM Prabakar wrote: Thanks a lot for your answers. I'll try that out. Regarding your last answer, 3. if i want to remove built-in media player overlay controls such as 'Play', 'Rewind', 'Forward' buttons from the media player which i'm using to play a video file from sdcard on VideoView, how to achieve it? - Don't attach a MediaController. Or, better yet, don't use a VideoView -- use a MediaPlayer. - I tried initially MediaPlayer only by following the code below: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.a); mp.start(); . } But it did play only the sound, no video visible. Only i could able to hear the sound. I'm testing on Android 1.5 HTC G-1. Any suggestions please? Attach a SurfaceView. MediaPlayer does not have an intrinsic playback surface. For example: http://github.com/commonsguy/vidtry -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: 1. Do you mean with the current code MediaController on VideoView, i can't achieve removing built-in overlay controls? I have no idea. I have only used VideoView with the MediaController. Try not using MediaController with VideoView, and see if you like that better. If i use MediaPlayer and SurfaceView, i'll be able to hide built-in overlay controls and add mine if i want? There are no built-in overlay controls with MediaPlayer. If you want any controls, you have to implement them yourself. 2. I have gone through vidtry http://github.com/commonsguy/vidtry code a day ago, but got totally confused. I'm sorry, i'm new to this development. Is there any other way that i can see the code for only this particular task? If this particular task is having a MediaPlayer play back media with custom pop-up controls, vidtry is the code for this particular task. I have a half-dozen pages explaining vidtry in _The Busy Coder's Guide to *Advanced* Android Development_ (the current digital edition, not the print edition). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Ok thanks you Mark then. But i want to play my Video file from a raw folder which is available on my project, not from any URL or SDCard. Does vidtry code supports that also as well? --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 3:30 AM Prabakar wrote: 1. Do you mean with the current code MediaController on VideoView, i can't achieve removing built-in overlay controls? I have no idea. I have only used VideoView with the MediaController. Try not using MediaController with VideoView, and see if you like that better. If i use MediaPlayer and SurfaceView, i'll be able to hide built-in overlay controls and add mine if i want? There are no built-in overlay controls with MediaPlayer. If you want any controls, you have to implement them yourself. 2. I have gone through vidtry http://github.com/commonsguy/vidtry code a day ago, but got totally confused. I'm sorry, i'm new to this development. Is there any other way that i can see the code for only this particular task? If this particular task is having a MediaPlayer play back media with custom pop-up controls, vidtry is the code for this particular task. I have a half-dozen pages explaining vidtry in _The Busy Coder's Guide to *Advanced* Android Development_ (the current digital edition, not the print edition). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: Ok thanks you Mark then. But i want to play my Video file from a raw folder which is available on my project, not from any URL or SDCard. Does vidtry code supports that also as well? vidtry is designed to support entering URLs to streaming video. I am skeptical that putting video inside an APK file is necessarily a good idea, if your intention is for this APK to be downloaded onto existing Android devices. The APK size will be too large. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Size is not a problem for me as it is demo app. But i need to keep a video file in raw folder and play it. So how do i go ahead? In this case, can't i use vidtry code? Can i go ahead with VideoView itself and try hiding built-in overlay controls? Your advise is appreciated to me. thanks. --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 3:38 AM Prabakar wrote: Ok thanks you Mark then. But i want to play my Video file from a raw folder which is available on my project, not from any URL or SDCard. Does vidtry code supports that also as well? vidtry is designed to support entering URLs to streaming video. I am skeptical that putting video inside an APK file is necessarily a good idea, if your intention is for this APK to be downloaded onto existing Android devices. The APK size will be too large. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: Size is not a problem for me as it is demo app. But i need to keep a video file in raw folder and play it. So how do i go ahead? In this case, can't i use vidtry code? Can i go ahead with VideoView itself and try hiding built-in overlay controls? Your advise is appreciated to me. You were having problems with using MediaPlayer for playing back video. I pointed out vidtry as an example of using MediaPlayer for playing back video. You are cordially invited to try *not associating* a MediaController with your VideoView, to see if that works for you. I have not tried that and do not know if that will work. You are also welcome to look at vidtry as an example of using MediaPlayer for playing back video. However, vidtry does not play back video from a raw resource. Similarly, vidtry does not rescue kittens, clear out clogged drains, or serve as a tasty low-calorie dessert. (Though I suspect you can make some low-calorie 'droids out of marshmallows and food coloring. Mmmm...food coloring!) I have not tried playing back video from a raw resource, using either VideoView or MediaPlayer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Thanks Mark. Take care. --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 3:58 AM Prabakar wrote: Size is not a problem for me as it is demo app. But i need to keep a video file in raw folder and play it. So how do i go ahead? In this case, can't i use vidtry code? Can i go ahead with VideoView itself and try hiding built-in overlay controls? Your advise is appreciated to me. You were having problems with using MediaPlayer for playing back video. I pointed out vidtry as an example of using MediaPlayer for playing back video. You are cordially invited to try *not associating* a MediaController with your VideoView, to see if that works for you. I have not tried that and do not know if that will work. You are also welcome to look at vidtry as an example of using MediaPlayer for playing back video. However, vidtry does not play back video from a raw resource. Similarly, vidtry does not rescue kittens, clear out clogged drains, or serve as a tasty low-calorie dessert. (Though I suspect you can make some low-calorie 'droids out of marshmallows and food coloring. Mmmm...food coloring!) I have not tried playing back video from a raw resource, using either VideoView or MediaPlayer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
It is very very nice sample that you have provided in vidtry code. From there i picked of some of the code for my use. I am going to try SurfaceView and MediaPlayer combination. For that i made a code like below., SurfaceView v = (SurfaceView) findViewById(R.id.SurfaceView01); SurfaceHolder h = v.getHolder(); MediaPlayer mp = MediaPlayer.create(this, R.raw.myvideo); mp.setDisplay(h); mp.start(); I created a surfaceview in main.xml resource layout. But when i created a SurfaceView there, it is showing it in small rectangle. How to make it to full screen? Do i need add size in Properties of SurfaceView? And when i ran this code, it throws error as SurFaceView cannot be resolve to a type. I think Video is not running because size of the SurfaceView is small rectangle. --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 3:58 AM Prabakar wrote: Size is not a problem for me as it is demo app. But i need to keep a video file in raw folder and play it. So how do i go ahead? In this case, can't i use vidtry code? Can i go ahead with VideoView itself and try hiding built-in overlay controls? Your advise is appreciated to me. You were having problems with using MediaPlayer for playing back video. I pointed out vidtry as an example of using MediaPlayer for playing back video. You are cordially invited to try *not associating* a MediaController with your VideoView, to see if that works for you. I have not tried that and do not know if that will work. You are also welcome to look at vidtry as an example of using MediaPlayer for playing back video. However, vidtry does not play back video from a raw resource. Similarly, vidtry does not rescue kittens, clear out clogged drains, or serve as a tasty low-calorie dessert. (Though I suspect you can make some low-calorie 'droids out of marshmallows and food coloring. Mmmm...food coloring!) I have not tried playing back video from a raw resource, using either VideoView or MediaPlayer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
Prabakar wrote: It is very very nice sample that you have provided in vidtry code. From there i picked of some of the code for my use. I am going to try SurfaceView and MediaPlayer combination. For that i made a code like below., SurfaceView v = (SurfaceView) findViewById(R.id.SurfaceView01); SurfaceHolder h = v.getHolder(); MediaPlayer mp = MediaPlayer.create(this, R.raw.myvideo); mp.setDisplay(h); mp.start(); I created a surfaceview in main.xml resource layout. But when i created a SurfaceView there, it is showing it in small rectangle. How to make it to full screen? The same ways you make any widget take up the full screen. For example, make it be the only widget in the layout and set android:layout_width and android:layout_height each to be fill_parent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: How to make a child activity?
Another way you can use to share common data between activities is having it in the Application's instance. Just create your own Application - derived class, tell Android via manifest to use it and you can easily access it from any context. Say you have MyApplication extending Application, then (after specifying that in manifest) you can access your MyApplication's instance via (MyApplication) getApplication() call from any of your activities. Perhaps the singleton pattern is more handy in your design, but just consider this approach FYI. On Oct 16, 11:22 am, vchris80 vuc...@gmail.com wrote: thanks, I feel a bit over complicate and bug-prone to manage views manually via setContentView, so I simply changed the architecture, putting the common classes of interest in a singleton (luckily this solution fits with my app design). This way I can decouple the activities and keep a common business class, leaving Android manage the views. On 15 Ott, 20:45, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: If you are more specific about what the 3+ buttons are supposed to do, we may be able to suggest alternatives. To answer your question, setContentView is needed with ActivityGroup. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. P.S. You can only make a child activity when a mommy activity and a daddy activity love each other very much enough to get married first. On Oct 15, 12:50 am, vchris80 vuc...@gmail.com wrote: hi james, thanx for reply. I try to explain what I want to achieve. It is actually very simple, but maybe I am walking on the wrong path since I think in the Windows way other than in the Android way :) My app is a window with 3 buttons (can't use tab since the buttons will increase in the future and since this is a porting from other platform and I have to follow the same UI guidelines as far as possible). Each button launch an activity and needs a reference to the main activity (parent) in order to use some common utility classes. I thought to do so by implementing the main activity as an ActivityGroup (thank to you first suggestion) and launch each child activity by getLocalActivityManager().startActivity() as I said in the previous post. But, as said, this doesn't update the screen with the new activity view. I have to explicitly call setContentView and put the child activity view (obtained by getDecorView()). Is this the right way or am I doing a mess? Then, when I finish() the child I restore the old view. On 14 Ott, 20:50, James Yum j...@google.com wrote: Hi, I'm still not sure what you're trying to achieve. Are you really trying to embed an activity within another? You can look at the TabActivity source for a pretty clean example: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... Cheers, James On Wed, Oct 14, 2009 at 1:31 AM, vchris80 vuc...@gmail.com wrote: thank for your reply, but I still have some troubles: now I have my main activiy been a ActivityGroup and the child activity been a simple Activity. I start the child with this code: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class); getLocalActivityManager().startActivity(and.mypackage.ChildActivity, startIntent); this way, in the onCreate of the child activity, I can get the parent and the activity results child of something by calling isChild() method. Fine. But the screen actually doesn't appear. The documentation of startActivity of LocalActivityManager says that The caller needs to take care of adding this window to a view hierarchy, but I can't figure out how to do that. I watched the WindowManager for a suitable method but with no luck. On 13 Ott, 19:09, James Yum j...@google.com wrote: Hi, Those are meant for an ActivityGroup and its embedded activities, for example a TabActivity. What you might want to look into, is this introduction on opening screens (activities): http://developer.android.com/guide/appendix/faq/commontasks.html#open... Cheers, James On Tue, Oct 13, 2009 at 7:25 AM, vchris80 vuc...@gmail.com wrote: Hi all, I have a simple question: how I make an activity that is child of another? I use this code to start an activity from another: Intent startIntent = new Intent(MyMainActivity.this, ChildActivity.class); startActivity(startIntent); but on the onCreate method of ChildActivity, if I watch for getParent () I get null, and if I ask for isChild() I get
[android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error:
I actually drag and drop SurfaceView into main layout. Then where should i go and change the sizes(height and width)? I have to change it in Properties? If yes, then i changed 'layout height' and 'layout width' to 320*480 in the Properties of SurfaceView, but it says error as 'Integer type not allowed'. I don't know what's up with this? --- On Sat, 10/17/09, Mark Murphy mmur...@commonsware.com wrote: From: Mark Murphy mmur...@commonsware.com Subject: [android-beginners] Re: UrgentHelp:Play Video file when accelerometer is triggered code error: To: android-beginners@googlegroups.com Date: Saturday, October 17, 2009, 4:50 AM Prabakar wrote: It is very very nice sample that you have provided in vidtry code. From there i picked of some of the code for my use. I am going to try SurfaceView and MediaPlayer combination. For that i made a code like below., SurfaceView v = (SurfaceView) findViewById(R.id.SurfaceView01); SurfaceHolder h = v.getHolder(); MediaPlayer mp = MediaPlayer.create(this, R.raw.myvideo); mp.setDisplay(h); mp.start(); I created a surfaceview in main.xml resource layout. But when i created a SurfaceView there, it is showing it in small rectangle. How to make it to full screen? The same ways you make any widget take up the full screen. For example, make it be the only widget in the layout and set android:layout_width and android:layout_height each to be fill_parent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Download Hide My Ip 2009 And Key
Hide My Ip 2009 Download Hide My Ip 2009 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Emulator crashed on X86_64 Gentoo (SDK 1.6)
I'm really excited about the Android 1.6 release and its new feature. I installed android-sdk-1.6 on my Gentoo box using the following command. # emerge android-sdk It successfully installed and I could create an AVD named TestAVD using the android command. But when I tried to run emulator with TestAVD, I got a Segmentation fault message and the emulator crashed. Does anyone run android 1.6 emulator successfully on 64bit Linux ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Why do I need requery() when I already have notifyDataSetChanged()
I had an adapter that was no updating properly when I called myAdapter.notifyDataSetChanged() This causes much headache an finally I tried cursor.requery(); //This is the cursor on which myAdapter is connected to myAdapter.notifyDataSetChanged(); My Question is - Why do I need to run requery()? I thought that notifyDataSetChanged() would automatically update the cursor for us! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---