Re: [android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. It will take less than 5 minutes and the apk is less than 50kb. On Fri, Jun 24, 2011 at 11:15 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:40 PM, Raghav Sood raghavs...@gmail.com wrote: I know that but I really needed to test it on those platforms. How much are you willing to pay testers? Don't expect people to do it for free. If you are in contact with some of users, you can ask them to test your app (in exchange for a free upgrade or something). There are also places that you can go and test on different devices (for a fee). Some sites offer to do it for you, don't know how much you can trust those. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
On Fri, Jun 24, 2011 at 12:59 AM, Raghav Sood raghavs...@gmail.com wrote: Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. It will take less than 5 minutes and the apk is less than 50kb. If you tested on two devices and several emulators, really, you should be fine assuming you're not doing anything crazy in your app. Even if someone confirmed that your app ran on X.Y device, there is no guarantee that it won't break doing something specific a user would do in a real world situation or running on another specific phone. Testing is good but really the only apps that require such intense testing across many devices are games and such that depend highly on the screen and hardware. For example I've never tested my app on 3.0 (no device and don't want to bother with the emulator) but I know it works fine from talking to a user. If you haven't already, incorporated ACRA or some such bug reporting mechanism into your app then release it to the wild and fix the bugs as they come - and they will come, I don't care how many quick 5 minute tests you manage to get. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
On Fri, Jun 24, 2011 at 2:59 PM, Raghav Sood raghavs...@gmail.com wrote: Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. You might want to say so in the first place. If it's non-commercial, volunteer project, etc, people might want to help. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. Doing this on a real device doesn't really buy you much, you can do the same thing on the emulator. Thorough testing on a real device might uncover some more obscure bugs (including in Android), but just a quick run will only get you 'it works'. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: In which way should I read a video file in binary mode into a byte buffer?
Jiabin, You would put the video into the raw folder, so yeah, it should work. http://developer.android.com/guide/topics/resources/providing-resources.html On Jun 24, 1:44 pm, Jiabin Qin jiab...@gmail.com wrote: I searched Google and found several ways , but I am not sure which is the correct one. File mFilePtr = new File(getExternalFilesDir(null), mFilename); InputStream is = getResources().openRawResource(id); is.read(mBuffer, 0, bufsize); The doubt for this is , in the method: openRawResource(id), on the developers site, it says: Open a data stream for reading a raw resource. This can only be used with resources whose value is the name of an asset files -- that is, it can be used to open drawable, sound, and raw resources; it will fail on string and color resources. id The resource identifier to open, as generated by the appt tool. Is it ok to read my video in that way? Thanks in advance! Jiabin Singapore -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
Thanks. The app is non commercial and free. It is also open source. I was just uploading the source but it is taking a while. As it is not really dependent on screen configurations like a game I suppose I could follow TreKing's advice. I haven't integrated a bug reporting system as yet but I will have it done by the next version. On Fri, Jun 24, 2011 at 11:42 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:59 PM, Raghav Sood raghavs...@gmail.com wrote: Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. You might want to say so in the first place. If it's non-commercial, volunteer project, etc, people might want to help. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. Doing this on a real device doesn't really buy you much, you can do the same thing on the emulator. Thorough testing on a real device might uncover some more obscure bugs (including in Android), but just a quick run will only get you 'it works'. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: authentication of an app in facebook
@Anusha: Try using the Facebook SDK for Android and follow one of the examples. It should just work. I've integrated the Facebook SDK in my own application and didn't face any difficulties. Try running one of the provided examples by Facebook (if you are using Eclipse you need to integrate both projects for the example and the Facebook SDK) and follow the code of this example. Please don't forget to use your own application ID, otherwise it won't work. @TreKing: Any Android SDK integration question can perfectly be asked here. Please don't try to stop the majority of the discussions. You are neither the police nor the owner of this platform; so please don't try to act like one. If you don't know the answer just don't write anything. The question of Anusha was perfectly valid: Integration of Facebook Android SDK. He is not talking about Hong Kong stock exhange. Really, please, don't try to stop the majority of the discussions. Do it like the rest of us. If you don't have anything to say, please don't react. It's easier. Some of the members are really newbies, but probably eager to learn and also with talent. Don't forget, you also used to be a newbie. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Launching widget in floating mode onHome Screen from an apk
Hi , I have an apk from which I want to launch a widget in floating mode on to the Home Screen. Problem is I dont know the layout details [height /width etc ] of the widget before hand . Saw some sample apps where this is done but the layout info etc is constant there . But in my case I wont be having this beforehand . Could anyone plz suggest a solution . Thanks for you help in advance. Regards, Mayur -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to play large size video from sdcard in android
Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Img tag replaced in Intent
Hi, I'm unsure if this is a feature or a bug. What I'm trying to do is to pass some styled text between two activities. final Intent intent = new Intent(this, ActivityB.class); intent.putExtra(message, Html.fromHtml(My bimage/b br / img src=\http://example.com/image.png\; /, imageGetter, null)); startActivity(intent); Then when I retrieve my text in the new Activity the entire img tag is replaced by #65532; (OBJ - symbol). CharSequence message = intent.getCharSequenceExtra(message); START message pMy bimage/b br #65532;/p END Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Track and global Audio Effect questions
Hi, I have two related questions about Audio Effects. 1. I'm trying to get information on how an application should add a persistent audio effect to the global output mix. Yes I create the an instance of the effect in the Java app on sessionId 0. Then when my Java app exits, the effect successfully continues to process audio playing on the device, but I notice in the process list (in the Eclipse Devices tab) that my application is still running. I understand this is not the Java application, but the linux/C process still running. If I manually [stop] this process, my global effect ceases. Therefore I assume that this could have occured if my process was killed by the system to recover resources later on. So my question is: What is the correct way to be able to have a global audio effect remain active until removed? Is the only way to run a background service in Java that is actively connected with the underlying global effect? 2. I'm trying to understand the connection between an effect engine, the instance of an effect (via EffectCreate call in the library implementation), and the Java effect object instantiated to create/ control the effect. Is it always the case that if an Application A1 instantiates a java instance I1 of an effect E on sessionId 1, and then Application A2 creates a java instance I2 of the same effect class E on sessionId 2, then Application A1's instance I1 loses control of the effect, while A2 can freely control it via I2. But Application A1's instance I1 can still receive parameter change callbacks via the listener. Is this correct? And therefore, is it always the case then that these multiple java instances I1 and I2 of effect type E will always talk to the same effect engine - that is, the same instance of the effect created by EffectCreate in the library? I realise this crosses the line between SDK development and underlying effect library development, but at least here I'm asking from the application level perspective. I'm wondering whether the intention and design is that the Java instances of effects are merely supposed to act as thin clients to a single concrete instance of the effect as created in the underlying AudioFlinger and added to one effect chain at a time? Kind regards eugene -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: authentication of an app in facebook
Hey, Many thanks, its working.. On 24 June 2011 12:01, Ali Chousein ali.chous...@gmail.com wrote: @Anusha: Try using the Facebook SDK for Android and follow one of the examples. It should just work. I've integrated the Facebook SDK in my own application and didn't face any difficulties. Try running one of the provided examples by Facebook (if you are using Eclipse you need to integrate both projects for the example and the Facebook SDK) and follow the code of this example. Please don't forget to use your own application ID, otherwise it won't work. @TreKing: Any Android SDK integration question can perfectly be asked here. Please don't try to stop the majority of the discussions. You are neither the police nor the owner of this platform; so please don't try to act like one. If you don't know the answer just don't write anything. The question of Anusha was perfectly valid: Integration of Facebook Android SDK. He is not talking about Hong Kong stock exhange. Really, please, don't try to stop the majority of the discussions. Do it like the rest of us. If you don't have anything to say, please don't react. It's easier. Some of the members are really newbies, but probably eager to learn and also with talent. Don't forget, you also used to be a newbie. -- Ali Chousein Geo-Filtered Assistant http://geo-filtered-assistant.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- D.Anusha. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to play large size video from sdcard in android
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
Hi, If you are confident it is woking ok on the devices mentioned, I'd suggest you publish it in the Android Market and included notes about the devices you've tested it on request feedback from users. The Android Market provides some stats on what devices versions you app has been installed on plus crash/error reports which might help until you can incorporate your own bug reporting. And whilst a lot of people say the 3.0/3.1 emulator is really really slow it would might be ok for the minor testing you are suggesting. Regards On Jun 24, 4:24 pm, Raghav Sood raghavs...@gmail.com wrote: Thanks. The app is non commercial and free. It is also open source. I was just uploading the source but it is taking a while. As it is not really dependent on screen configurations like a game I suppose I could follow TreKing's advice. I haven't integrated a bug reporting system as yet but I will have it done by the next version. On Fri, Jun 24, 2011 at 11:42 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:59 PM, Raghav Sood raghavs...@gmail.com wrote: Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. You might want to say so in the first place. If it's non-commercial, volunteer project, etc, people might want to help. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. Doing this on a real device doesn't really buy you much, you can do the same thing on the emulator. Thorough testing on a real device might uncover some more obscure bugs (including in Android), but just a quick run will only get you 'it works'. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HttpClient Secure?
Hi, Just change http://192.xxx.x.xxx/android/ to https://192.xxx.x.xxx/android/ and make sure your web server is working on port 443, you can test this in a browser. Regards On Jun 24, 1:56 pm, Piraba pira...@gmail.com wrote: Hi All; I am new to Android. My requirement is save the data to MSSQL. I have done using HttpClient.I want to know this HttpClient is secure.If i want make a secure connection How can I take SSL certification. Please guide me. This is my code : HttpClient httpclient = getClient(); HttpPost httppost = new HttpPost(http://192.xxx.x.xxx/android/ productInvoiceTest.php); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); Intent intent = new Intent(); intent.setClass(this, InvoiceResult.class); intent.putExtra(productName, productName.getText().toString()); intent.putExtra(productId, productId.getText().toString()); startActivity(intent); public DefaultHttpClient getClient() { DefaultHttpClient ret = null; // sets up parameters HttpParams params = new BasicHttpParams(); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); HttpProtocolParams.setContentCharset(params, utf-8); params.setBooleanParameter(http.protocol.expect-continue, false); // registers schemes for both http and https SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme(http, PlainSocketFactory.getSocketFactory(), 80)); final SSLSocketFactory sslSocketFactory = SSLSocketFactory.getSocketFactory(); sslSocketFactory.setHostnameVerifier(SSLSocketFactory.BROWSER_COMPATIBLE_HO STNAME_VERIFIER); registry.register(new Scheme(https, sslSocketFactory, 443)); ThreadSafeClientConnManager manager = new ThreadSafeClientConnManager(params, registry); ret = new DefaultHttpClient(manager, params); return ret; } Please guide me whther this code is correct or not. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Full screen on HTC sensation (qHD)
Your application is running in screen size compatibility mode. The easiest way to fix this it to set an android:targetSdkVersion of 4 or greater. More info here: http://developer.android.com/guide/topics/manifest/supports-screens-element.html On Thu, Jun 23, 2011 at 7:01 AM, GekkeHenkie wiel...@gmail.com wrote: Hi, I'm creating my first android app, which I derived from the BluetoothChat example. However, on my phone (HTC sensation with qHD resolution, 540 bij 960 pixels) the lowest inch of the screen and a few lines at the sides are not used by the app. See these images: http://dl.dropbox.com/u/16350275/android/withoutmenu.png http://dl.dropbox.com/u/16350275/android/withmenu.png The layout-items are set to fill_parent so I expected something like this (scaled, but set at right resolution in eclipse): http://dl.dropbox.com/u/16350275/android/eclipse.png Has anybody an idea where I should look to fix this? So far I didn't find any reference in the projectfiles to the screenresolution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with getting GPS data when using Camera
Hi, Try adding you location manager code to this working camera example - http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html Whilst your there pay attention to the use of OnPause onResume methods. Regards On Jun 23, 1:05 pm, b.rye b.rye@gmail.com wrote: Have you come across a solution to this? I've recently seen this problem. I've tested on two phones, and the issue only exists on one of the phones. I'm curious about the specs of the phone you've tried, in an attempt to narrow down the cause. It works as expected on a Motorola Droid 2 running Android 2.2. It does NOT work as expected on an HTC Inspire running Android 2.2.1. Which phone(s) have you tried, and what OS version is running? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Need someone to test app on physical device 2.3, 3.0, 31
I would if I could. I just have one problem. The emulator doesn't boot on my computer. It gets stuck about a minute into the boot. This only happens with 3.0 and 3.1. Also I don't have a market account. As I mentioned before I am 14 and $25 is not lying around. Thanks On Fri, Jun 24, 2011 at 12:53 PM, gjs garyjamessi...@gmail.com wrote: Hi, If you are confident it is woking ok on the devices mentioned, I'd suggest you publish it in the Android Market and included notes about the devices you've tested it on request feedback from users. The Android Market provides some stats on what devices versions you app has been installed on plus crash/error reports which might help until you can incorporate your own bug reporting. And whilst a lot of people say the 3.0/3.1 emulator is really really slow it would might be ok for the minor testing you are suggesting. Regards On Jun 24, 4:24 pm, Raghav Sood raghavs...@gmail.com wrote: Thanks. The app is non commercial and free. It is also open source. I was just uploading the source but it is taking a while. As it is not really dependent on screen configurations like a game I suppose I could follow TreKing's advice. I haven't integrated a bug reporting system as yet but I will have it done by the next version. On Fri, Jun 24, 2011 at 11:42 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:59 PM, Raghav Sood raghavs...@gmail.com wrote: Nikolay, I cannot pay the testers. I am 14 years old. It is unlikely that someone would do it for free but it is worth a shot as opposed to buying the required devices, which is out of my budget for a very long time. You might want to say so in the first place. If it's non-commercial, volunteer project, etc, people might want to help. I am not asking anyone to conduct a test that goes over each and everything of the app. All I want to know is if it starts, displays a list of earthquakes and whether or not the preferences (apart from auto update) work. Doing this on a real device doesn't really buy you much, you can do the same thing on the emulator. Thorough testing on a real device might uncover some more obscure bugs (including in Android), but just a quick run will only get you 'it works'. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Soodhttp:// www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Facebook Not as Good on Android Phones
I have to say i'm very disappointed that things as basic as uploading video and tagging friends in photos is not available on facebook for android phones. Android phones are not new, so i'm surprised this hasn't been dealt with already -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem with getting GPS data when using Camera
sorry i don't have 2011/6/24 gjs garyjamessi...@gmail.com Hi, Try adding you location manager code to this working camera example - http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html Whilst your there pay attention to the use of OnPause onResume methods. Regards On Jun 23, 1:05 pm, b.rye b.rye@gmail.com wrote: Have you come across a solution to this? I've recently seen this problem. I've tested on two phones, and the issue only exists on one of the phones. I'm curious about the specs of the phone you've tried, in an attempt to narrow down the cause. It works as expected on a Motorola Droid 2 running Android 2.2. It does NOT work as expected on an HTC Inspire running Android 2.2.1. Which phone(s) have you tried, and what OS version is running? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Bluetooth Serial Port Question
Hi, Can someone point me in the right direction please?! I am trying to connect to an industrial product using Android over Bluetooth. The device does not support pairing. I have written an application in WM6.5 and that works fine. The sequence of events is: Discover device and establish a Bluetooth Serial connection (the device does not support passkeys/pairing). Request a key from the product (by sending a hex string) Read string and send back a response based on the key and a user entered password (by responding with another hex string). Is there an example anywhere that I can download? I have downloaded some BT serial terminal emulators but they all want to pair with the device. In Windows 7 you can simply search, connect and choose to connect without pairing and then the device appear as a BT serial port. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] The way to stop a looped sound after closing activity for soundpool
I sucessfully played and stopped a looped sound with soundpool. But when I exit the application without stopping a looped sound, sound continue to be played. Could anyone let me know the way to stop a looped sound after closing activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Bluetooth Serial Port Question
Dear Si : I'm a new learner for Android I'm trying to test the bluetooth now. Could you tell me more detail about the Windows to listen receive data from other devices(such as Android phone/pc) through Bluetooth? Is there any example? Thanks in advanced. BR, Mark 2011/6/24 Si simonstewartke...@googlemail.com Hi, Can someone point me in the right direction please?! I am trying to connect to an industrial product using Android over Bluetooth. The device does not support pairing. I have written an application in WM6.5 and that works fine. The sequence of events is: Discover device and establish a Bluetooth Serial connection (the device does not support passkeys/pairing). Request a key from the product (by sending a hex string) Read string and send back a response based on the key and a user entered password (by responding with another hex string). Is there an example anywhere that I can download? I have downloaded some BT serial terminal emulators but they all want to pair with the device. In Windows 7 you can simply search, connect and choose to connect without pairing and then the device appear as a BT serial port. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth Serial Port Question
Have you looked at the Bluetooth Chat example in the SDK? On Jun 24, 9:21 am, wu mark androidmark2...@gmail.com wrote: Dear Si : I'm a new learner for Android I'm trying to test the bluetooth now. Could you tell me more detail about the Windows to listen receive data from other devices(such as Android phone/pc) through Bluetooth? Is there any example? Thanks in advanced. BR, Mark 2011/6/24 Si simonstewartke...@googlemail.com Hi, Can someone point me in the right direction please?! I am trying to connect to an industrial product using Android over Bluetooth. The device does not support pairing. I have written an application in WM6.5 and that works fine. The sequence of events is: Discover device and establish a Bluetooth Serial connection (the device does not support passkeys/pairing). Request a key from the product (by sending a hex string) Read string and send back a response based on the key and a user entered password (by responding with another hex string). Is there an example anywhere that I can download? I have downloaded some BT serial terminal emulators but they all want to pair with the device. In Windows 7 you can simply search, connect and choose to connect without pairing and then the device appear as a BT serial port. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to play large size video from sdcard in android
On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start(); } catch (Exception e) { e.printStackTrace(); } return true; } }); vv.bringToFront(); vv.setClickable(true); vv.getHolder().addCallback(this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { log(surface changed); } public void surfaceCreated(SurfaceHolder holder) { log(surface created); } public void surfaceDestroyed(SurfaceHolder holder) { log(surface destroyed); } public void onBufferingUpdate(MediaPlayer mp, int percent) { log(buffering: + percent + % done.); } public void
[android-developers] When starting two emulators, each Logcat Messages will be printed twice
Hi folks, does anyone has the same problem like me? To Test my App I've to start 2 or even more instances of the emulator. In the beginning all went fine, and I see the emulator output depending on the selected device in the Logcat (either Java or DDMS perspective). But after some download/ starts cycles the output beginns to print the lines twice or even ,multiple (The maximum I've seen is that one message was printed 6 times) Is this s a bug or a feature? What can I do to avoid this? regards Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: The way to stop a looped sound after closing activity for soundpool
Look up the Activity lifecycle methods in the Documentation (TM) and especially on the onDestroy() method. On Jun 24, 3:36 pm, juyoung kim man67...@gmail.com wrote: I sucessfully played and stopped a looped sound with soundpool. But when I exit the application without stopping a looped sound, sound continue to be played. Could anyone let me know the way to stop a looped sound after closing activity. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Facebook Not as Good on Android Phones
I am sorry to hear that you are disappointed. Since this a Developer's Forum, I am sure you are more than capable of creating an app that suits your needs. On Jun 24, 9:26 am, dannymichel xcin...@gmail.com wrote: I have to say i'm very disappointed that things as basic as uploading video and tagging friends in photos is not available on facebook for android phones. Android phones are not new, so i'm surprised this hasn't been dealt with already -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Data transfer server to client by using WiFi application in android
Dears i am new to android technology. i know about Java client-server chatting application by using socket.i don't have that much idea about Data transfer server to client by using WiFi application in android.i searched in Google related WiFi socket example,but i didn't get any related socket WiFi application. please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Data transfer server to client by using WiFi application in android
Wifi-Scoket ?? That's not a new thing. Your socket based, Java client-server program should also work, with a few adustments. There is nothing called as socket WiFi application. Search for just Socket Android Chat Client. *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Fri, Jun 24, 2011 at 2:07 PM, Naga K nagak.j...@gmail.com wrote: Dears i am new to android technology. i know about Java client-server chatting application by using socket.i don't have that much idea about Data transfer server to client by using WiFi application in android.i searched in Google related WiFi socket example,but i didn't get any related socket WiFi application. please help me. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play large size video from sdcard in android
On Jun 24, 1:30 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/examp... On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start(); } catch (Exception e) { e.printStackTrace(); } return true; } }); vv.bringToFront(); vv.setClickable(true); vv.getHolder().addCallback(this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { log(surface changed); } public void surfaceCreated(SurfaceHolder holder) { log(surface created); } public void surfaceDestroyed(SurfaceHolder holder) { log(surface destroyed); } public
[android-developers] Aw: Data transfer server to client by using WiFi application in android
Kumar is right - nothing new in the socket coding. But potentially you have to face issue regarding the connected/disconnected Status. have a look at the class ConnectivityManager connectiviyManager = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); and the NetworkInfo NetworkInfo ni = connectiviyManager.getActiveNetworkInfo(); regards Michael -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1
On Thursday, June 23, 2011 4:45:40 PM UTC+1, TreKing wrote: On Thu, Jun 23, 2011 at 3:44 AM, String sterlin...@googlemail.com wrote: 1* Would be 5* if the widgets were expandable, rather than cluttering up my widget picker with 8 different sizes. Can't you disable Widgets such that they don't show up in the Widget Picker? Not directly, though there are ways... But if I can't do a resizable widget, I'll still need the 4 discrete sizes, so I'm not sure that helps. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Integrating ACRA
Hi all, I am trying to integrate ACRA in my app. I followed the instructions on there wiki page for the 4.X beta release. I am receiving errors in the class which extends application. The class reads as follows:\ package com.raghavsood.quaker; import android.app.Application; import org.acra.*; import org.acra.annotation.*; @ReportsCrashes(formKey = dEJzNUpJdWpRbE1ycWRyT3lOenh3dHc6MQ) public class MyApplication extends Application{ @Override public void onCreate() { // The following line triggers the initialization of ACRA ACRA.init(this); super.onCreate(); } } @ReportCrashes is giving an error and says I should make a new annotation for it. ACRA says that I should create a class, parameter, constant, local variable or field. Any idea on how to fix these errors? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] keep original position of app widget
Hi, I have an appwidget at home-screen. Now I want to retain its original position upon user scrolling the home-screen. Is there a way to do solve this one? -- Regards, Khanh. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to play large size video from sdcard in android
On Fri, Jun 24, 2011 at 2:18 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: On Jun 24, 1:30 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/examp. .. On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start(); } catch (Exception e) { e.printStackTrace(); } return true; } }); vv.bringToFront(); vv.setClickable(true); vv.getHolder().addCallback(this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { log(surface changed); } public void surfaceCreated(SurfaceHolder holder) { log(surface created); }
Re: [android-developers] Which OS is more preferable for Android apps, middleware,source/OEM level development.
I would suggest to use Linux (Ubuntu) in your case. On windows if you want to deploy/test application on different devices you need to download different OEM USB drivers which is painful. P.S. I am developing on windows XP. On Fri, Jun 24, 2011 at 6:34 AM, Nainala Shrinivas srito...@gmail.comwrote: Hi, Could you any one give some clarity for Android development on which OS is more preferable? I am planning to buy new PC for android development for all the levels, like Apps, Middle level source modifications, Even we want to create own image. Can we do all the development on MacOS and Ubuntu. Which one more suggestible and compatible. Please suggest me :) Thanks for you help in advance. BR Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: When to close db connection on android?
Got it, thanks Michael. -Jay 2011/6/23 Michael Kuethe de02...@googlemail.com Hi Jay, no you just have to call the closing mechanism once. Normally during the onDestroy() event of last Activity that remains on the system. This is normally the launcher Activity. @Override protected void onDestroy() { Log.d(TAG, onDestroy fired!); dbhelper.close(); super.onDestroy(); } regards Michael On Jun 21, 11:29 am, Jay XU jaytraveler...@gmail.com wrote: Hi, I am new to Android and I am looking at the Notepad Tutorial sample code now. In the NotesDbAdapter class, it defines a close() method to close the DatabaseHelper. However I cannot find this method get called anywhere. So my question is when shall we close the DB connection. I suppose we should call it in the onDestroy() mehod of each Activity class. Or will Android framework will take care of this so we don't have to worry about it? Please advise. thanks. -Jay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android Market Developer Console not updating
On Thu, Jun 23, 2011 at 10:43 PM, cranktheory.apps cranktheory.a...@googlemail.com wrote: My statistics didn't update the last two weeks, too (Using Andlytics, too). Only active installs increase sometimes, but total downloads haven't changed since then. This is really bugging me. Just to calm you up a bit: right now it's showing 0 and 0% active installs across all my apps :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android Market Developer Console not updating
You mean that's not right? And I thought 100% of my users have uninstalled the app today? Phew... On Jun 24, 5:34 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Jun 23, 2011 at 10:43 PM, cranktheory.apps cranktheory.a...@googlemail.com wrote: My statistics didn't update the last two weeks, too (Using Andlytics, too). Only active installs increase sometimes, but total downloads haven't changed since then. This is really bugging me. Just to calm you up a bit: right now it's showing 0 and 0% active installs across all my apps :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] no audio or sound during sip audio call
Hi i am using SipDemo application provided by the android and i am using ekiga.net sip provider, the sip demo application perfectly logins and registers with server and perfectly establish call between two device and after establishing the call i am not able to hear any sound and other person on the other device is also not able to hear any sound. Is there any problem with codec negotiation of sip or any audio device issue. -- Regards Kiran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to update widget ?
Hi, I have made three classess. MainActivity AppWidgetService AppWidget As i am able to update widget from activity through service.I have one button in wiget.i want to update widget onclick of the button. Here is my code for AppWidgetService. package com.widget.main; import android.app.IntentService; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.widget.RemoteViews; public class AppWidgetService extends IntentService { public AppWidgetService() { super(AppWidgetService); // TODO Auto-generated constructor stub } @Override protected void onHandleIntent(Intent intent) { ComponentName componentName = new ComponentName(this, AppWidget.class); RemoteViews remoteViews = new RemoteViews(com.widget.main, R.layout.appwidget); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); remoteViews.setTextViewText(R.id.TextView01, MainActivity.listarray[MainActivity.currentIndex]); Intent activityIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, activityIntent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageView01, pendingIntent); /* Intent serviceIntent = new Intent(this, AppWidgetService.class); PendingIntent pendingserviceIntent = PendingIntent.getService( getApplicationContext(), 0, serviceIntent,PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageButton01,pendingserviceIntent);*/ appWidgetManager.updateAppWidget(componentName, remoteViews); } } and here is my code for widget class. package com.widget.main; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class AppWidget extends AppWidgetProvider { public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,AppWidgetService.class)); } } so how can i update widget when click on widget button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Get the virtual keyboard set by user
Thanks Trung for your clarification :) On Thu, Jun 23, 2011 at 9:09 PM, Trung Liem Vo lie...@gmail.com wrote: Hi owner, I is impossible. I was tried to catch the event keyboard but It is not success. Thanks, Liem -Original Message- From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Alok Kulkarni Sent: Thursday, June 23, 2011 9:59 PM To: android-developers@googlegroups.com Subject: [android-developers] Get the virtual keyboard set by user Hi all. Can we programatically come to know whether Android keyboard is currently being used by the user or not? This requirement arises from the need of popping up Numeric keypad as default and then user can switch to Alphanumeric keypad .This is possible using editText.setRawInputType(Configuration.KEYBOARD_QWERTY) but only if keyboard is set as Android Keyboard Thanks, Alok. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to update widget ?
You're almost there with your code. The pending intent should relate to something in your code which would update the widget. You don't have to wait for onUpdate (which is called by the system when needed), rather you can get the AppWidgetManager yourself and make an update at any time. You will need to either know the widget Id(s) you're going to update, or update all of them by using AppWidgetManager.update that takes a ComponentName. -- Kostya 2011/6/24 Hitendrasinh Gohil hitendra.virtuei...@gmail.com Hi, I have made three classess. MainActivity AppWidgetService AppWidget As i am able to update widget from activity through service.I have one button in wiget.i want to update widget onclick of the button. Here is my code for AppWidgetService. package com.widget.main; import android.app.IntentService; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.widget.RemoteViews; public class AppWidgetService extends IntentService { public AppWidgetService() { super(AppWidgetService); // TODO Auto-generated constructor stub } @Override protected void onHandleIntent(Intent intent) { ComponentName componentName = new ComponentName(this, AppWidget.class); RemoteViews remoteViews = new RemoteViews(com.widget.main, R.layout.appwidget); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); remoteViews.setTextViewText(R.id.TextView01, MainActivity.listarray[MainActivity.currentIndex]); Intent activityIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, activityIntent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageView01, pendingIntent); /* Intent serviceIntent = new Intent(this, AppWidgetService.class); PendingIntent pendingserviceIntent = PendingIntent.getService( getApplicationContext(), 0, serviceIntent,PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageButton01,pendingserviceIntent);*/ appWidgetManager.updateAppWidget(componentName, remoteViews); } } and here is my code for widget class. package com.widget.main; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class AppWidget extends AppWidgetProvider { public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,AppWidgetService.class)); } } so how can i update widget when click on widget button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Img tag replaced in Intent
Why not just pass the HTML as a String? On Fri, Jun 24, 2011 at 2:47 AM, rochdev develo...@rochdev.com wrote: Hi, I'm unsure if this is a feature or a bug. What I'm trying to do is to pass some styled text between two activities. final Intent intent = new Intent(this, ActivityB.class); intent.putExtra(message, Html.fromHtml(My bimage/b br / img src=\http://example.com/image.png\; /, imageGetter, null)); startActivity(intent); Then when I retrieve my text in the new Activity the entire img tag is replaced by #65532; (OBJ - symbol). CharSequence message = intent.getCharSequenceExtra(message); START message pMy bimage/b br #65532;/p END Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Generic resizable appwidgets in Android 3.1
This seems to be a design constrant, with the idea of keeping AppWidgetProvider processes in memory as little as possible. I can see this being useful for regular widget rendering, but loading the process for the one current widget the user is interacting with doesn't seem too bad. Besides, this constraint is already violated by the new scrollable widgets in 3.0, which rely on an application-side service for providing list items. Home screen widgets were introduced in 1.5, two years ago. Have the devices not improved since then? -- Kostya 2011/6/24 String sterling.ud...@googlemail.com On Thursday, June 23, 2011 4:45:40 PM UTC+1, TreKing wrote: On Thu, Jun 23, 2011 at 3:44 AM, String sterlin...@googlemail.comwrote: 1* Would be 5* if the widgets were expandable, rather than cluttering up my widget picker with 8 different sizes. Can't you disable Widgets such that they don't show up in the Widget Picker? Not directly, though there are ways... But if I can't do a resizable widget, I'll still need the 4 discrete sizes, so I'm not sure that helps. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to update widget ?
can you provide me some link how to deal with widget ids? On Fri, Jun 24, 2011 at 3:11 AM, Kostya Vasilyev kmans...@gmail.com wrote: You're almost there with your code. The pending intent should relate to something in your code which would update the widget. You don't have to wait for onUpdate (which is called by the system when needed), rather you can get the AppWidgetManager yourself and make an update at any time. You will need to either know the widget Id(s) you're going to update, or update all of them by using AppWidgetManager.update that takes a ComponentName. -- Kostya 2011/6/24 Hitendrasinh Gohil hitendra.virtuei...@gmail.com Hi, I have made three classess. MainActivity AppWidgetService AppWidget As i am able to update widget from activity through service.I have one button in wiget.i want to update widget onclick of the button. Here is my code for AppWidgetService. package com.widget.main; import android.app.IntentService; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.widget.RemoteViews; public class AppWidgetService extends IntentService { public AppWidgetService() { super(AppWidgetService); // TODO Auto-generated constructor stub } @Override protected void onHandleIntent(Intent intent) { ComponentName componentName = new ComponentName(this, AppWidget.class); RemoteViews remoteViews = new RemoteViews(com.widget.main, R.layout.appwidget); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); remoteViews.setTextViewText(R.id.TextView01, MainActivity.listarray[MainActivity.currentIndex]); Intent activityIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, activityIntent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageView01, pendingIntent); /* Intent serviceIntent = new Intent(this, AppWidgetService.class); PendingIntent pendingserviceIntent = PendingIntent.getService( getApplicationContext(), 0, serviceIntent,PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageButton01,pendingserviceIntent);*/ appWidgetManager.updateAppWidget(componentName, remoteViews); } } and here is my code for widget class. package com.widget.main; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class AppWidget extends AppWidgetProvider { public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,AppWidgetService.class)); } } so how can i update widget when click on widget button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Camera startPreview() failed on Nexus S with Gingerbread
I am also facing the same problem on Nexus S with Gingerbread. startPreview always fail in onPictureTaken callback after takePicture is called. Does any one has a solution. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play large size video from sdcard in android
On Jun 24, 2:20 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:18 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: On Jun 24, 1:30 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/examp. .. On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start(); } catch (Exception e) { e.printStackTrace(); } return true; } }); vv.bringToFront(); vv.setClickable(true); vv.getHolder().addCallback(this); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { log(surface
[android-developers] What are your thoughts on this service - activity communication pattern?
My activities start long running jobs that involve network communication. So handling these jobs with an IntentService seems perfectly reasonable. I also need to handle the results of these jobs, if the Activity that started this is active in the time of completion. The case that gave me a headache is what if the device is in the middle of a rotation, and the Service finishes a job? Currently, the service broadcasts an intent with the results as extras. The activities register and unregister a receiver for this completion-intent in onResume and onPaused. This way I don't have to tell the service explicitly, which listener it has to notify upon completion, it only has to make a broadcast. But with this design I can't handle cases where the job finishes, but the Acitivity is not resumed - it might be in the middle of a rotation, or the user could've switched to another app temporarily, etc. So I had the idea to implement a postbox pattern: I'd extend the Application object (or use a static object) that has a postbox object. The IntentService puts the results of the completed jobs inside this box, with a unique jobId, and makes a broadcast indicating that the postbox has new things. If an Acitivty is active, it receives this broadcast, checks the postbox, and handles the results as needed. Besides, every Acitivity checks the postbox in onResume(), for possible missed messages containing job-results. I'm avare that static objects could be destroyed without notice. But this pattern might solve the rotation problem stated above - I'm quite sure that the Application object survives the device rotation, or am I missing something? So what do you think of this pattern? Is there something fatal I missed? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Infinite HorizontalScrollView
How can implement infinite HorizontalScrollView ? I used buttons in HorizontalScrollView. normally when scroll right, after the last button I have to scroll left. But I want to know when scroll right after the last button it should show the first button. not want to scroll left. just as circle. thanks yasith -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Img tag replaced in Intent
In the new Activity, which I don't have control of, the HTML is appended to an EditText so it have to be passed styled. I'm just curious of this behavior, why and where it's replaced. On Jun 24, 12:18 pm, Mark Murphy mmur...@commonsware.com wrote: Why not just pass the HTML as a String? On Fri, Jun 24, 2011 at 2:47 AM, rochdev develo...@rochdev.com wrote: Hi, I'm unsure if this is a feature or a bug. What I'm trying to do is to pass some styled text between two activities. final Intent intent = new Intent(this, ActivityB.class); intent.putExtra(message, Html.fromHtml(My bimage/b br / img src=\http://example.com/image.png\; /, imageGetter, null)); startActivity(intent); Then when I retrieve my text in the new Activity the entire img tag is replaced by #65532; (OBJ - symbol). CharSequence message = intent.getCharSequenceExtra(message); START message pMy bimage/b br #65532;/p END Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Img tag replaced in Intent
How are you generating your --START-- --END-- output? If you're dumping that to LogCat, I wouldn't be surprised if you get gibberish output. What happens if you put the SpannedString into a TextView? On Fri, Jun 24, 2011 at 7:04 AM, rochdev develo...@rochdev.com wrote: In the new Activity, which I don't have control of, the HTML is appended to an EditText so it have to be passed styled. I'm just curious of this behavior, why and where it's replaced. On Jun 24, 12:18 pm, Mark Murphy mmur...@commonsware.com wrote: Why not just pass the HTML as a String? On Fri, Jun 24, 2011 at 2:47 AM, rochdev develo...@rochdev.com wrote: Hi, I'm unsure if this is a feature or a bug. What I'm trying to do is to pass some styled text between two activities. final Intent intent = new Intent(this, ActivityB.class); intent.putExtra(message, Html.fromHtml(My bimage/b br / img src=\http://example.com/image.png\; /, imageGetter, null)); startActivity(intent); Then when I retrieve my text in the new Activity the entire img tag is replaced by #65532; (OBJ - symbol). CharSequence message = intent.getCharSequenceExtra(message); START message pMy bimage/b br #65532;/p END Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Infinite HorizontalScrollView
On Fri, Jun 24, 2011 at 6:49 AM, yasith miuranga yasithmiura...@gmail.com wrote: How can implement infinite HorizontalScrollView ? You don't. I used buttons in HorizontalScrollView. normally when scroll right, after the last button I have to scroll left. But I want to know when scroll right after the last button it should show the first button. not want to scroll left. just as circle. I think that you will have to write your own component for that, or possibly see if a Gallery with a ridiculously long Adapter will suffice. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] NoClassDefFound Error while using min3d Examples
I am using min3d Library to make some 3d app on android so i simply downloaded the code from min3d and i am running there sample application which runs well. Now i create a new application on eclipse and add the same source code that found in the ExampleMostMinimal.java file and i get the NoClassDefFound error while i have mentioned the activity in manifest. The class does not extends Activity instead it extends RendererActivity which i in min3d Library. If anything is unclear you can check the following issue i posted on min3d http://code.google.com/p/min3d/issues/detail?id=51 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Bluetooth Serial Port Question
I have done some further trawling around the internet and as far as I can tell until recently the standard API only supported pairing (with a passkey). It would appear though that this functionality has been included in 2.3.3 (http://developer.android.com/sdk/android-2.3.3.html) Android 2.3.3 adds platform and API support for Bluetooth nonsecure socket connections. This lets applications communicate with simple devices that may not offer a UI for authentication. Has anybody got any examples that connect to non-secure devices that do not exchange a passkey? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Img tag replaced in Intent
I looked at the Intent before I trigger startActivity in ActivityA. It's all there and when I append it to an EditText in this Activity, the image is displayed. Then when I look at the Intent in onCreate of ActivityB the img .. / is replaced by  (#65532;) and that is what is shown in the EditText. I will do some debugging and see what I come up with. On Jun 24, 1:08 pm, Mark Murphy mmur...@commonsware.com wrote: How are you generating your --START-- --END-- output? If you're dumping that to LogCat, I wouldn't be surprised if you get gibberish output. What happens if you put the SpannedString into a TextView? On Fri, Jun 24, 2011 at 7:04 AM, rochdev develo...@rochdev.com wrote: In the new Activity, which I don't have control of, the HTML is appended to an EditText so it have to be passed styled. I'm just curious of this behavior, why and where it's replaced. On Jun 24, 12:18 pm, Mark Murphy mmur...@commonsware.com wrote: Why not just pass the HTML as a String? On Fri, Jun 24, 2011 at 2:47 AM, rochdev develo...@rochdev.com wrote: Hi, I'm unsure if this is a feature or a bug. What I'm trying to do is to pass some styled text between two activities. final Intent intent = new Intent(this, ActivityB.class); intent.putExtra(message, Html.fromHtml(My bimage/b br / img src=\http://example.com/image.png\; /, imageGetter, null)); startActivity(intent); Then when I retrieve my text in the new Activity the entire img tag is replaced by #65532; (OBJ - symbol). CharSequence message = intent.getCharSequenceExtra(message); START message pMy bimage/b br #65532;/p END Any thoughts? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Integrating ACRA
Anything? On Fri, Jun 24, 2011 at 2:42 PM, Raghav Sood raghavs...@gmail.com wrote: Hi all, I am trying to integrate ACRA in my app. I followed the instructions on there wiki page for the 4.X beta release. I am receiving errors in the class which extends application. The class reads as follows:\ package com.raghavsood.quaker; import android.app.Application; import org.acra.*; import org.acra.annotation.*; @ReportsCrashes(formKey = dEJzNUpJdWpRbE1ycWRyT3lOenh3dHc6MQ) public class MyApplication extends Application{ @Override public void onCreate() { // The following line triggers the initialization of ACRA ACRA.init(this); super.onCreate(); } } @ReportCrashes is giving an error and says I should make a new annotation for it. ACRA says that I should create a class, parameter, constant, local variable or field. Any idea on how to fix these errors? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Integrating ACRA
On Fri, Jun 24, 2011 at 7:26 AM, Raghav Sood raghavs...@gmail.com wrote: Anything? If you want responses in under two hours, hire a consultant. If you wish to limit yourself to the free volunteer assistance, I suggest that you just patiently wait for help, here or on the ACRA support Google Group, where you cross-posted: http://groups.google.com/group/acra-discuss By patiently I mean don't bump your post until at least 48 hours have passed. Since I have not used ACRA yet myself, I have no answer to your questions. The acra-discuss list will be your most likely resource, beyond looking at their sample code. This is doubly true since you are using a beta release. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Integrating ACRA
Thanks. I did look at there example code. As far as I can see I have literally copy pasted everything, making minor changes like the package name etc. Yet it fails to work. I can't test it because the errors do not let it compile. Still, thanks for replying at least. On Fri, Jun 24, 2011 at 5:05 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jun 24, 2011 at 7:26 AM, Raghav Sood raghavs...@gmail.com wrote: Anything? If you want responses in under two hours, hire a consultant. If you wish to limit yourself to the free volunteer assistance, I suggest that you just patiently wait for help, here or on the ACRA support Google Group, where you cross-posted: http://groups.google.com/group/acra-discuss By patiently I mean don't bump your post until at least 48 hours have passed. Since I have not used ACRA yet myself, I have no answer to your questions. The acra-discuss list will be your most likely resource, beyond looking at their sample code. This is doubly true since you are using a beta release. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to update widget ?
Hi, If i set action to intent then am i able to get it in onReceive of appwidgetprovider? On Fri, Jun 24, 2011 at 3:25 AM, Hitendrasinh Gohil hitendra.virtuei...@gmail.com wrote: can you provide me some link how to deal with widget ids? On Fri, Jun 24, 2011 at 3:11 AM, Kostya Vasilyev kmans...@gmail.comwrote: You're almost there with your code. The pending intent should relate to something in your code which would update the widget. You don't have to wait for onUpdate (which is called by the system when needed), rather you can get the AppWidgetManager yourself and make an update at any time. You will need to either know the widget Id(s) you're going to update, or update all of them by using AppWidgetManager.update that takes a ComponentName. -- Kostya 2011/6/24 Hitendrasinh Gohil hitendra.virtuei...@gmail.com Hi, I have made three classess. MainActivity AppWidgetService AppWidget As i am able to update widget from activity through service.I have one button in wiget.i want to update widget onclick of the button. Here is my code for AppWidgetService. package com.widget.main; import android.app.IntentService; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.widget.RemoteViews; public class AppWidgetService extends IntentService { public AppWidgetService() { super(AppWidgetService); // TODO Auto-generated constructor stub } @Override protected void onHandleIntent(Intent intent) { ComponentName componentName = new ComponentName(this, AppWidget.class); RemoteViews remoteViews = new RemoteViews(com.widget.main, R.layout.appwidget); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); remoteViews.setTextViewText(R.id.TextView01, MainActivity.listarray[MainActivity.currentIndex]); Intent activityIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, activityIntent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageView01, pendingIntent); /* Intent serviceIntent = new Intent(this, AppWidgetService.class); PendingIntent pendingserviceIntent = PendingIntent.getService( getApplicationContext(), 0, serviceIntent,PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageButton01,pendingserviceIntent);*/ appWidgetManager.updateAppWidget(componentName, remoteViews); } } and here is my code for widget class. package com.widget.main; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class AppWidget extends AppWidgetProvider { public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,AppWidgetService.class)); } } so how can i update widget when click on widget button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Twitter integration - AccessToken issue
Hi all, I am using twitter4j library to integrate my app with Twitter. I am past the authorization request, callback and I have the token and tokenSecret back from the authentication. What's the problem? I am getting a java.lang.IllegalArgumentException: Invalid access token format error when I try to use these AccessToken accessToken = new AccessToken(token, tokenSecret); // throws exception Anyone else seen this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multi Tag and Record in NFC
What do you mean exactly by Multi-Tag? You can write a NDEF message which contains several NDEF records, but only the type of the first record is used to decide which application is started (i.e. which intent is raised). If you access the card with the tech-APIs, then you can write several NDEF messages onto a tag. Best wishes Dominik -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Twitter integration - AccessToken issue
On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com wrote: Hi all, I am using twitter4j library to integrate my app with Twitter. I am past the authorization request, callback and I have the token and tokenSecret back from the authentication. What's the problem? I am getting a java.lang.IllegalArgumentException: Invalid access token format error when I try to use these AccessToken accessToken = new AccessToken(token, tokenSecret); // throws exception Anyone else seen this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en what do u want to do in the next step? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Twitter integration - AccessToken issue
This is what im doing to update a tweet. Twitter twitter = new TwitterFactory().getInstance(); twitter.setOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); twitter.setOAuthAccessToken(accessToken); twitter.updateStatus(Send from my app!); Everything seems fine apart from the AccessToken... On Jun 24, 12:54 pm, ram dharan rdhara...@gmail.com wrote: On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com wrote: Hi all, I am using twitter4j library to integrate my app with Twitter. I am past the authorization request, callback and I have the token and tokenSecret back from the authentication. What's the problem? I am getting a java.lang.IllegalArgumentException: Invalid access token format error when I try to use these AccessToken accessToken = new AccessToken(token, tokenSecret); // throws exception Anyone else seen this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en what do u want to do in the next step? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Twitter integration - AccessToken issue
AccessToken actoken=new AccessToken(CONSUMER_KEY, CONSUMER_SECRET); Twitter twitter=new TwitterFactory().getInstance(); twitter.setOAuthConsumer(ConstantsDemo.CONSUMER_KEY,ConstantsDemo.CONSUMER_SECRET); twitter.setOAuthAccessToken(actoken); try { twitter.updateStatus(msg); } catch (TwitterException e) { // TODO Auto-generated catch block e.printStackTrace(); This is what i did too,r u sending ConsumerKey and Consumer_Secret Properly On Fri, Jun 24, 2011 at 5:29 PM, Albert albert8...@googlemail.com wrote: This is what im doing to update a tweet. Twitter twitter = new TwitterFactory().getInstance(); twitter.setOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); twitter.setOAuthAccessToken(accessToken); twitter.updateStatus(Send from my app!); Everything seems fine apart from the AccessToken... On Jun 24, 12:54 pm, ram dharan rdhara...@gmail.com wrote: On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com wrote: Hi all, I am using twitter4j library to integrate my app with Twitter. I am past the authorization request, callback and I have the token and tokenSecret back from the authentication. What's the problem? I am getting a java.lang.IllegalArgumentException: Invalid access token format error when I try to use these AccessToken accessToken = new AccessToken(token, tokenSecret); // throws exception Anyone else seen this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en what do u want to do in the next step? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to update widget ?
I know a couple ways, there may be more. One is to use an extra on the Intent that's used to make the PendingIntent, in whcih case you need to use unique request codes (the second paramter). Another is to use another Intent with an int widgetId extra, convert it to a Uri using Intent.toUri(SCHEME_INTENT), and use the result as the data Uri in the Intent that's used to make the PendingIntent. ( This is the house that Jack built ) The second way is used in the 3.0's weather widget sample, IIRC. -- Kostya 2011/6/24 Hitendrasinh Gohil hitendra.virtuei...@gmail.com can you provide me some link how to deal with widget ids? On Fri, Jun 24, 2011 at 3:11 AM, Kostya Vasilyev kmans...@gmail.comwrote: You're almost there with your code. The pending intent should relate to something in your code which would update the widget. You don't have to wait for onUpdate (which is called by the system when needed), rather you can get the AppWidgetManager yourself and make an update at any time. You will need to either know the widget Id(s) you're going to update, or update all of them by using AppWidgetManager.update that takes a ComponentName. -- Kostya 2011/6/24 Hitendrasinh Gohil hitendra.virtuei...@gmail.com Hi, I have made three classess. MainActivity AppWidgetService AppWidget As i am able to update widget from activity through service.I have one button in wiget.i want to update widget onclick of the button. Here is my code for AppWidgetService. package com.widget.main; import android.app.IntentService; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Intent; import android.widget.RemoteViews; public class AppWidgetService extends IntentService { public AppWidgetService() { super(AppWidgetService); // TODO Auto-generated constructor stub } @Override protected void onHandleIntent(Intent intent) { ComponentName componentName = new ComponentName(this, AppWidget.class); RemoteViews remoteViews = new RemoteViews(com.widget.main, R.layout.appwidget); AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this); remoteViews.setTextViewText(R.id.TextView01, MainActivity.listarray[MainActivity.currentIndex]); Intent activityIntent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity( getApplicationContext(), 0, activityIntent, PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageView01, pendingIntent); /* Intent serviceIntent = new Intent(this, AppWidgetService.class); PendingIntent pendingserviceIntent = PendingIntent.getService( getApplicationContext(), 0, serviceIntent,PendingIntent.FLAG_UPDATE_CURRENT); remoteViews.setOnClickPendingIntent(R.id.ImageButton01,pendingserviceIntent);*/ appWidgetManager.updateAppWidget(componentName, remoteViews); } } and here is my code for widget class. package com.widget.main; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class AppWidget extends AppWidgetProvider { public void onUpdate(Context context,AppWidgetManager appWidgetManager,int[] appWidgetIds) { super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,AppWidgetService.class)); } } so how can i update widget when click on widget button? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Hitendrasinh Gohil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
[android-developers] how to create a apk file
Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Twitter integration - AccessToken issue
ummm... this is what Im doing: commonHttpOAuthConsumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); //DefaultOAuthProvider authProvider = new CommonsHttpOAuthProvider(https:// api.twitter.com/oauth/request_token, https://api.twitter.com/oauth/access_token;, https:// api.twitter.com/oauth/authorize); authProvider.setOAuth10a(true); try { String oAuthURL = authProvider.retrieveRequestToken(commonHttpOAuthConsumer, CALLBACK_URL); persistProviderConsumer(); //here i save the provider and comsumer this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(oAuthURL))); } catch (OAuthMessageSignerException e) { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); e.printStackTrace(); } catch (OAuthNotAuthorizedException e) { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); e.printStackTrace(); } catch (OAuthExpectationFailedException e) { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); e.printStackTrace(); } catch (OAuthCommunicationException e) { Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show(); e.printStackTrace(); } Then when the authorization is made on the web, it returns to my activity and i get the uri: String otoken = uri.getQueryParameter(OAuth.OAUTH_TOKEN); String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER); Log.d(TAG, verifier +verifier); Log.d(TAG, oToken +otoken); loadProviderConsumer(); //here i recover the provider and comsumer Log.d(TAG, comsumer oToken +commonHttpOAuthConsumer.getToken()); // this will populate token and token_secret in consumer try { authProvider.retrieveAccessToken(commonHttpOAuthConsumer, verifier); } catch (OAuthMessageSignerException e) { Log.d(TAG, OAuthMessageSignerException - ); e.printStackTrace(); } catch (OAuthNotAuthorizedException e) { Log.d(TAG, OAuthNotAuthorizedException - ); e.printStackTrace(); } catch (OAuthExpectationFailedException e) { Log.d(TAG, OAuthExpectationFailedException - ); e.printStackTrace(); } catch (OAuthCommunicationException e) { Log.d(TAG, OAuthCommunicationException - ); e.printStackTrace(); } String token = commonHttpOAuthConsumer.getToken(); String tokenSecret = commonHttpOAuthConsumer.getTokenSecret(); Log.d(TAG, token +token+ token secret +tokenSecret); saveToken(this, token); saveTokenSecret(this, tokenSecret); On Jun 24, 1:05 pm, ram dharan rdhara...@gmail.com wrote: AccessToken actoken=new AccessToken(CONSUMER_KEY, CONSUMER_SECRET); Twitter twitter=new TwitterFactory().getInstance(); twitter.setOAuthConsumer(ConstantsDemo.CONSUMER_KEY,ConstantsDemo.CONSUMER_ SECRET); twitter.setOAuthAccessToken(actoken); try { twitter.updateStatus(msg);} catch (TwitterException e) { // TODO Auto-generated catch block e.printStackTrace(); This is what i did too,r u sending ConsumerKey and Consumer_Secret Properly On Fri, Jun 24, 2011 at 5:29 PM, Albert albert8...@googlemail.com wrote: This is what im doing to update a tweet. Twitter twitter = new TwitterFactory().getInstance(); twitter.setOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET); twitter.setOAuthAccessToken(accessToken); twitter.updateStatus(Send from my app!); Everything seems fine apart from the AccessToken... On Jun 24, 12:54 pm, ram dharan rdhara...@gmail.com wrote: On Fri, Jun 24, 2011 at 5:16 PM, Albert albert8...@googlemail.com wrote: Hi all, I am using twitter4j library to integrate my app with Twitter. I am past the authorization request, callback and I have the token and tokenSecret back from the authentication. What's the problem? I am getting
Re: [android-developers] how to create a apk file
http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Integrating ACRA
I'm not at my pc right now, so I can't check, but have you added the acra jar to the build path? It's in the instructions, so perhaps you missed that bit? Andrew On 24 Jun 2011 19:40, Raghav Sood raghavs...@gmail.com wrote: Thanks. I did look at there example code. As far as I can see I have literally copy pasted everything, making minor changes like the package name etc. Yet it fails to work. I can't test it because the errors do not let it compile. Still, thanks for replying at least. On Fri, Jun 24, 2011 at 5:05 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 24, 2011 at 7:26 AM, Raghav Sood raghavs...@gmail.com wrote: Anything? If you want responses in under two hours, hire a consultant. If you wish to limit yourself to the free volunteer assistance, I suggest that you just patiently wait for help, here or on the ACRA support Google Group, where you cross-posted: http://groups.google.com/group/acra-discuss By patiently I mean don't bump your post until at least 48 hours have passed. Since I have not used ACRA yet myself, I have no answer to your questions. The acra-discuss list will be your most likely resource, beyond looking at their sample code. This is doubly true since you are using a beta release. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
i saw there but how i create keystore coz i m not able to create keystore On Fri, Jun 24, 2011 at 6:13 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
Don't you understand English... I told you just put your comment in the blog regarding what you are asking... I will give you reply there... On Fri, Jun 24, 2011 at 6:43 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
To create a keystore you must register as a developer at Android Market, pay the $25 fee and then you'll be able to create the keystore ;D 2011/6/24 Ankit Kasliwal kasliwalankit2...@gmail.com i saw there but how i create keystore coz i m not able to create keystore On Fri, Jun 24, 2011 at 6:13 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What are your thoughts on this service - activity communication pattern?
The entire Activity configuration change happens as one atomic event on the UI thread, so there is never anything in the middle of rotation. As far as statics go - they don't just magically disappear. Statics are lost when the process is killed, like all other variables (and open files, etc.). Now as for when that can happen, read the docs. -- Kostya 2011/6/24 Zsombor scythe...@gmail.com My activities start long running jobs that involve network communication. So handling these jobs with an IntentService seems perfectly reasonable. I also need to handle the results of these jobs, if the Activity that started this is active in the time of completion. The case that gave me a headache is what if the device is in the middle of a rotation, and the Service finishes a job? Currently, the service broadcasts an intent with the results as extras. The activities register and unregister a receiver for this completion-intent in onResume and onPaused. This way I don't have to tell the service explicitly, which listener it has to notify upon completion, it only has to make a broadcast. But with this design I can't handle cases where the job finishes, but the Acitivity is not resumed - it might be in the middle of a rotation, or the user could've switched to another app temporarily, etc. So I had the idea to implement a postbox pattern: I'd extend the Application object (or use a static object) that has a postbox object. The IntentService puts the results of the completed jobs inside this box, with a unique jobId, and makes a broadcast indicating that the postbox has new things. If an Acitivty is active, it receives this broadcast, checks the postbox, and handles the results as needed. Besides, every Acitivity checks the postbox in onResume(), for possible missed messages containing job-results. I'm avare that static objects could be destroyed without notice. But this pattern might solve the rotation problem stated above - I'm quite sure that the Application object survives the device rotation, or am I missing something? So what do you think of this pattern? Is there something fatal I missed? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Svar: how to create a apk file
Ankit, Please check http://geosoft.no/development/android.html. Item #8 for creating a keystore, #14 for creating an unsigned .apk, and #15 for signing the .apk file. Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] how to create a apk file
Dear i understand English but at that time i ask u keystore and u not mention in ur mail that comment over there and i ll reply u. u just say comment over there so just do one thing use your words carefully. Thanks! On Fri, Jun 24, 2011 at 6:15 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Don't you understand English... I told you just put your comment in the blog regarding what you are asking... I will give you reply there... On Fri, Jun 24, 2011 at 6:43 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com
Re: [android-developers] how to create a apk file
Thanks Jorge Luis i though it's free On Fri, Jun 24, 2011 at 6:15 PM, Jorge Luis jorgelferr...@gmail.com wrote: To create a keystore you must register as a developer at Android Market, pay the $25 fee and then you'll be able to create the keystore ;D 2011/6/24 Ankit Kasliwal kasliwalankit2...@gmail.com i saw there but how i create keystore coz i m not able to create keystore On Fri, Jun 24, 2011 at 6:13 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Sorry what you say i am not able to understand. On Fri, Jun 24, 2011 at 5:59 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: Comment over there... On Fri, Jun 24, 2011 at 6:27 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Hi hey is *Unsigned APK but i need signed APK.* On Fri, Jun 24, 2011 at 5:46 PM, Mohammed Hossain Doula hossaindo...@gmail.com wrote: http://hossaindoula.blogspot.com/2011/06/create-apk-android-package-file.html On Fri, Jun 24, 2011 at 6:11 PM, Ankit Kasliwal kasliwalankit2...@gmail.com wrote: Dear All, Hi everyone please any one tell me the process of creating apk file with full step. Thanks in advance. -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *-- Mohammed Hossain Doula Software Engineer desme INC.* *www: http://www.hossaindoula.com @: ron...@desme.com* *facebook: http://www.facebook.com/ROnyWorld* *twitter: http://www.twitter.com/hossaindoula* *blogspot: hossaindoula.blogspot.com GSM: 00880-167-4347101* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Svar: how to create a apk file
Thanks Mark. On Fri, Jun 24, 2011 at 6:26 PM, Mark S. jacob.dre...@geosoft.no wrote: Ankit, Please check http://geosoft.no/development/android.html. Item #8 for creating a keystore, #14 for creating an unsigned .apk, and #15 for signing the .apk file. Regards, Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks and Regards, Ankit Kasliwal kasliwalankit2...@gmail.com +91-9300-940-136 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play large size video from sdcard in android
Not yet. You haven't asked enough times...Oh wait. 5 times already today...The same question? Yes, the same basic question 5 times in a 4 hours. Ok, since you asked so many times it must be urgent for me. Oh wait. No it isn't that urgent for me, but I might get around to it when I have a bit more time on my hands this evening (in about another 5 hours from now). Regards, Peter On Jun 24, 12:40 pm, naveen kumar kumarnaveen.si...@gmail.com wrote: On Jun 24, 2:20 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:18 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: On Jun 24, 1:30 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/examp. .. On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start(); } catch (Exception e) { e.printStackTrace(); }
[android-developers] Static boolean in Service resets after device comes back to sleep?
I have a Service that is launched from in a widget, when the service start's it sets a static boolean to either true or false depending if it's able to connect to a device in my home network. I have different buttons on my widget performing different task if we are connected, I also have an alarm that triggers an update at different intervals ( it sends a specific Intent to the widget ). Everything works fine, but if I leave the phone long enough it goes into sleep and when I return the buttons won't send any actions to the device because for some reason the connected boolean has changed from true to false. The strange thing is that if we are unable to connect the device, it prints out Unable to connect in the widget. But in this case it doesn't but the boolean has still changed to false. Example: if (mConnection.getConnection() != null) { CONNECTED = true; doStuff(); } else { CONNECTED = false; updateWidget(Unable to connect); stopSelf(); } So if the Service has been killed, and is re-launched and unable to connect the widget would have said Unable to connect instead shows a message that has not been valid for some minutes (and should have changed when the automated update triggers). I know my onClickListeners work because one button doesn't send a command but instead opens up an Activity, and that still works. Any ideas for this strange behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Error with HTTP Client
06-24 10:15:46.780: ERROR/InputDispatcher(118): channel '40c11ef0 com.ibssistemas.app/com.ibssistemas.app.principal (server)' ~ Consumer closed input channel or an error occurred. events=0x8 06-24 10:15:46.780: ERROR/InputDispatcher(118): channel '40c11ef0 com.ibssistemas.app/com.ibssistemas.app.principal (server)' ~ Channel is unrecoverably broken and will be disposed! WTH is this supposed to means and how do i fix this? o.O -- Jorge Luis Ferrari Cé Desenvolvedor / Web Designer Siga @JLFerrari -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Static boolean in Service resets after device comes back to sleep?
After reading my text I just realized something! in the service onStartCommand() i check if the passed intent is != null and if that is the case proceed to check the connection state. But if the service was killed while in idle the intent would have been null and i would NOT have proceeded to check the connection state and the static boolean would now be false (senes the service has been re-created). I made fix so that if(intent != null) { doStuff(); } else { checkConnection();}. Now if the service is killed and later restarted it would check for the connection! // Fredrik On Jun 24, 3:18 pm, Freddman fredd...@gmail.com wrote: I have a Service that is launched from in a widget, when the service start's it sets a static boolean to either true or false depending if it's able to connect to a device in my home network. I have different buttons on my widget performing different task if we are connected, I also have an alarm that triggers an update at different intervals ( it sends a specific Intent to the widget ). Everything works fine, but if I leave the phone long enough it goes into sleep and when I return the buttons won't send any actions to the device because for some reason the connected boolean has changed from true to false. The strange thing is that if we are unable to connect the device, it prints out Unable to connect in the widget. But in this case it doesn't but the boolean has still changed to false. Example: if (mConnection.getConnection() != null) { CONNECTED = true; doStuff(); } else { CONNECTED = false; updateWidget(Unable to connect); stopSelf(); } So if the Service has been killed, and is re-launched and unable to connect the widget would have said Unable to connect instead shows a message that has not been valid for some minutes (and should have changed when the automated update triggers). I know my onClickListeners work because one button doesn't send a command but instead opens up an Activity, and that still works. Any ideas for this strange behaviour? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Integrating ACRA
I definitely added the jar to the build path. The import statements work fine. Only the ACRA.init(this); and @ReportCrashes gives errors. On Fri, Jun 24, 2011 at 5:50 PM, Andrew Gregory andrew.greg...@gmail.comwrote: I'm not at my pc right now, so I can't check, but have you added the acra jar to the build path? It's in the instructions, so perhaps you missed that bit? Andrew On 24 Jun 2011 19:40, Raghav Sood raghavs...@gmail.com wrote: Thanks. I did look at there example code. As far as I can see I have literally copy pasted everything, making minor changes like the package name etc. Yet it fails to work. I can't test it because the errors do not let it compile. Still, thanks for replying at least. On Fri, Jun 24, 2011 at 5:05 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 24, 2011 at 7:26 AM, Raghav Sood raghavs...@gmail.com wrote: Anything? If you want responses in under two hours, hire a consultant. If you wish to limit yourself to the free volunteer assistance, I suggest that you just patiently wait for help, here or on the ACRA support Google Group, where you cross-posted: http://groups.google.com/group/acra-discuss By patiently I mean don't bump your post until at least 48 hours have passed. Since I have not used ACRA yet myself, I have no answer to your questions. The acra-discuss list will be your most likely resource, beyond looking at their sample code. This is doubly true since you are using a beta release. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to play large size video from sdcard in android
On Jun 24, 6:08 pm, Peter Stacey peterst6...@gmail.com wrote: Not yet. You haven't asked enough times...Oh wait. 5 times already today...The same question? Yes, the same basic question 5 times in a 4 hours. Ok, since you asked so many times it must be urgent for me. Oh wait. No it isn't that urgent for me, but I might get around to it when I have a bit more time on my hands this evening (in about another 5 hours from now). Regards, Peter On Jun 24, 12:40 pm, naveen kumar kumarnaveen.si...@gmail.com wrote: On Jun 24, 2:20 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:18 PM, naveen kumar kumarnaveen.si...@gmail.comwrote: On Jun 24, 1:30 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: On Fri, Jun 24, 2011 at 12:44 PM, Miguel Morales therevolti...@gmail.comwrote: http://developer.android.com/resources/samples/ApiDemos/src/com/examp. .. On Thu, Jun 23, 2011 at 11:48 PM, naveen kumar kumarnaveen.si...@gmail.com wrote: Hello Google Android Developer, I am trying to play large video from sdcard by android code, that is not playing,i dont want to play video from url, so please help me how to play large video in android from local folder.. In case of XCODE by using mediaplayer they able to play any type of large video. Android also supports mediaplayer api for media file. Here i am only listening the voice i am not able to place view on surface holder. is possible to see video using mediaplayer in android framework. Please someone reply me clearly. if not solution then kindly help me for to divide the 1gb file in 300MB. Thanks, in advance i am not getting perfect answer by google. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- ~ Jeremiah:9:23-24 Android 2D MMORPG:http://solrpg.com/, http://www.youtube.com/user/revoltingx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en package com.halosys.VideoPlayer; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.View; import android.view.View.OnTouchListener; import android.widget.VideoView; public class ActivityMediaPlayer extends Activity implements SurfaceHolder.Callback, MediaPlayer.OnBufferingUpdateListener, MediaPlayer.OnCompletionListener, MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener { private static final String TAG = VideoMAN; final MediaPlayer p = new MediaPlayer(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); log(launched); final VideoView vv = (VideoView) findViewById(R.id.surface_view); try { vv.setEnabled(true); vv.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) try { p.setDataSource(/sdcard/watch/movie.mp4) ; //.getFileDescriptor()); // p.setDisplay(vv.getHolder()); p.setOnBufferingUpdateListener(ActivityMediaPlayer.this); p.setOnCompletionListener(ActivityMediaPlayer.this); p.setOnErrorListener(ActivityMediaPlayer.this); p.setOnPreparedListener(ActivityMediaPlayer.this); log(clicked...); p.prepareAsync(); vv.start();
Re: [android-developers] Spinner did not got focus
thanx i solved this by using set focusable and focusableInTouchMode properties of spinner. On Thu, Jun 23, 2011 at 2:25 AM, TreKing treking...@gmail.com wrote: On Wed, Jun 22, 2011 at 10:44 AM, Waqas Ahmed thewaqa...@gmail.comwrote: Is there any way that spinner got the focus? Try Focusable and Focusable In Touch Mode properties. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Default SMS Activity Result code coming asRESULT_CANCELED even SMS is received successfully
Copy of the help startActivityForResult(). See the Note on why the result might not be as expected. John Launch an activity for which you would like a result when it finished. When this activity exits, your onActivityResult() method will be called with the given requestCode. Using a negative requestCode is the same as calling startActivity (the activity is not launched as a sub-activity). Note that this method should only be used with Intent protocols that are defined to return a result. In other protocols (such as Intent.ACTION_MAIN or Intent.ACTION_VIEW), you may not get the result when you expect. For example, if the activity you are launching uses the singleTask launch mode, it will not run in your task and thus you will immediately receive a cancel result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] App installs on emulator but not on device
Hi all, I updated my app and now it doesn't install on my device but works perfectly on the emulator. Both are running Froyo(2.2). On the phone it reaches the installing application screen but then says Application Not Installed. The only change made to my app was that I replaced admob with airpush. I am attaching the compiled apk. It may be that something is wrong with my phone. I added airpush by the exact same steps that I did in another app, which works flawlessly. Could someone please check if it installs on there phone? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Knots And Crosses.apk Description: application/vnd.android.package-archive
Re: [android-developers] App installs on emulator but not on device
On Fri, Jun 24, 2011 at 10:52 AM, Raghav Sood raghavs...@gmail.com wrote: Hi all, I updated my app and now it doesn't install on my device but works perfectly on the emulator. Both are running Froyo(2.2). On the phone it reaches the installing application screen but then says Application Not Installed. The only change made to my app was that I replaced admob with airpush. I am attaching the compiled apk. It may be that something is wrong with my phone. I added airpush by the exact same steps that I did in another app, which works flawlessly. Could someone please check if it installs on there phone? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Uninstall the app from the phone, manually? Did you try this? Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Job Opportunity/ Freelance Android Developer
Hi, Maybe you are also looking for Android developer? I have designed several Android applications, but I prefer programming :) If so, I could send you my App porfolio and more information. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App installs on emulator but not on device
Yes I did. It didn't work. Any other ideas. On 6/24/11, Kristopher Micinski krismicin...@gmail.com wrote: On Fri, Jun 24, 2011 at 10:52 AM, Raghav Sood raghavs...@gmail.com wrote: Hi all, I updated my app and now it doesn't install on my device but works perfectly on the emulator. Both are running Froyo(2.2). On the phone it reaches the installing application screen but then says Application Not Installed. The only change made to my app was that I replaced admob with airpush. I am attaching the compiled apk. It may be that something is wrong with my phone. I added airpush by the exact same steps that I did in another app, which works flawlessly. Could someone please check if it installs on there phone? Thanks -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en Uninstall the app from the phone, manually? Did you try this? Kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Raghav Sood http://www.raghavsood.com/ http://www.androidappcheck.com/ http://www.telstop.tel/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: update spinner
I try this but it still didn't work. did you have an example of using two spinners. thanks On Jun 24, 1:19 am, TreKing treking...@gmail.com wrote: On Thu, Jun 23, 2011 at 6:03 PM, Indicator Veritatis mej1...@yahoo.comwrote: Well now, TreKing, I have read the documentation on both, and I still don't consider the answer obvious. OP asked How can i update my spinner with the last value i have choise, using shared preference?? Taking the question at face value, this implies to me A) getting and setting the value from / to a Spinner, which you can do with obviously named methods and B) getting and setting this value from / to a SharedPreference, which you can also do with equally obviously named methods. The details of a full working scenario are, of course, a bit more involved but given the question, the answer is readily obtained by a good perusal of the docs, IMHO. Not even after also noticing from the Spinner Tutorial that he should use an Adapter too, most likely SpinnerAdapter. Even what seems 'obvious' after reading all that just looks and feels wrong, object disoriented. OK - seems beyond the scope of the question posed though. Especially since the Android word 'Adapter' is not very closely related to the Adapter Pattern its name so strongly suggests. An Android Adapter provides the interface by which a user-defined object can be used and represented in Android's system. It adapts your object to Android's way of displaying data. Seems aptly named to me. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Expandable List and Intents
hi all, sorry for my english, i have a problem with my expandable list. I have tried to fix this with many ways but i didn't achieve anything. So, I have an expandable list view, with simpleExpandable List Adapter. My list is ok, but when i call an intent , for example in groupClick , doesn't work. my code is like this(maybe some of those): Override public boolean onGroupClick (ExpandableListView parent, View v, int groupPosition, int childPosition, long id){ super.onGroupClick(parent, v, g, c,id); Intent i = new Intent(this, NoteEdit.class); i.putExtra(NotesDbAdapter.KEY_SID,ii); startActivityForResult(i, ACTIVITY_EDIT); return true; } Also, my NoteEdit class is correct, and that's why i get the code from the notepad3 (android samples). Thanks for some help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: update spinner
On Fri, Jun 24, 2011 at 10:21 AM, souissi haythem haythe...@gmail.comwrote: I try this but it still didn't work. You should expand on what this is that you tried and what didn't work means, if you want help. did you have an example of using two spinners. Did you Google Android Spinner Example? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: update spinner
Ummm intgetSelectedItemPositionhttp://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItemPosition() () Return the position of the currently selected item within the adapter's data set voidsetSelectionhttp://developer.android.com/reference/android/widget/AdapterView.html#setSelection(int)(int position) Sets the currently selected item. -- Kostya 2011/6/24 souissi haythem haythe...@gmail.com I try this but it still didn't work. did you have an example of using two spinners. thanks On Jun 24, 1:19 am, TreKing treking...@gmail.com wrote: On Thu, Jun 23, 2011 at 6:03 PM, Indicator Veritatis mej1...@yahoo.com wrote: Well now, TreKing, I have read the documentation on both, and I still don't consider the answer obvious. OP asked How can i update my spinner with the last value i have choise, using shared preference?? Taking the question at face value, this implies to me A) getting and setting the value from / to a Spinner, which you can do with obviously named methods and B) getting and setting this value from / to a SharedPreference, which you can also do with equally obviously named methods. The details of a full working scenario are, of course, a bit more involved but given the question, the answer is readily obtained by a good perusal of the docs, IMHO. Not even after also noticing from the Spinner Tutorial that he should use an Adapter too, most likely SpinnerAdapter. Even what seems 'obvious' after reading all that just looks and feels wrong, object disoriented. OK - seems beyond the scope of the question posed though. Especially since the Android word 'Adapter' is not very closely related to the Adapter Pattern its name so strongly suggests. An Android Adapter provides the interface by which a user-defined object can be used and represented in Android's system. It adapts your object to Android's way of displaying data. Seems aptly named to me. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Title bar progress indicators - independent or connected?
In an upcoming project of mine, I'd like to show and hide the progress bar and indeterminate progress indicators in the title bar independently, indicating different things. Has anyone tried this? If so, did it work? While I could try it when I get to that part of the project, I'd rather check first to see if anyone else has tried it, and either succeeded or failed. If it's not going to work, that'll help guide the GUI while it's still in the design phase. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: authentication of an app in facebook
On Fri, Jun 24, 2011 at 1:31 AM, Ali Chousein ali.chous...@gmail.comwrote: @TreKing: Any Android SDK integration question can perfectly be asked here. Unless I'm reading the wrong post, there is not a single mention of integrating anything into the Android SDK. The OP's question was about authenticating with Facebook. This has nothing to do with integrating with the Android SDK, and, as such, is not relevant to this list. Please don't try to stop the majority of the discussions. I didn't realize I had made an effort to stop any discussions. The OP posed a questions which I believe was not appropriate for this list and I opined as such. I did not delete the question or tell anyone to not respond. You are neither the police nor the owner of this platform; so please don't try to act like one. I am aware of that and don't recall ever stating such things. I don't see how directing a poster asking about authenticating with Facebook to a forum dedicated to questions about Facebook could be construed as being the police or owner of anything. If you don't know the answer just don't write anything. More often than not, people posting here don't really need answers, they need direction - I tried to direct the OP to where the solution to authenticating with Facebook could be found. The question of Anusha was perfectly valid: Integration of Facebook Android SDK. He is not talking about Hong Kong stock exhange. No, it's not valid - nowhere in the OP's original post is mentioned Integration of Facebook Android SDK. You seem to be making this up to prove some point. Really, please, don't try to stop the majority of the discussions. I still have no idea what this means. Do it like the rest of us. If you don't have anything to say, please don't react. It's easier. Yes, I agree - it is easier to do like the rest of you and ignore the vast majority of posts that come through here. I choose not to. I'm sorry if that offends you. Some of the members are really newbies, but probably eager to learn and also with talent. Right - lots of newbies here - many of which don't understand the difference between Android SDK and Facebook SDK and that these are different things. So instead of ignoring these posts, I try to direct them to finding a more appropriate venue for their question. I'm sorry you disagree with this. Don't forget, you also used to be a newbie. Nope, I was never a newbie - I was born tethered to my mom via USB. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] What OS is more user friendly for Android development.
I have found some problems with Ubuntu and Windows when I connected Dell Streak device, its not detecting in DDMS tool, then I am unable to debug my app. I try download the related drivers still not detecting. Could you suggest me how can I avoid USB drivers problem while connecting to DDMS debugging. Which OS is more flexible for Apps and OEM development (its should not give driver problems or detection error). How much MacOS is good for debugging and image creations. Is it more suggestible than Windows and Ubuntu? Finally What OS is more preferable for Android Apps and OEM development? Windows or Ubuntu or Mac OS. Please suggest me advantages and disadvantages. BR Srinivas -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en