[android-beginners] Re: emulator can not be powered on
SIR: I built it on linux indeed. Following question that I do not understand: or do u can give me a detail website to explain them ? 1. what`s mean of lunch after all? Is it used to set build enviroment, such as set TARGET_SIMULATOR=FALSE/TRUE 2. I used make sdk, the sdk folder is generated in out/host/linux-x86/sdk/... 3. do not understand : cd out/host/linux-x86/bin/sdk/android-sdk_eng.digit_linux-x86/tools ANDROID_PRODUCT_OUT= emulator -system ../platforms/android-1.5/images -data data.img THX 2009/3/2 David Turner di...@android.com Ahh, this is a bit complex to explain, let's cut the details here: - make sdk will not do what you think. Building the SDK should be done on Linux or Darwin with something like make PRODUCT-sdk-sdk. - emulator will not do what you think either. Because you called lunch, the emulator will think by default that you want to run a system image, not a sdk one. - By the way, building the SDK is only directly supported on Linux and Darwin. For Windows, we have to generate a Linux installation tree, then copy Windows-specific binaries into it for a few select tools. Don't try this at home, seriously... On Linux, here's how I rebuild and immediately test the SDK: . build/envsetup.sh make PRODUCT-sdk-sdk cd out/host/linux-x86/bin/sdk/android-sdk_eng.digit_linux-x86/tools ANDROID_PRODUCT_OUT= emulator -system ../platforms/android-1.5/images -data data.img Note that my username (digit) is part of the generated sdk directory, so YMMV. Hope this helps On Fri, Feb 27, 2009 at 10:36 AM, beginner royzha...@gmail.com wrote: Hi: I do as following: . /build/envsetup.sh lunch 1 make sdk emulator -datadir imagedir the emulator can be started, but it can not be powered on. Can u help me to resolve it? THX --~--~-~--~~~---~--~~ 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] Connect 2 Androids Ad-Hoc or via Hot Spot ?
Hey guys, i need the possibility to exchange messages between NEARBY Android Phones. This could mean, if they are close enough together, that they build up a kind of ad-hoc net, or if one is connected to a hot spot, and another gets into the hot-spot net, that the hot spots tells one that there's another one available, so that they can send messages. I have no idea how to connect to a Hot Spot or How to set up ad-hoc net. I tried with Connectivty Manager and WifiManager - the GetScanResults Method always returns null, even if i actually ARE in a zone of hot spots... When replying, would be nice to see some code snippets! --~--~-~--~~~---~--~~ 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] Merging two apps
Hello All, I built a testing ground application that does the Frame by Frame Animation and I built a full app that cycles through some images and sounds using the onclicklistener which utilizes if statements. I want to have the frame by frame animation code run inside of one of the if statements in my other app when it's called but I cannot figure how to merge the code Any ideas would be helpful. --~--~-~--~~~---~--~~ 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: Anybody knows how to preload an application?
Are you talking about loading apps on system startup? S On 7 Mar 2009, at 15:58, MrSnowflake wrote: You can only preload you own applications if you create your own Android image. But then you loose all Google specific apps, like Market. On 5 mrt, 10:07, Lawrence lejie.zh...@gmail.com wrote: Dear all, i am finding all android preloaded applications are located under / system/app/. So i am wondering if there is way that we can preload our own applications. Does it work that we just placed an app under / system/app/? --~--~-~--~~~---~--~~ 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] Could I adjust cpufreq from framework API
Dears, Recently, I have been interested in the android platfrom, especially power management. And then I tried to find the settings about cpufreq, but in vain. I really want to know if there is a way that we can modify the cpufreq governors within my application over the framework api. Could anyone give me some suggestion or information on this topic? Thanks a lot. Best regards, Augustin. --~--~-~--~~~---~--~~ 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] Dynamically adding images to a gallery
Hello everybody I'm trying to create a dynamic gallery, where the pictures are taken from the links in a txt file. Since the txt file can be often updated, there is a possibility that the amount of images in the gallery changes every time the user would restart the app (or click on a button). My question is now: Is this technically possible and if yes, how could I implement such a feature? I'd appreciate any help on this problem, thanks a lot. --~--~-~--~~~---~--~~ 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] Doing a post url
Hello people, I have a problem while doing a post to a url. here is my scenario : I have a login page e.g http://localhost/login.php and i need to login with the username and password from my android application. I am using org.apache to do a post. I am being able to post the variables to the local to the php page, but how to get the response from my php code below : php code : function loginpass(e) { $sql = SELECT count(*) FROM table_name where username='abd' AND password='pass' ; $querycount = mysql_query($sql) or die (mysql_error()); while ($row = mysql_fetch_array($querycount)) { $count = $row[0]; } if ($count == 1) { $response = ok; } else { $response = ko; } echo $response; I know i can use java.net , do a post and read the contents from the page using buffereader , is there anyway? may be assign the response to a session variable... and read the session variable ? Many thanks for your consideration and help regards Vir :) --~--~-~--~~~---~--~~ 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] Help to understand LunarLander: Canvas.save Canvas.restore
Hi, I can hardly understanding why LunarLander save the Canvas and restore it after rotating the Canvas to simulate the rotation of the rocket. I commented the 2 lines out and reinstall the apk, but I found nothing changed. Could anybody kindly help me understanding what 'matrix' and 'clip' are saved to the stack here as the SDK document dipicts? // canvas.save(); canvas.rotate((float) mHeading, (float) mX, mCanvasHeight - (float) mY); if (mMode == STATE_LOSE) { mCrashedImage.setBounds(xLeft, yTop, xLeft + mLanderWidth, yTop + mLanderHeight); mCrashedImage.draw(canvas); } else if (mEngineFiring) { mFiringImage.setBounds(xLeft, yTop, xLeft + mLanderWidth, yTop + mLanderHeight); mFiringImage.draw(canvas); } else { mLanderImage.setBounds(xLeft, yTop, xLeft + mLanderWidth, yTop + mLanderHeight); mLanderImage.draw(canvas); } // canvas.restore(); Thanks in advance. --~--~-~--~~~---~--~~ 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 print android_power:wakeup and didn't boot?
I don't know whether here is the proper place to post the message, because I am not a kernel developer, but I met a problem seems to have relashipship with the knowledge of the kernel. After I have change opencore ( mydroid/external/opencore, this is the lower layer relevant to media player) using mEmulation=true ( android/ android_surface_output.cpp) in order to use software codec; and copied the relevant lib to system/lib, my hardware board cannot successfully boot. and I found the libs render the problem are libandroid_services and libmedia* here is the print, anyone could give me any clue? print: android_power: wakeup (0-0) at 31319546575 (1970-01-01 00:00:31.319554395 UTC) android_power: wakeup (0-0) at 49765869810 (1970-01-01 00:00:49.765874772 UTC) android_power: wakeup (0-0) at 67881147696 (1970-01-01 00:01:07.881152358 UTC) android_power: wakeup (0-0) at 86564803262 (1970-01-01 00:01:26.564808337 UTC) android_power: wakeup (0-0) at 105151896836 (1970-01-01 00:01:45.151902551 UTC) android_power: wakeup (0-0) at 123721148756 (1970-01-01 00:02:03.721156237 UTC) android_power: wakeup (0-0) at 141840563717 (1970-01-01 00:02:21.840571085 UTC) android_power: wakeup (0-0) at 160263557478 (1970-01-01 00:02:40.263562703 UTC) android_power: wakeup (0-0) at 178231158192 (1970-01-01 00:02:58.231164658 UTC) --~--~-~--~~~---~--~~ 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: AlertDialog does not show
Hi Mark, it is not due to the regexp in the code and the if-else... The problem seems to be that this is not the Main Activity, but a subactivity! When I do the same thing in the main activity, it works. I have found tons of examples, but always with the easy constellation, i.e. when you want to show alerts in the main dialog. More, I am now trying to fix this with the Handler, implementing the runnable interface on the very activity and trying to work with Thrad.class. Any other ideas? I cannot believe that nobody is facing this situation? Many thanks in advance, Tommaso On 7 Mrz., 13:59, Mark Murphy mmur...@commonsware.com wrote: Tommaso wrote: The problem is that the dialog does't show! You might try a simpler case and build up from there. For example, get rid of the regular expression match. If it then starts working, you know your issue is with the regular expression, not withAlertDialog. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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: Connect 2 Androids Ad-Hoc or via Hot Spot ?
Last time I checked, there was no ad-hoc support for Wi-Fi on Android, while the Bluetooth API was still unreleased. Currently, “nearby” device discovery is only possible via an intermediate discovery server sharing GPS/Cell ID information. I submitted something along these lines to the ADC last year: http://blog.zedray.com/snowball/ --~--~-~--~~~---~--~~ 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] Animation between two activities
Hello, I woud know how to do a animation between two activities. I found a lot of examples to make some animation during an activity's life but never to make a transition between two activities. Thanks, Thomas --~--~-~--~~~---~--~~ 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: Autocomplete contacts list with multiple entries
Anybody got any ideas on this ?? On Mar 5, 12:03 pm, c6bro ch...@upload.co.uk wrote: Hi all, I have tried and tried . searched and searched but I can't find a solution to creating and auto complete list of contacts like below. I've created a simple app which send messages through a sms gateway. It works fine however imputing the phone number from the contacts on the phone is not slick enough. I need a simple auto complete box and when you start typing it brings up a list of all the names in the contacts with the numbers below the name just in case some names have multiple numbers. When you select the contact it will place the name in the textbox with a semicollon after it so that you can start typing again to add another recipient. Once the recipients have been selected and a button clicked i need only the telephone number put in a string so that i can pass it to a function to send the message. Its exactly the same as the default to in the messaging app pre loaded. Please can any one help, I'm really am stuck on this and its so frustrating. --~--~-~--~~~---~--~~ 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: AlertDialog does not show
I am facing the same problem. I was thinking about creating and Activity with a transparent layout and a AlertDialog related to it, and then another class that uses that activity as if it were an alertDialog (when dismiss we would have to do a activity.finish() call. Like this, it will be always shown at the front. Of course, this is not the clean way i guess... Any further ideas? On Mar 9, 9:44 am, Tommaso nuccio.tomm...@gmail.com wrote: Hi Mark, it is not due to the regexp in the code and the if-else... The problem seems to be that this is not the Main Activity, but a subactivity! When I do the same thing in the main activity, it works. I have found tons of examples, but always with the easy constellation, i.e. when you want to show alerts in the main dialog. More, I am now trying to fix this with the Handler, implementing the runnable interface on the very activity and trying to work with Thrad.class. Any other ideas? I cannot believe that nobody is facing this situation? Many thanks in advance, Tommaso On 7 Mrz., 13:59, Mark Murphy mmur...@commonsware.com wrote: Tommaso wrote: The problem is that the dialog does't show! You might try a simpler case and build up from there. For example, get rid of the regular expression match. If it then starts working, you know your issue is with the regular expression, not withAlertDialog. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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 download 1.1 sdk source OR use latest source (sdk 1.5) with eclipse/emulator
Thanks for your reply Squalus. Actually I am working on the OS... I have things working now, the problem was I needed to UNinstall ADT 0.8 that comes with the SDK BEFORE I INstall ADT 0.9 that gets built with the latest source. They were conflicting. I then run the newly built emulator from outside Eclipse and when i run my app from inside Eclipse it happily connects to the running instance of the emulator. Thanks again Russell --~--~-~--~~~---~--~~ 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] Online Android Programming courses
Hi Everyone, If you're interested in learning how to develop top class games and applications for the iPhone, HTC Touch (Android), Instinct, WinMobile, or any other mobile device or platforms - then you should definitely have a look at what they offer...http://EDUmobile.org Register today and walk in for your free one-on-one consultancy...http://EDUmobile.org Dushy :-) --~--~-~--~~~---~--~~ 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: AlertDialog does not show
Hi Christian, I wouldn't do that! The framework, I am sure, has means to implement the behaviour we want. By doing some kind of hacks, you are running into trouble later. Also, you don't know about side effects, like memory, UI, etc... I found ou that we will need a Handler, Looper and Thread. Also, I will ask this in the more advanced groups. Ciao, Tommaso On 9 Mrz., 12:32, Christian Martín Reinhold sabues...@gmail.com wrote: I am facing the same problem. I was thinking about creating and Activity with a transparent layout and a AlertDialog related to it, and then another class that uses that activity as if it were an alertDialog (when dismiss we would have to do a activity.finish() call. Like this, it will be always shown at the front. Of course, this is not the clean way i guess... Any further ideas? On Mar 9, 9:44 am, Tommaso nuccio.tomm...@gmail.com wrote: Hi Mark, it is not due to the regexp in the code and the if-else... The problem seems to be that this is not the Main Activity, but a subactivity! When I do the same thing in the main activity, it works. I have found tons of examples, but always with the easy constellation, i.e. when you want to show alerts in the main dialog. More, I am now trying to fix this with the Handler, implementing the runnable interface on the very activity and trying to work with Thrad.class. Any other ideas? I cannot believe that nobody is facing this situation? Many thanks in advance, Tommaso On 7 Mrz., 13:59, Mark Murphy mmur...@commonsware.com wrote: Tommaso wrote: The problem is that the dialog does't show! You might try a simpler case and build up from there. For example, get rid of the regular expression match. If it then starts working, you know your issue is with the regular expression, not withAlertDialog. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training in Sweden --http://www.sotrium.com/training.php --~--~-~--~~~---~--~~ 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: Telephony API in Android
??? On Mar 6, 4:46 pm, Arunk arunk2...@gmail.com wrote: I am new to Android. I have developed application for blackberry. I want to develop the same application for Android also. Is there anything like phone listner in Android? How feasible its to implement an application which overrides the native phone application? When my application is running if someone make a call, I want to disconnect the call and dial a modified number. Same way I want to get Call Initiated, call connected, call disconnected, call incoming and call answered events. In blackberry PhoneListner class is prividing all these. Same way Symbian and Windows mobile also provides this. So I want to develop our application in android also. But I didn't find any API for that. is it possible to do this in Android? --~--~-~--~~~---~--~~ 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: Connect 2 Androids Ad-Hoc or via Hot Spot ?
Your post does not help me, at all. As i already said, i would like to see code snippets or some kind of manual, how to connect to a hot spot, or at least discover one, OR directly discover and connect another android or mobile phone. Half-Knowledge or strange comments with introducing GPS technologies is not what i need. But...thanks anyway. Does someone have any helpful ideas? On 9 Mrz., 10:50, whitemice markbr...@zedray.co.uk wrote: Last time I checked, there was no ad-hoc support for Wi-Fi on Android, while the Bluetooth API was still unreleased. Currently, “nearby” device discovery is only possible via an intermediate discovery server sharing GPS/Cell ID information. I submitted something along these lines to the ADC last year:http://blog.zedray.com/snowball/ --~--~-~--~~~---~--~~ 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 and newActivity
I'm no expert, but from what I can tell, the putExtra() methods on Intent accept primitive types, Serializable objects, and Parcelable objects: http://developer.android.com/reference/android/content/Intent.html Primitive types and Serializable objects will be copied. I think Parcelable objects are copied as well. You might be better off researching the RPC capabilities of Android to pass around real object references: http://developer.android.com/guide/topics/fundamentals.html#rpc ++Steve On Mar 6, 7:51 am, Łukasz Warchoł warchol...@gmail.com wrote: Hi, could you tell me when I am passing an object throught Intent to an another Activity it is sended a copy of that object or an reference on it? And if it is an copy is there any way to pass an reference (to make two activietes work on the same object)? Thanks in advance. Luke --~--~-~--~~~---~--~~ 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 format time in millis to human readable?
Just out of curiosity, has anybody tried using Joda Time (http://joda- time.sourceforge.net/) in an Android application? The Joda API is much better than Java's built-in Date and Calendar classes. ++Steve On Mar 8, 12:54 pm, sm1 sergemas...@gmail.com wrote: There may be built-in methods for such things as 5 minutes ago but I don't know any yet. for the current time in human-readable form, using some default date display format (which may or may not be dependent on user-preferred locale and date format selection, this remains TBD for Android), the fastest way is: +new Date() and with a given time in millis, it would be as in: Build.TIME +Build.TIME+ = +new Date(Build.TIME) Calendar is recommended for conversions (e.g., time zone changes) and for other calculations with dates, such add, after, before, compareTo. When you create a Calendar, it is already set to the current time: Calendar cal = Calendar.getInstance(); is usually equivalent and preferable to: long millis = System.currentTimeMillis(); //don't do these 4 statements Date date = new Date(millis); Calendar c = Calendar.getInstance(); c.setTime(date); And if you need to use SimpleDateFormat, because for example you don't want to use the default format you get from Date, then take special care because some implementations are not multithreaded, therefore unless you know for sure that Android's implementation is multithreaded, then don't cache the instance and use a local variable that only lives in the method, don't use a field. This makes SimpleDateFormat somewhat expansive to use but usually it is only used for some UI work (i.e., not background work), therefore using it may be OK for many apps. happy coding serge On Mar 8, 4:33 am, TAKEphONE shimo...@gmail.com wrote: Hi, Is there any internal method/object I can use to return a format like the built-in call log does ? (i.e. 5 minutes ago, 2 days ago...) On Mar 6, 2:55 pm, Tseng tseng.priv...@googlemail.com wrote: I wouldn't really use this method to be honest. Even the Android Documentation sugest to use native methods, instead of writing your own stuff for methods which are already available (i.e. simple date formating). [Use Native Methods]http://developer.android.com/guide/practices/design/performance.html#... On Mar 6, 1:20 pm, droozen droozenr...@gmail.com wrote: Sometimes I construct my human readable strings in a separate function by myself, mostly because I imagine it's faster. Something like. int iMonth = cal.get(Calendar.MONTH) + 1; // Months from the calendar are offset by one. Add one if you want human readable. int iDay = cal.get(Calendar.DAY_OF_MONTH); String month = Integer.toString(iMonth); if(iMonth 10){ month = 0 + month; // Otherwise, you might get something like 1/1/1900, instead of 01/01/1900 } String day = Integer.toString(iDay); if(iDay 10){ day = 0 + day; } String humanReadable = month + / + day + / cal.get(Calendar.YEAR); But really, you should be using SimpleDateFormat, I suppose... On Mar 6, 5:55 am, Łukasz Warchoł warchol...@gmail.com wrote: - 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: Telephony API in Android
While I can't answer your questions, I urge you to be more patient because you'll prove the list's wrath and no one would answer, even if he could help you. Many of the list's members are from US and are sleeping atm. On Mon, Mar 9, 2009 at 3:28 PM, Arun arunk2...@gmail.com wrote: ??? On Mar 6, 4:46 pm, Arunk arunk2...@gmail.com wrote: I am new to Android. I have developed application for blackberry. I want to develop the same application for Android also. Is there anything like phone listner in Android? How feasible its to implement an application which overrides the native phone application? When my application is running if someone make a call, I want to disconnect the call and dial a modified number. Same way I want to get Call Initiated, call connected, call disconnected, call incoming and call answered events. In blackberry PhoneListner class is prividing all these. Same way Symbian and Windows mobile also provides this. So I want to develop our application in android also. But I didn't find any API for that. is it possible to do this in Android? --~--~-~--~~~---~--~~ 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: Telephony API in Android
s/prove/provoke thumbs near the touchpad make such silly sentences quite often :( On Mon, Mar 9, 2009 at 3:54 PM, Stoyan Damov stoyan.da...@gmail.com wrote: While I can't answer your questions, I urge you to be more patient because you'll prove the list's wrath and no one would answer, even if he could help you. Many of the list's members are from US and are sleeping atm. On Mon, Mar 9, 2009 at 3:28 PM, Arun arunk2...@gmail.com wrote: ??? On Mar 6, 4:46 pm, Arunk arunk2...@gmail.com wrote: I am new to Android. I have developed application for blackberry. I want to develop the same application for Android also. Is there anything like phone listner in Android? How feasible its to implement an application which overrides the native phone application? When my application is running if someone make a call, I want to disconnect the call and dial a modified number. Same way I want to get Call Initiated, call connected, call disconnected, call incoming and call answered events. In blackberry PhoneListner class is prividing all these. Same way Symbian and Windows mobile also provides this. So I want to develop our application in android also. But I didn't find any API for that. is it possible to do this in Android? --~--~-~--~~~---~--~~ 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: Arabic localization project
Hi, Got some help from the author of that code, and posted the new version of a12Keys Yesterday. Thanks ! On Mar 8, 3:31 pm, TAKEphONE shimo...@gmail.com wrote: Hi, On Feb 22, 12:25 pm, G_man aman@gmail.com wrote: 3- You need an Arabic reshaper and it is already there:http://wm-arabic.cvs.sourceforge.net/viewvc/wm-arabic/JAVA_Android_Ve... 4- All you need is to find a way fix the ArabicReshaper.java file into the system The ArabicReshaper code seems to be a bit broken - it always adds one character to the string transferred to it. Can someone look at it and fix it ? TIA --~--~-~--~~~---~--~~ 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] hello world
Hi google group of android, I have a problem with hello wolrd, i use linux ubuntu with eclipse Version: 3.4.2, the configuration is perfect but i don't see the text Hello,World the log of console are : [2009-03-09 16:49:22 - HelloAndroid] -- [2009-03-09 16:49:22 - HelloAndroid] Android Launch! [2009-03-09 16:49:22 - HelloAndroid] adb is running normally. [2009-03-09 16:49:22 - HelloAndroid] Launching: com.example.hello.HelloAndroid [2009-03-09 16:49:22 - HelloAndroid] Automatic Target Mode: launching new emulator. [2009-03-09 16:49:22 - HelloAndroid] Launching a new emulator. [2009-03-09 16:49:23 - HelloAndroid] New emulator found: emulator-5554 [2009-03-09 16:49:23 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched... [2009-03-09 16:49:25 - Emulator] emulator: emulator window was out of view and was recentred [2009-03-09 16:49:25 - Emulator] and i see only android emulator 5554 with text ANDROID my code is: package com.example.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(bellaz); setContentView(tv); } } This group is fantastic, i'm sorry for my horrible english --~--~-~--~~~---~--~~ 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 launch installed app from adb shell
I am trying to launch and installed application on Android emulator using the shell. Can anyone let me know how this can be done? Thank you Sundeep --~--~-~--~~~---~--~~ 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: Make a button from an image (PNG)
hello, I dont know what your canvas. you want to add a image(png) for button ? if yes, I think you can use class imagebutton, than you can changed main.xml.to add layout:src=drawtable/iconname Regards. On 3月9日, 下午12时04分, xspotlivin dmbrown2...@gmail.com wrote: I'd like to know how to make a button out of a PNG and display it on my canvas (using drawBitmap?). When I click on this button, it will take me to a new activity. All this will be in the onClickListener. So, how do I take a PNG, make a button with it, and draw it on my canvas? I looked at ImageButton, but I'm unsure how it works or how to draw it on the canvas. Thanks for your help. A code sample would also be greatly appreciated. --~--~-~--~~~---~--~~ 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: Show background applications dialog in front of current application
Interrupting another application with a custom dialog sounds quite invasive to the user. How about displaying a notification icon when you want the user input? Sean On Mon, Mar 9, 2009 at 3:25 PM, denzel dimitri.deroc...@gmail.com wrote: Hi, I have an app that is running in the background doing some things. Sometimes this apps needs user input and therefore it shows a dialog. While the app is running, I use some other app like the browser. Is it possible to sort of interrupt the browser app (or another app that I'm using at that moment) so that the dialog that my app wants show, appears in front of the browser? Here's the piece of code that I'm using right now to show the dialog: Dialog userprompt = new Dialog(activity); userprompt.setTitle(Prompt User); userprompt.setContentView(R.layout.prompt); userprompt.show(); Thanks in advance! Kind regards, Denzel --~--~-~--~~~---~--~~ 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: onDraw is never called...
Thanks for your responses. I think I have set the view in the content view (although I'm not entirely sure what that means...). But I don't think I made it visible... how do I do that? This is what I have: public class TestDraw extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new DemoView(this)); } private class DemoView extends View{ public DemoView(Context context){ super(context); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); canvas.drawColor(Color.WHITE); } public void drawTest() { // do something // i want onDraw to be called here // do something } } } On Mar 7, 7:59 am, MrSnowflake mrsnowfl...@gmail.com wrote: onDraw() will only be called when the view is in the content view of the Activity and visible! On 5 mrt, 20:25, mcmc manni...@gmail.com wrote: I cannot get the onDraw function to be called. Here is the what my basic code looks like. What triggers the onDraw to be called? private class DemoView extends View{ public DemoView(Context context){ super(context); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); canvas.drawColor(Color.WHITE); } public void drawTest() { // do something // i want onDraw to be called here // do something } } --~--~-~--~~~---~--~~ 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 does emulator manage to install all the applications?
Hi everybody, I just wanna know how Android emulator manages to install all the applications by default when it is started. And moreover i was searching for Google maps source code or atleast the .apk file for that application in the emulator. Any kind of help will be of great help to me. Thanks, Ramakrishna. --~--~-~--~~~---~--~~ 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: Arabic localization project
me too, after i gave you an answer, you just ignored my question... what help are you talking about?? On Mar 9, 9:05 am, TAKEphONE shimo...@gmail.com wrote: Hi, Got some help from the author of that code, and posted the new version of a12Keys Yesterday. Thanks ! On Mar 8, 3:31 pm, TAKEphONE shimo...@gmail.com wrote: Hi, On Feb 22, 12:25 pm, G_man aman@gmail.com wrote: 3- You need an Arabic reshaper and it is already there:http://wm-arabic.cvs.sourceforge.net/viewvc/wm-arabic/JAVA_Android_Ve... 4- All you need is to find a way fix the ArabicReshaper.java file into the system The ArabicReshaper code seems to be a bit broken - it always adds one character to the string transferred to it. Can someone look at it and fix it ? TIA --~--~-~--~~~---~--~~ 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 does emulator manage to install all the applications?
the applications are pre-installed in the read-only /system partition.the Google Maps source code is not available. the corresponding .apk should be somewhere under / though. On Mon, Mar 9, 2009 at 6:35 PM, Ramakrishna mramakrishnapra...@gmail.comwrote: Hi everybody, I just wanna know how Android emulator manages to install all the applications by default when it is started. And moreover i was searching for Google maps source code or atleast the .apk file for that application in the emulator. Any kind of help will be of great help to me. Thanks, Ramakrishna. --~--~-~--~~~---~--~~ 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] Is there an expand all preference.
Hello, In Eclipse, is there an option to see all the matching lines in the Search output window, without first right clicking in the window, and then selecting Expand All from the menu ? I find, I have select Expand All, everytime I do a search. I read in another post, that this is possible, but I can't find it. I am using Version 3.4.1. If that is not available, is there a way to stop Eclipse showing the search results as a hierarchy ? Or is there a plugin which can just show the search results, without putting it into a hierarchy ? Thank You 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] Re: Images from URL into Lists
Thanks, your blog posts are very helpful on constructing more elaborate lists. I'm still in the dark, however, about fetching images - they're .png files fetched via URL and I plan to cache them. I could put them on the SD card, or in the database. They are, hopefully, thumbnails of the appropriate size, but I may need to shrink them 10% or so. Is there a standard paradigm for doing this? All the image manipulation code I've seen so far refers to images already on the platform, e.g., R.drawable.image3, but I've seen nothing about converting a data stream into an icon. Thanks again, Joe On Wed, Mar 4, 2009 at 11:48 AM, Mark Murphy mmur...@commonsware.comwrote: Joe wrote: 1. How to go about fetching the image from the URL That depends on lots and lots of factors, such as: -- Do you need to save the images to the SD card as a cache or for later use? -- Do the images need to be converted to thumbnails? -- How many of these things are we talking about? Lots of images that are not already thumbnailed means lots of RAM and lots of storage and lots of bandwidth, which means lots and lots of pain and suffering. 2. How to get the image into a List next to some text I have several blog posts on this topic over at AndroidGuys.com: http://androidguys.com/?s=fancy+listviews In particular, you need to be very careful about recycling the list rows, so you do not wind up re-fetching the images all the time. Note that some of these posts are from last summer and the M5 SDK, so they may require some tweaks to work with the 1.1 SDK. Also, forgive the formatting, as AndroidGuys moved to a new host and so some of my old postings are a bit messed up. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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] can accelerometer sense short and long motions?
Hi, I wondered if the accelerometer sense short and long motions. for example, not just a 3 milimeter movement, but also a 30 meter move. If anyone knows, I would appreciate your sharing the information. thanks, Anil --~--~-~--~~~---~--~~ 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 accelerometer sense short and long motions?
Short answer: No. Accelerometers measure acceleration, not velocity. So it might be possible to monitor the acceleration, use that to infer the velocity, and then measure the time until the corresponding negative acceleration, but this is very error-prone (due to the fact that you're doing numerical integration over discrete samples, and the sensors are fairly noisy). Cheers, Jordan Frank On Mar 9, 4:45 pm, Anil anil.r...@gmail.com wrote: Hi, I wondered if the accelerometer sense short and long motions. for example, not just a 3 milimeter movement, but also a 30 meter move. If anyone knows, I would appreciate your sharing the information. thanks, Anil --~--~-~--~~~---~--~~ 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 accelerometer sense short and long motions?
Frank clarified that the accelerometer only measures acceleration. But I was wondering... velocity in the real world is typically non-uniform right? Anil On Mar 9, 3:45 pm, Anil anil.r...@gmail.com wrote: Hi, I wondered if the accelerometer sense short and long motions. for example, not just a 3 milimeter movement, but also a 30 meter move. If anyone knows, I would appreciate your sharing the information. thanks, Anil --~--~-~--~~~---~--~~ 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 accelerometer sense short and long motions?
Frank, Thanks for clarifying. I was wondering since velocity in the real world is typically non-uniform. - Anil On Mar 9, 4:05 pm, Jordan Frank jordan.w.fr...@gmail.com wrote: Short answer: No. Accelerometers measure acceleration, not velocity. So it might be possible to monitor the acceleration, use that to infer the velocity, and then measure the time until the corresponding negative acceleration, but this is very error-prone (due to the fact that you're doing numerical integration over discrete samples, and the sensors are fairly noisy). Cheers, Jordan Frank On Mar 9, 4:45 pm, Anil anil.r...@gmail.com wrote: Hi, I wondered if the accelerometer sense short and long motions. for example, not just a 3 milimeter movement, but also a 30 meter move. If anyone knows, I would appreciate your sharing the information. thanks, Anil --~--~-~--~~~---~--~~ 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: Dev1 Permissions
On Mar 6, 1:55 pm, Maxx george.bert...@gmail.com wrote: When I try to push or pull (copy) files from PC to phone, I get permission denied ?? Do I have to Root hack the developer phone too ? The adb daemon runs as a normal user. You can adb shell and then su to become root. This does mean you have an extra step: push the file to /sdcard and then copy it over. This annoyance will be addressed in a future release. --~--~-~--~~~---~--~~ 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 prevent repositioning of a dialog
I got a toplevel dialog window When i use setVisibility(View.Visible) on a part of the layout that had the attribute View.Gone before the whole dialog is repositioned/ centered. How do i prevent that? I want the new part of the layout to be visible but also keep the old position of the top level window. --~--~-~--~~~---~--~~ 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] Filling a large database causes crash
I am trying to on first start up fill up a sql database with the default values. This database is around 9000 entries and it is causing the app to go over the 16MB heap. I am trying to find a way to do this so that it will not cause this over flow. At the moment I am running the 9000 inserts, 1 after another in a thread. Are there any other suggestions? --~--~-~--~~~---~--~~ 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] accessing information from browser, in an application
I am editing the pre-existing zxing Barcode Reader code so it can voice itself for blind users. I know how to use Text to speech in the app. Right now I am at the step where after the barcode is read, it then opens a webpage in the android browser - it sends the product number to google. What i want to do is be able to read from that webpage- whether its from the DOM or just being able to get the source for the page. Here is where the intent is launched: Uri uri = Uri.parse(http://www.google.; + LocaleManager.getCountryTLD() + /products?q= + upc); launchIntent(new Intent(Intent.ACTION_VIEW, uri)); Do I need to use android.webkit somehow? Or is that just for making my own webpages in the browser? No clue how to proceed right now. Thanks, any help is very appreciated shani --~--~-~--~~~---~--~~ 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: Make a button from an image (PNG)
Ok, thanks for the replies. I'm going to describe what I'm trying to do better, because I'm still unsure of the solution, and I could really use some help. I have a clock application (how can you attache an image). For each shaded region I want to place a button on top of it (a different button depending on some xml data). I don't know how to create a button from the attached image and then draw it in the correct spot. My xml data has the time of the shaded region, so I can figure out what angle to put the button. Below is the relevant code from my ClockView class. The for loop is looping through each element in an xml document (which I pass from the activity class). Java: public class ClockView extends View { protected Document clockXML; public ClockView(Context context) { super(context); this.setBackgroundDrawable(getResources().getDrawable (R.drawable.clockbackgroundwithoutnames)); } @Override protected void onDraw(Canvas canvas) { // Clock-size rectangle to draw compliance windows RectF clockRect = new RectF(86, 6, 394, 314); // Create a node list containing each reminder NodeList reminderNodes = this.clockXML.getElementsByTagName (Reminder); int reminderLength = reminderNodes.getLength(); // Loop through each reminder drawing compliance windows for (int i=0; i reminderLength; i++) { String timeScheduledString = reminderNodes.item (i).getFirstChild().getFirstChild().getNodeValue(); float timeScheduled = Float.valueOf (timeScheduledString.trim()); String complianceWindowString = reminderNodes.item (i).getFirstChild().getNextSibling().getFirstChild().getNodeValue(); float complianceWindow = Float.valueOf (complianceWindowString.trim()); String administered = reminderNodes.item (i).getFirstChild().getNextSibling().getNextSibling().getFirstChild ().getNodeValue().trim(); float compStartAngle = -90 + ((timeScheduled*360)/24) - (complianceWindow*15); float complianceSweepAngle = (complianceWindow*2)*15; // If we are in the daytime. if (compStartAngle 90 compStartAngle = -90) { // If a reminder is scheduled in the daytime, but window overlaps into the night. if ((compStartAngle + complianceSweepAngle) 90) { // Compute new angles and sweeps float startAngle1 = compStartAngle; float sweepAngle1 = 90 - startAngle1; // Draw for daytime canvas.drawArc(clockRect, startAngle1, sweepAngle1, true, this.amColor); float sweepAngle2 = complianceSweepAngle - sweepAngle1; // Draw for nighttime canvas.drawArc(clockRect, 90, sweepAngle2, true, this.pmColor); // Else, just draw normally. } else { canvas.drawArc(clockRect, compStartAngle, complianceSweepAngle, true, this.amColor); } // If we are in the nighttime } else if (compStartAngle = 90) { // If a reminder is scheduled in the nighttime, but window overlaps into the day. if ((compStartAngle + complianceSweepAngle) 270) { // Compute new angles and sweeps float startAngle2 = compStartAngle; float sweepAngle3 = 270 - compStartAngle; // Draw for nighttime canvas.drawArc(clockRect, startAngle2, sweepAngle3, true, this.pmColor); float sweepAngle4 = complianceSweepAngle - sweepAngle3; // Draw for daytime canvas.drawArc(clockRect, 270, sweepAngle4, true, this.amColor); // Else, just draw normally. } else { canvas.drawArc(clockRect, compStartAngle, complianceSweepAngle, true, this.pmColor); } // If a reminder is scheduled in the early daytime, but window overlaps into the nighttime (backwards) } else { // Compute new angles and sweeps float startAngle3 = compStartAngle; float sweepAngle5 = -90 - compStartAngle; // Draw for nighttime canvas.drawArc(clockRect, startAngle3, sweepAngle5, true, this.pmColor); float sweepAngle6 = complianceSweepAngle - sweepAngle5; // Draw for daytime canvas.drawArc(clockRect, -90, sweepAngle6, true, this.amColor); } // I want to create the buttons here for each reminder } } } I'm sure if
[android-beginners] Re: How does emulator manage to install all the applications?
Hii David, Its nice to meet u...Can you please mail me the google maps apk file if u have it?It will be of great help for me if anyone can share me the .apk file of google maps application. Thanks, Ramakrishna. On Tue, Mar 10, 2009 at 1:01 AM, David Turner di...@android.com wrote: the applications are pre-installed in the read-only /system partition.the Google Maps source code is not available. the corresponding .apk should be somewhere under / though. On Mon, Mar 9, 2009 at 6:35 PM, Ramakrishna mramakrishnapra...@gmail.comwrote: Hi everybody, I just wanna know how Android emulator manages to install all the applications by default when it is started. And moreover i was searching for Google maps source code or atleast the .apk file for that application in the emulator. Any kind of help will be of great help to me. Thanks, Ramakrishna. -- Best Regards, M.Rama Krishna Prasad, ST Microelectronics,Bangalore Ph No:09008718152 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---