Re: [android-developers] android lazarus based pascal dev on windows
Delphi XE2 has some cross-platform capabilities. Check it out on Emarcaderos web site. I'm not sure Lazarus has that capability, On Feb 21, 2012 3:03 PM, Siva sivabsang...@gmail.com wrote: Hi all ... I would like to know if any of you guys have worked on app dev with pascal ..?? Please share it here... 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] Re: How to detect motion on android device
Take a look at http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html First. You implement the interface, but you forgot to register them. One I caught was kamera.setOneShotPreviewCallback ( Camera.PreviewCallback() ); Another thing to remember is to have the permission setup right. you need uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ uses-permission android:name=android.permission.CAMERA/ on your manifest. I was running the code, so I also got some error in the PreviewCallBack() interface, but I think you can pick it up from here. This other link should be helpful as well http://stackoverflow.com/questions/5212531/android-byte-to-image-in-camera-onpreviewframe on how to handle the data array. On Mar 23, 1:42 am, Hery Irawan irawanfi...@gmail.com wrote: Sorry If I make mistake, I'm newbie in this forum and newbie in learning android programming On Mar 23, 7:41 am, Lew lewbl...@gmail.com wrote: Hery Irawan wrote: Hi, I want to create motion detection app, but I still have a problem with my code You have many problems with your code. I think you're getting 'NullPointerException' (NPE). Do you see this in your logcat? As TreKing has told you (twice!) you must tell us what is wrong. I have a problem is a very useless way to ask a question. What *precisely* is the behavior you experience, and how *exactly* does it differ from the *exact* behaviors you expect? *Copy and paste* and error message into your report (such as the NPE messages you surely are getting). What have you done to diagnose your problem? (Writing to a programming forum doesn't count.) Here my code: package com.iseng; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import android.app.Activity; import android.content.ContentValues; import android.content.pm.ActivityInfo; import android.content.res.Configuration; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore.Images.Media; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.widget.Toast; import android.hardware.*; import android.hardware.Camera.PictureCallback; public class IsengActivity extends Activity implements SurfaceHolder.Callback, Camera.PreviewCallback, PictureCallback { Please be consistent and conventional with indentation. Use spaces (not TABs) to indent, up to four (though two works well) per level for forum posts. Camera kamera; SurfaceHolder surface; SurfaceView kameraview; The Java naming convention would suggest 'kameraView' as the variable name. public byte dataOld[]; This is 'null' to start with (hence your NPEs) and should not be 'public'. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); kameraview =(SurfaceView) findViewById(R.id. kameraku); surface = kameraview.getHolder(); surface.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); surface.addCallback(this); } @Override public void onPreviewFrame(byte[] data, Camera kamera) { if(data.length ==0) return; What if 'data == null'? if(dataOld.length==0 ) 'dataOld' certainly is 'null' the first time. NPE! data=dataOld; You forgot the curly braces around the 'if' body. If 'dataOld' is not 'null' and is empty, it will wipe out 'data' at this point. Is that what you want? The logic is not obvious and should be commented. int Isdiferent=0; Please follow the Java naming conventions: 'isDifferent'. int treshold =50; Java naming conventions would suggest 'threshold' for this variable name. for (int x=0; xdata.length; x=+200) Well, if somehow 'dataOld' was not 'null' and was empty, you got nothing here. { if(Math.abs(data[x] - dataOld[x]) = treshold ) { Isdiferent +=1; You could also use the unary increment operator here. } float precentage = Isdiferent / data.length; The Java naming conventions would suggest that this variable name be 'percentage'. if (precentage 20 ) You should use '20.0' since you're comparing floating-point values. { kamera.takePicture(null,null,this); }
[android-developers] Calling OnCreate() of one class from another class
Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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] Mobile to Mobile remote access
I am trying to share Mobile screen with complete access of its events to Other Mobile.. that one device share its screen to another Mobile like Team View provides . On Friday, March 23, 2012 11:38:49 PM UTC+5, James Black wrote: What are you trying to do? For example, do you want to remotely see what the camera does or make phone calls? Remotely controlling seems like turning a phone into a zombie, but for controlling a robot this could be useful. More detail may help with better answers. On Mar 23, 2012 3:04 AM, MadihaKhalid tears.blos...@gmail.com wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access *Another Android device* including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://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: Google Wallet == Google Play In-App Service?
Google Wallet == PayPal On Saturday, March 24, 2012 10:43:01 AM UTC+8, Danny wrote: Hi, Android peoples. I'm adding in-app payments to my app and was looking at Google Wallet. The tutorial https://developers.google.com/payment-express/tutorialseemed better suited for adding Google Wallet to a website, so I sought out a tutorial having to do with Android apps specifically. The in-app overview http://developer.android.com/guide/market/billing/billing_overview.htmlprovided doesn't actually mention Google Wallet at all; it mentions Google Play's service. Google Play won't cut it for me because my app will not be solely deployed on the Google Market/Play. Google Wallet seems like a suitable solution, but I want to confirm from someone who's done this before: *will the Android Developers resource actually lead me down the Google Wallet path?* If Google Wallet != Google Play In-App Service, then this will not be a satisfactory resource -- any tutorial recommendations for mobile usage of Google Wallet? Thanks! -Danny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mobile to Mobile remote access
i have also find , that it will be possible through server who will pass traffic between Mobile phones. but how i can make it possible when a mobile user share Screen with other mobile user and this mobile can have access to use this Mobile as shown in attach file On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access *Another Android device* including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access *Another Android device* including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access *Another Android device* including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enattachment: Remote Access.jpg
Re: [android-developers] Calling OnCreate() of one class from another class
Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that access required web service? . On Sat, Mar 24, 2012 at 3:13 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
I have never used the web service but you want to call oncreate() so it will help by intent. On Sat, Mar 24, 2012 at 3:18 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that access required web service? . On Sat, Mar 24, 2012 at 3:13 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.comwrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DexClassLoader
Hi Everyone, I am trying to play with DexClassLoader http://developer.android.com/reference/dalvik/system/DexClassLoader.htmland http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htmI am wondering how can I use these classes. I am not expert in Android but I want to use these classes, does anyone has an idea? Your Response Is Much Appreciated. Many Thanks/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Save the whole Intent and context at somewhere
When you register to ACTION_ANSWER it should work normally actually. There is a short thread on this here: http://stackoverflow.com/questions/5990590/how-to-detect-phone-call-broadcast-receiver-in-android This is such a common functionality, I'm sure you can find lots of other examples. If your implementation doesn't work, it's probable you are doing something wrong when handling the related broadcast receiver. It might be worth to check out this tutorial: http://www.vogella.de/articles/AndroidServices/article.html - Ali Chousein http://socialnav.blogspot.com | http://twitter.com/socialnav1 http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy http://www.codeproject.com/KB/android/PayGol-Android.aspx http://geo-filtered-assistant.blogspot.com On Mar 24, 6:30 am, Jagruti Sangani jagruti.sang...@inextrix.com wrote: My problem is that when the application go in background running and call arrive then that application cant handle the call in front. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
Thanks Jagruti. That suggestion given by u is works fine .I m trying call that web service from last two days but when i calling onCreate() on that class object it throws NULL POINTER EXCEPTION.ISince from last two day i do lot of changes to solve this problem but it does not work and I m so much FRUSTRATEDhttp://dict.hinkhoj.com/words/meaning-of-FRUSTRATED-in-hindi.html .Now finally Your suggestion work.I m so happy.Thank u so much. On Sat, Mar 24, 2012 at 3:23 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: I have never used the web service but you want to call oncreate() so it will help by intent. On Sat, Mar 24, 2012 at 3:18 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Thanks for reply Jagruti. can u tell me.When i start activity it will automatically use all functionality that access required web service? . On Sat, Mar 24, 2012 at 3:13 PM, Jagruti Sangani jagruti.sang...@inextrix.com wrote: use the intent for calling the next activity so it will always run from starting... On Sat, Mar 24, 2012 at 3:08 PM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Actually i want to call web service when sms is receive with particular word and my web service is in another class and all the functionality written in OnCreate(). so i want to call web service class from sms Receive class. i m trying to call onCreate() but it throws NULL POINTER EXCEPTION. If u have any idea how to do that then please help. On Sat, Mar 24, 2012 at 2:25 PM, Justin Anderson magouyaw...@gmail.com wrote: U Why? On Mar 24, 2012 1:18 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: Hello developers, I want to call OnCreate() of one class from another class which extends BroadcastReceiver.How to i do that. plz anybody 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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, Jagruti Sangani *iNextrix Technologies* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bank Applications
Hello Everyone, I am trying to install online application bank for Android but I couldn't succeed. I installed the Android market in my emulator. However when I search for online apps I couldnt find anything. it seems becasue I am working with emulator. Does anyone know how can I install Android applications in my PC. Thanks/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to handle unicode expression included in String
I found the solution. Unicode expressions like #34; can be regarded as one of HTML string. So, I made the function which convert html string into a normal String. public static String convertHtmlTagInString(String orignalString) { Spanned spanned = Html.fromHtml(orignalString); String changedString = spanned.toString(); return changedString; } On Mar 23, 2:53 pm, Jaden Pak jadenpak...@gmail.com wrote: When I received RSS content from a News source, I found that there are some unicode expressions in the String. The format of expression is like #nn; Result announced #34;New products are ...#34; Because there is no problem like this from all other the news sources, I think this is not the common case, Anyway, what I want now is extracting these expression from the string and if possible converting into characters which can be viewed in TextView. I want to know how to handle in normal way with Java or Android. 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] send twitter status with geolcation using api
i have integrated twitter API in my android application using twitter4j API and i want to sent status with geolocation and for that i used this method public void updateStatus(String status,GeoLocation geo) throws Exception { try { mTwitter.updateStatus(status,geo); } catch (TwitterException e) { throw e; } } and also the geo have geo=new GeoLocation(location.getLatitude(),location.getLongitude()); in result the mesage is posted but with no view location in the twit so can anyone help me to add my geo location to the twit status thx for replay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Bank Applications
On Sat, Mar 24, 2012 at 09:11:45PM +1100, moutaz al-azab wrote: I am trying to install online application bank for Android but I couldn't succeed. I installed the Android market in my emulator. However when I search for online apps I couldnt find anything. it seems becasue I am working with emulator. Does anyone know how can I install Android applications in my PC. Sure. Convert them to a PC application and install them on your PC. Alternatively, you could build a custom ROM for your PC that runs Linux plus Android instead of whatever OS (or windoze) you had on it. Oh, and you'll probably need a touch screen to handle touch events, unless your custm ROM handles those with the mouse. Good Luck. Later, --jim PS: I have heard rumors of a pending PC build for Android, but I'm not sure if they were serious or just for the more gullible types (I'm guessing that it's the latter of the two, but I could just as easily be wrong about that). Wow...cancer #1's impact on my vision just went to typing in a whole new way---I typed the above as I easily could just of as and didn't spot it for about 10 seconds. It's never mixed stuff up THAT badly before. This is Not Good. :-( -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Seen in alt.sysadmin.recovery: Priceless; that's better than telling him to use the Read Manual command with the Real Fast option. Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How is 'onHandleIntent' handled in an IntentService
I have an intent service. From another class, I create 3 different intents at 3 different times, like this: At Time X: Intent aIntent = new Intent(context, abcd.service.ABCD_Processor.class); aIntent.setAction(Do_A); context.startService(aIntent); At Time X + 50 milliseconds: Intent bIntent = new Intent(context, abcd.service.ABCD_Processor.class); bIntent.setAction(Do_B); context.startService(bIntent); At Time X + 100 milliseconds: Intent cIntent = new Intent(context, abcd.service.ABCD_Processor.class); cIntent.setAction(Do_C); context.startService(cIntent); In the *abcd.service.ABCD_Processor* class, the protected void *onHandleIntent*(Intent intent) function will be called 3 times. I want to know how the onHandleIntent callback will be invoked? Will they be invoked one after the other, in the order they were raised. Is there any chance that 'onHandleIntent' will be called in parallel, to handle more than one intent simultaneously. 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: new 50mb expansion pack functionality, api 11... no easy dice?
and btw, the DownloaderService as is did not work for me if the needed custom subclass of DownloaderService was not in the same package as the app... based on how DownloaderService.java starts the service in its internals. Took me a little bit to figure out that was what was going on... On Thu, Mar 22, 2012 at 5:46 PM, B Lyon bradfl...@gmail.com wrote: thanks for the info, folks! On Mon, Mar 19, 2012 at 9:56 AM, David Schreiber flashmasterd...@gmail.com wrote: Hello, The APK expansion downloader comes with sources and we did make our own fix to make downloader running. I have also already filed a bug report as recommended by Mark Murphy. Greetings, David Am Freitag, 16. März 2012 14:47:54 UTC+1 schrieb Streets Of Boston: I haven't checked if the downloader services comes with the sources. But if so, just change the sources for the Notifications to your liking. (we did that for our app, using the DownloadManager (and DownloadProvider) from the ICS source code and adding compatibility code ourselves (DRM/Notifcations)) On Thursday, March 15, 2012 1:04:56 PM UTC-4, David Schreiber wrote: Hello there, I just implemented the downloader service and have noticed some things (and one severe bug). First of all, documentation says the downloader service needs a minimum of API level 4. The service provides two different kinds of user notifications, one for API level 3+ one for API level 11+ - the latter should allow better looking notifications. But...! Sadly the provided SDK package just tests for the existence of the Notification.Builder class, which is available since API level 11. This is not enough for setting a progress via the setProgress() method, because this method was introduced with API level 14. Thus, devices with an API level of 11, 12 and 13 will definitely not be able to use the downloader upon fixing this issue. If you need further information, feel free to ask. Greetings, David Schreiber PS: You have to compile your application (or your downloader package) against api level 14+. This should work with all devices (but with the bug I described above) Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL: I was playing with implementing the new expansion pack stuff, and kept running into things that make me think you need to use an api 10 if you want to use the downloader that comes with the sdk. In fact, the library project seems to require api14. Am I missing something trivial? This is for stuff in the package com.google.android.vending.expansion.downloader. * TelephonyManager.NETWORK_TYPE_LTE - api11 * TelephonyManager.NETWORK_TYPE_EHRPD - api11 * TelephonyManager.NETWORK_TYPE_HSPAP - api13 I really want to use the stuff out of the box from google here... but it looks like you need to finagle around this api stuff for the 87% of devices still on api8 or api10 (http://developer.android.com/resources/dashboard/platform-versions.html). tia Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL: I was playing with implementing the new expansion pack stuff, and kept running into things that make me think you need to use an api 10 if you want to use the downloader that comes with the sdk. In fact, the library project seems to require api14. Am I missing something trivial? This is for stuff in the package com.google.android.vending.expansion.downloader. * TelephonyManager.NETWORK_TYPE_LTE - api11 * TelephonyManager.NETWORK_TYPE_EHRPD - api11 * TelephonyManager.NETWORK_TYPE_HSPAP - api13 I really want to use the stuff out of the box from google here... but it looks like you need to finagle around this api stuff for the 87% of devices still on api8 or api10 (http://developer.android.com/resources/dashboard/platform-versions.html). tia Am Freitag, 9. März 2012 01:54:23 UTC+1 schrieb BFL: I was playing with implementing the new expansion pack stuff, and kept running into things that make me think you need to use an api 10 if you want to use the downloader that comes with the sdk. In fact, the library project seems to require api14. Am I missing something trivial? This is for stuff in the package com.google.android.vending.expansion.downloader. * TelephonyManager.NETWORK_TYPE_LTE - api11 * TelephonyManager.NETWORK_TYPE_EHRPD - api11 * TelephonyManager.NETWORK_TYPE_HSPAP - api13 I really want to use the stuff out of the box from google here... but it looks like you need to finagle around this api stuff for the 87% of devices still on api8 or api10 (http://developer.android.com/resources/dashboard/platform-versions.html). tia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] How is 'onHandleIntent' handled in an IntentService
On Sat, Mar 24, 2012 at 8:45 AM, Put_tiMe putt...@gmail.com wrote: Will they be invoked one after the other, in the order they were raised. Yes. Is there any chance that 'onHandleIntent' will be called in parallel, to handle more than one intent simultaneously. No. IntentService only has one background thread. Creating a ThreadPoolIntentService that supports multiple parallel threads is one of the 18,000 items on my to-do list... :-) -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: free publisher account
Thanks every one!!! But how can indian publishers publish their apps for price On Wednesday, March 21, 2012, vamsi Vamsi va...@partialbits.in wrote: to add to TreKing's reply, if you are from India, you cannot release paid apps in the market on your own, even after paying the fees. On Wed, Mar 21, 2012 at 8:53 PM, TreKing treking...@gmail.com wrote: 2012/3/21 νιяιη¢нソ joinvir...@gmail.com Is it mandatory for a developer to buy an android publisher account with an amount of $25. Yes. You're not buying an account, you're paying a fee, presumably to curtail spammers and non-serious developers. cant he publish his applications without paying this amount ,like for free apps ... No. - 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 -- With Regards, Virinchy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: free publisher account
Thanks every one!!! But how can indian publishers publish their apps for price Register a company in a supported country and use that to sell your apps. That's how I'm planning to do it anyways. Thanks -- Raghav Sood http://www.androidactivist.org/ - Author http://www.appaholics.in/ - Founder -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 is 'onHandleIntent' handled in an IntentService
24.03.2012 16:45, Put_tiMe пишет: Will they be invoked one after the other, in the order they were raised. As Mark already said, yes, it's sequential. If you look at the implementation: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/IntentService.java ... it's really simple, and uses HandlerThread, which is a small helper class that creates a thread which sits in a loop processing messages one by one. Is there any chance that 'onHandleIntent' will be called in parallel, to handle more than one intent simultaneously. If that's what you want, you could very easily implement this: - Either by using ThreadPoolExecutor: http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html - Or by using AsyncTask. Note that starting with Android 4.0 you'd need to use task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR) if parallel execution is desired. - Or in some other way The important thing (besides posting work to another thread or a pool of threads) is to manage the service's lifetime by calling stopSelf(startId), where startId is the value from the service's onStrartCommand that corresponds to the Intent you just finished processing. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Mobile to Mobile remote access
You can't do this. Not without major changes to the firmware. And even then nobody will have your firmware, so nobody will be able to use it.. kris On Sat, Mar 24, 2012 at 5:02 AM, MadihaKhalid tears.blos...@gmail.com wrote: i have also find , that it will be possible through server who will pass traffic between Mobile phones. but how i can make it possible when a mobile user share Screen with other mobile user and this mobile can have access to use this Mobile as shown in attach file On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access Another Android device including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access Another Android device including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? On Friday, March 23, 2012 12:50:45 AM UTC+5, MadihaKhalid wrote: i just want to know that how i could develop an android application who give remote access to other Android mobile. I just want to know the ways of implementing an application through which I can access Another Android device including all the events that happens on the host device(just like TeamViewer for desktop). is there any protocol for Android device sharing ? (Note: I would like to do it using internet) please let me know any idea about it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Wallet == Google Play In-App Service?
On Fri, Mar 23, 2012 at 9:43 PM, Danny Favela dfav...@gmail.com wrote: Google Play won't cut it for me because my app will not be solely deployed on the Google Market/Play. That is tricky. I don't have experience implementing in-app payments, but from my reading each market will want you to use their payment system so they can bleed your of their cut. Read the terms of service of each market you intend to deploy on and read carefully about their requirements for using in-app payments and how you are allowed to collect payments. http://developer.android.com/guide/market/billing/index.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: R cannot be resolved to a variable error in intro example code
What API are you building against? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:20 AM, firebreather michaelirvingbr...@gmail.com wrote: this is the MainActivity.java file in the Hello Android example code: package com.dummies.android.helloandroid; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } this is the error messages it generates: Description ResourcePathLocationType R cannot be resolved to a variable SilentmodetoggleActivity.java / silent mode toggle/src/com/dummies/android/silentmodetoggle line 11 Java Problem Description ResourcePathLocationType The method onAccuracyChanged(Sensor, int) of type AccelerometerPlayActivity.SimulationView must override a superclass method AccelerometerPlayActivity.java /AccelerometerPlayActivity/src/ com/example/android/accelerometerplay line 457Java Problem Description ResourcePathLocationType The method onSensorChanged(SensorEvent) of type AccelerometerPlayActivity.SimulationView must override a superclass method AccelerometerPlayActivity.java /AccelerometerPlayActivity/src/ com/example/android/accelerometerplay line 378Java Problem -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Google Wallet == Google Play In-App Service?
Yeah, you are going to have to have different builds for the different stores that you want to deploy on... And it isn't just in-app billing that is the problem, either... If your app contains share links so that you can have your users share a download link for your app, each store is going to require that it points to their store... For example, when I deployed to Amazon, I needed to have a separate build for them with all references to the Android Mar... er, Google Play Thingie replaced with references to the Amazon download link. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 8:21 AM, TreKing treking...@gmail.com wrote: On Fri, Mar 23, 2012 at 9:43 PM, Danny Favela dfav...@gmail.com wrote: Google Play won't cut it for me because my app will not be solely deployed on the Google Market/Play. That is tricky. I don't have experience implementing in-app payments, but from my reading each market will want you to use their payment system so they can bleed your of their cut. Read the terms of service of each market you intend to deploy on and read carefully about their requirements for using in-app payments and how you are allowed to collect payments. http://developer.android.com/guide/market/billing/index.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] getHits() succeeds but waitForActivityWithTimeout() returns null
Could someone please help me understand why in the code below assertEquals(1, monSettings.getHits()) succeeds but assertNotNull(activitySettings) fails? WifiSettingsActivity starts fine, I can see it, but activitySettings is null. Is it because I'm starting an activity that is defined outside of the package under test? If so, then I believe both asserts should fail. Thank you in advance! P.S. When I replace com.android.settings.Settings$WifiSettingsActivity with my own activity, the test succeeds. P.P.S I tried startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)), the activity also starts, but activitySettings is still null public void testWifiSettingsStarted() throws Throwable { final Intent intentSettings = new Intent(); final ComponentName compSettings = new ComponentName( com.android.settings, com.android.settings.Settings$WifiSettingsActivity ); intentSettings.setComponent(compSettings); intentSettings.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); final ActivityMonitor monSettings = getInstrumentation().addMonitor( com.android.settings.Settings$WifiSettingsActivity, null, false); getInstrumentation().getContext().startActivity(intentSettings); final Activity activitySettings = monSettings.waitForActivityWithTimeout(1); * assertEquals(1, monSettings.getHits()); assertNotNull(activitySettings);* getInstrumentation().removeMonitor(monSettings); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] So why is the style attribute for a view not in the android namespace?
I'm just curious about the background on this, but I was wondering why the style attribute in a view definition isn't in the android namespace. For instance, in the following sample: TextView android:id=@+id/errorText style=@style/ErrorText android:text=No errors at this time / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Calling OnCreate() of one class from another class
.I m trying call that web service from last two days but when i calling onCreate() on that class object it throws NULL POINTER EXCEPTION You don't call onCreate() of another class directly... EVER. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 4:10 AM, ravindra bhavsar ravindra.bhavs...@gmail.com wrote: .I m trying call that web service from last two days but when i calling onCreate() on that class object it throws NULL POINTER EXCEPTION -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NullPointerException on setOnClickListener
My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.vitorpacheco.B2SShareFeedReader/br.com.vitorpacheco.B2SShareFeedReader.B2SShareFeedReader}: java.lang.NullPointerException If I comment the following line, the application works normally. btnFeed.setOnClickListener(this); LogCat http://pastebin.com/dHhLk1TF Layout http://pastebin.com/R99Y8Ea3 Activity http://pastebin.com/gV7KVK55 -- *Vitor Pacheco* *Skype: vitor.pacheco.costa Msn: vitor-...@hotmail.com* *GTalk: vitorpc...@gmail.com** **Cel.: 71 8626-7909 Tel.: 71 3378-5778 /** 71 3287-3475* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] NullPointerException on setOnClickListener
On Sat, Mar 24, 2012 at 12:33 PM, Vitor Pacheco vitorpc...@gmail.com wrote: My code is returning this error and do not know how to solve it. E/AndroidRuntime(10863): java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.vitorpacheco.B2SShareFeedReader/br.com.vitorpacheco.B2SShareFeedReader.B2SShareFeedReader}: java.lang.NullPointerException If I comment the following line, the application works normally. btnFeed.setOnClickListener(this); That line does not exist in your code. LogCat http://pastebin.com/dHhLk1TF Layout http://pastebin.com/R99Y8Ea3 Activity http://pastebin.com/gV7KVK55 You must call setContentView() before calling findViewById(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NullPointerException on setOnClickListener
Could you please verify that btnFeed is not null? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NullPointerException on setOnClickListener
Sorry, I changed the code a bit ... but the line is btn.setOnClickListener (this); 2012/3/24 Y2i yur...@gmail.com Could you please verify that btnFeed is not null? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Vitor Pacheco* *Skype: vitor.pacheco.costa Msn: vitor-...@hotmail.com* *GTalk: vitorpc...@gmail.com** **Cel.: 71 8626-7909 Tel.: 71 3378-5778 /** 71 3287-3475* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: NullPointerException on setOnClickListener
I put the setContentView() before and it worked. thank you!! 2012/3/24 Vitor Pacheco vitorpc...@gmail.com Sorry, I changed the code a bit ... but the line is btn.setOnClickListener (this); 2012/3/24 Y2i yur...@gmail.com Could you please verify that btnFeed is not null? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- *Vitor Pacheco* *Skype: vitor.pacheco.costa Msn: vitor-...@hotmail.com* *GTalk: vitorpc...@gmail.com** **Cel.: 71 8626-7909 Tel.: 71 3378-5778 /** 71 3287-3475* -- *Vitor Pacheco* *Skype: vitor.pacheco.costa Msn: vitor-...@hotmail.com* *GTalk: vitorpc...@gmail.com** **Cel.: 71 8626-7909 Tel.: 71 3378-5778 /** 71 3287-3475* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: getHits() succeeds but waitForActivityWithTimeout() returns null
I tried starting different activities using the code below. The test always succeeds if an activity I'm starting is defined in the package under test, which is in turn defined by the instrumentation/ tag in AndroidManifest.xml But as soon as I try to start an activity that is defined outside of the package under test, waitForActivityWithTimeout() always returns null even though AcitivityMonitor.getHits() returns hit count of 1. And it does not matter whether an activity is started in the parent's activity taks or in the new task - the result is the same. Is this what we should expect? Can't a test access an activity that is defined outside of the package under test? Thank you! private Activity testActivityStarted(String pkg, String cls, Activity parent) throws Throwable { final Intent intent = new Intent(); final ComponentName compName = new ComponentName(pkg, cls); intent.setComponent(compName); final ActivityMonitor mon = getInstrumentation().addMonitor(cls, null, false); if(parent == null) { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getInstrumentation().getContext().startActivity(intent); } else { parent.startActivity(intent); } final Activity activity = mon.waitForActivityWithTimeout(1); *assertEquals(1, mon.getHits()); assertNotNull(activity); *getInstrumentation().removeMonitor(mon); return activity; } On Saturday, March 24, 2012 8:25:02 AM UTC-7, Y2i wrote: Could someone please help me understand why in the code below assertEquals(1, monSettings.getHits()) succeeds but assertNotNull(activitySettings) fails? WifiSettingsActivity starts fine, I can see it, but activitySettings is null. Is it because I'm starting an activity that is defined outside of the package under test? If so, then I believe both asserts should fail. Thank you in advance! P.S. When I replace com.android.settings.Settings$WifiSettingsActivity with my own activity, the test succeeds. P.P.S I tried startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)), the activity also starts, but activitySettings is still null public void testWifiSettingsStarted() throws Throwable { final Intent intentSettings = new Intent(); final ComponentName compSettings = new ComponentName( com.android.settings, com.android.settings.Settings$WifiSettingsActivity); intentSettings.setComponent(compSettings); intentSettings.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); final ActivityMonitor monSettings = getInstrumentation().addMonitor( com.android.settings.Settings$WifiSettingsActivity, null, false); getInstrumentation().getContext().startActivity(intentSettings); final Activity activitySettings = monSettings.waitForActivityWithTimeout(1); * assertEquals(1, monSettings.getHits()); assertNotNull(activitySettings);* getInstrumentation().removeMonitor(monSettings); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: getHits() succeeds but waitForActivityWithTimeout() returns null
More information: I also have a test that clicks a an email link on an emulator where more than one email client is installed. When a test clicks on the link, a chooser activity is launched. The chooser activity is defined outside of the package under test, and yet the test CAN access it. Clearly, the test can access an activity that is defined outside the package under test. But why can it access the activity when it is launched indirectly through a view click and cannot access the activity when it is launched directly through startActivity() call? This is very inconsistent behavior. Does anyone have thoughts on this? Thank you! P.S. The sample below is the one that works fine. The chooser activity is returned and can be finished. *contact* variable is a TextView that contains an email link created by Linkify library. final ActivityMonitor mon = getInstrumentation().addMonitor( com.android.internal.app.ChooserActivity, null, false); TouchUtils.tapView(this, contact); final Activity chooserActivity = mon.waitForActivityWithTimeout(1); *assertNotNull(chooserActivity); **chooser**Activity.finish();* On Saturday, March 24, 2012 8:25:02 AM UTC-7, Y2i wrote: Could someone please help me understand why in the code below assertEquals(1, monSettings.getHits()) succeeds but assertNotNull(activitySettings) fails? WifiSettingsActivity starts fine, I can see it, but activitySettings is null. Is it because I'm starting an activity that is defined outside of the package under test? If so, then I believe both asserts should fail. Thank you in advance! P.S. When I replace com.android.settings.Settings$WifiSettingsActivity with my own activity, the test succeeds. P.P.S I tried startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)), the activity also starts, but activitySettings is still null public void testWifiSettingsStarted() throws Throwable { final Intent intentSettings = new Intent(); final ComponentName compSettings = new ComponentName( com.android.settings, com.android.settings.Settings$WifiSettingsActivity); intentSettings.setComponent(compSettings); intentSettings.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); final ActivityMonitor monSettings = getInstrumentation().addMonitor( com.android.settings.Settings$WifiSettingsActivity, null, false); getInstrumentation().getContext().startActivity(intentSettings); final Activity activitySettings = monSettings.waitForActivityWithTimeout(1); * assertEquals(1, monSettings.getHits()); assertNotNull(activitySettings);* getInstrumentation().removeMonitor(monSettings); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] which is best Handler or Timer ?
This answer is true and correct, but could have used a little more explanation. The Timer class is included because it is expected in Java. But it is not particularly suitable for the way tasks and processes should be handled on an Android phone. Handler is. The OP can define an arbitrary message and get the effect of a timer by posting the message to the pre-existing queue with sendMessageDelayed(arbitraryMessage, timerInterval). Or if more convenient, instead of a message, put the Runnable you want executed on the queue with postDelayed(Runnable). The choice of which is best depends on your application's individual circumstances, but I prefer the message approach, unless doing a splash screen (for which see http://stackoverflow.com/questions/5486789/how-do-i-make-a-splash-screen-in-android). Now for 'suitable', what I mean is: if you (the OP) use the Message approach, you do not have to define your own thread for the Timer, so you sidestep all the issues of thread management, letting the system handle it. See the class reference for Handler for details. On Friday, March 23, 2012 1:33:19 PM UTC-7, Dianne Hackborn wrote: Handler. Just don't use Timer, Handler is the Android-centric mechanism. On Thu, Mar 22, 2012 at 10:53 PM, Perumss Naren peru2...@gmail.comwrote: Hi , which way is best in performance is Handler or timer i need to update textview as timer every second need to update time so which one will be best please tell the reason. because i need the reason thanks in advance public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); timer = (TextView) findViewById(R.id.timer); // handler.post(mRunnable); task = new UpdateTimeTask(); handler.post(task); } private Runnable mRunnable = new Runnable() { @Override public void run() { timer.setText(dateFormat.format(new Date())); handler.postDelayed(mRunnable, 1000); } }; class UpdateTimeTask extends TimerTask { public void run() { timer.setText(dateFormat.format(new Date())); handler.postDelayed(task, 1000); } } -- Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.comandroid-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=enhttp://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] Task killer android
How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task killer android
You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Task killer android
Yes, i know On Mar 24, 8:02 pm, Kristopher Micinski krismicin...@gmail.com wrote: You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Task killer android
That doesn't ... upset you? kris On Sat, Mar 24, 2012 at 3:13 PM, oneking onekingg...@gmail.com wrote: Yes, i know On Mar 24, 8:02 pm, Kristopher Micinski krismicin...@gmail.com wrote: You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Task killer android
http://developer.android.com/reference/android/app/ActivityManager.html#killBackgroundProcesses(java.lang.String) On Sat, Mar 24, 2012 at 3:16 PM, Kristopher Micinski krismicin...@gmail.com wrote: That doesn't ... upset you? kris On Sat, Mar 24, 2012 at 3:13 PM, oneking onekingg...@gmail.com wrote: Yes, i know On Mar 24, 8:02 pm, Kristopher Micinski krismicin...@gmail.com wrote: You understand that task killers are an Android antipattern, correct? kris On Sat, Mar 24, 2012 at 2:59 PM, oneking onekingg...@gmail.com wrote: How to make a task killer? If someone could just give me an example code. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Task killer android
On Sat, Mar 24, 2012 at 03:02:41PM -0400, Kristopher Micinski wrote: You understand that task killers are an Android antipattern, correct? They do have their (quite limited) uses, though. First, there's this highly annoying (and extremely stupid) system app in some releases called Global Unplug, created by someone who doesn't understand even the most insanely-simple electronics circuit theory and the microscopic amount of power used by power supplies, etc., when not connected to anything (enough to cost about 0.5 cents/year). It gets force closed first thing when my Android phone reboots. Second, on my Android phone (Motorola Bravo MB520), running apps will randomly get stuck and unresponsive, while sitting there using a HUGE percentage of the CPU. I've only found two ways to stop those random apps when they get like that: either reboot the phone, or use a task killer. If it were a single app, I'd just unintstall it, obviously, but it isn't. Yes, I do believe there is a problem behind that in the device itself. Of course, other times, even that doesn't work, and I have to pull the battery. :-( Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Now what *you* need is a proper pint of porter poured in a proper pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Set Layout Background Image and change color of the image dynamically
Hi, I have LinearLayout i want to set Image as background and i need to change the image color. I mean image remains transparent and it should reflect whatever background color we choose. I dont know how to start with any example is helpful. 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] Application not installed!
I keep getting Application not installed error message, when i try to do an in app update (with .apk file hosted on my server) . It downloads file successfully and prompts me to install the application with the package installer. I click install and this error pops up. I checked the log files and see this : 03-24 16:03:13.671: ERROR/CertificateValidator(1327): File /system/etc/ security/mancacerts.zip does not exist or is empty 03-24 16:03:13.671: ERROR/CertificateValidator(1327): No root cert found in /system/etc/security/mancacerts.zip 03-24 16:03:13.671: ERROR/CertificateValidator(1327): File /system/etc/ security/oprcacerts.zip does not exist or is empty 03-24 16:03:13.671: ERROR/CertificateValidator(1327): No root cert found in /system/etc/security/oprcacerts.zip Any idea whats happening? 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] Re: Custom Dialog for Force Closed Android
On Fri, Mar 23, 2012 at 11:54 PM, Vivek Khandelwal vivek.b.khandel...@gmail.com wrote: User selects a Record and try to Edit in Edit Activity. But Edit Activity had the Error. So fix that error so it doesn't happen using the information you get from ACRA. Honestly, that will be the fastest and easiest course of action. Instead of trying to die gracefully, don't die at all. I have an Idea for this, What can i do is save the Current Activity and its state in cache. When an error occurs I will send a broadcast to start the Activity in cache(How to send broadcast after Crash i dont know). But the Activity Stack will not be maintain. So when user will press back he will come out of application. I am not sure will this idea works. But Something like this will be a solution for me. My best advice to you: stop wasting your time on this. You are going to run into many problems trying to get this to work, if you even manage to. And for what? To make a crappy user experience only slightly less crappy? If your app is crashing at stage 4 in a sequence of activities, your main focus should be to prevent the crash, not try to put the user back at stage 4 hit the crash again. - 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: is not onActivityResult called when the process is killed?
On Fri, Mar 23, 2012 at 10:20 PM, Tac dr051...@gmail.com wrote: D/B(15580): -- onCreate -- ... D/A(15580): -- onCreate -- It looks like I came back to B. Am I wrong? That looks strange. That looks like B was created first, then A, unless your ... is B being stopped. The system does some caching to try to bring back to where it left off (in your case, B) but I'm pretty sure that if your process is killed, it will not save that cached state. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Application not installed!
Solved this..The issue was that the application on the phone in the first case itself was not signed. Once i installed the signed version on the phone and tried updating from that - it worked :) On Mar 24, 4:08 pm, Bpn bi...@lokalty.com wrote: I keep getting Application not installed error message, when i try to do an in app update (with .apk file hosted on my server) . It downloads file successfully and prompts me to install the application with the package installer. I click install and this error pops up. I checked the log files and see this : 03-24 16:03:13.671: ERROR/CertificateValidator(1327): File /system/etc/ security/mancacerts.zip does not exist or is empty 03-24 16:03:13.671: ERROR/CertificateValidator(1327): No root cert found in /system/etc/security/mancacerts.zip 03-24 16:03:13.671: ERROR/CertificateValidator(1327): File /system/etc/ security/oprcacerts.zip does not exist or is empty 03-24 16:03:13.671: ERROR/CertificateValidator(1327): No root cert found in /system/etc/security/oprcacerts.zip Any idea whats happening? 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] Set Layout Background Image and change color of the image dynamically
Am I the only one confused by this question? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 1:45 PM, Android Developer c2dmdevelo...@gmail.comwrote: Hi, I have LinearLayout i want to set Image as background and i need to change the image color. I mean image remains transparent and it should reflect whatever background color we choose. I dont know how to start with any example is helpful. 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] Task killer android
The only way to officially kill an Android app is by going to the App Info screen in Android. On that screen is a Force Stop button. Task killers are bad (and they don't work). However, you can install my app, which is a Task Switcher, and which also has a very nifty way of getting to the App Info page for any running app. Just swipe up on the icon and it will take you to that screen. The app is called AppSwipe!, and here is the link to it on the Google Play thingymajig: https://play.google.com/store/apps/details?id=com.magouyaware.appswipe Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 1:44 PM, Jim Graham spooky1...@gmail.com wrote: On Sat, Mar 24, 2012 at 03:02:41PM -0400, Kristopher Micinski wrote: You understand that task killers are an Android antipattern, correct? They do have their (quite limited) uses, though. First, there's this highly annoying (and extremely stupid) system app in some releases called Global Unplug, created by someone who doesn't understand even the most insanely-simple electronics circuit theory and the microscopic amount of power used by power supplies, etc., when not connected to anything (enough to cost about 0.5 cents/year). It gets force closed first thing when my Android phone reboots. Second, on my Android phone (Motorola Bravo MB520), running apps will randomly get stuck and unresponsive, while sitting there using a HUGE percentage of the CPU. I've only found two ways to stop those random apps when they get like that: either reboot the phone, or use a task killer. If it were a single app, I'd just unintstall it, obviously, but it isn't. Yes, I do believe there is a problem behind that in the device itself. Of course, other times, even that doesn't work, and I have to pull the battery. :-( Later, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)MiSTie #49997 Running FreeBSD 7.0 spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W Now what *you* need is a proper pint of porter poured in a proper pewter porter pot.. --Peter Dalgaard in alt.sysadmin.recovery Android Apps Listing at http://www.jstrack.org/barcodes.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!
Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 23, 2012 at 2:58 AM, Soyer mblack...@gmail.com wrote: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... On Mar 23, 12:35 am, Soyer mblack...@gmail.com wrote: Hello Justin, thanks for the reply... yes it is in that form, extView newDevicesListView = (TextView) findViewById(R.id.title_paired_devices); On Mar 22, 9:17 pm, Justin Anderson magouyaw...@gmail.com wrote: Sorry... Didn't notice your ArrayAdapter constructor... You have more the correct NUMBER of arguments, but you are specifying the layout... not the id of the textview. If your textview looks like this: textView android:id=@+id/my_textView / then the second parameter in your constructor should be R.id.my_textView Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:13 AM, Justin Anderson magouyaw...@gmail.comwrote: Did you bother to look at the documentation? An ArrayAdapter constructor takes more than just one argument... One of them happens to be the id of a text view: http://developer.android.com/reference/android/widget/ArrayAdapter.ht... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 4:31 AM, Soyer mblack...@gmail.com wrote: 03-22 06:23:21.295: E/AndroidRuntime(1941): java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView the problem is in this couple of lines: mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); // Find and set up the ListView for newly discovered devices ListView newDevicesListView = (ListView) findViewById(R.id.new_devices); //TextView newDevicesListView = (TextView) findViewById(R.id.title_paired_devices); newDevicesListView.setAdapter(mNewDevicesArrayAdapter); now when i try to set the arrayadapter for a list view, it says that the arrayadapter requires a textview, and this message appear asking to assign an ID for the textView though the ID is assigned, so i did is i put the textview in a separate file, however the arrayadapter is still assigned to a list view...when i try to assign it to a textview, the method setAdapter won't be in the list of the methods supported by the textview element. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] SQLite error
http://www.catb.org/~esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:32 AM, khaja shaik khaja.andr...@gmail.comwrote: Hai Friends I am facing problems with sqlite database example. I am trying to add two columns dynamically it is adding to database when I was trying to add two more columns I am getting so many errors. I was declared all the fields where necessary in the code... The error is like content3 not found in database.. Please give me some solution for my problem... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Runtime
Hi , I want to execute some command shell into android , but i have a problem when i use command 'echo' Error running exec(). Command: [echo, 201918, , /data/System/password.key] Working Directory: null Environment: null any suggestion plz. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Recently released: SocialNav
An individually developed Android application, where social networking and mobile navigation meet. More information can be found at: http://socialnav.blogspot.com It can be downloaded from: Google Play: https://play.google.com/store/apps/details?id=com.apps.social_nav Handster: http://www.handster.com/socialnav.html?dm=1multi=1 Follow the latest features and release news on Twitter: https://twitter.com/socialnav1 In case you try it, I would be looking forward to hear your feedback. Cheers, -Ali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!
25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id No. The two-argument constructor takes a *layout* id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96 and it's assumed that the layout consists of just one TextView at the root. https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378 So: res/layout/item_simple.xml: ?xml version=1.0 encoding=utf-8? TextView / and then: new ArrayAdapter(this, R.layout.item_simple) Constructor #2 takes a layout id and a view id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107 and uses findViewId with the last (third) parameter locate the text view within the layout: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381 res/layout/item_complex: ?xml version=1.0 encoding=utf-8? LinearLayout ... or something else TextView android:id=@+id/item_text_view / ImageView ... or something else / /LinearLayout and then new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem reading HTTP stream
The code pasted below gets an exception on tha line that says... InputStream in = new BufferedInputStream(urlConnection.getInputStream()); It's an IO exception that says: java.net.UnknownHostException: www.android.com I checked and that is a valid url. I got the original code from the android docs on HttpURLConnection although I had to fix serveral bugs in the docs code. Why am I getting this exception? thanks, Gary import java.io.BufferedInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); HttpURLConnection urlConnection = null; try { URL url = new URL(http://www.android.com/;); urlConnection = (HttpURLConnection) url.openConnection(); InputStream in = new BufferedInputStream(urlConnection.getInputStream()); readStream(in); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { urlConnection.disconnect(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Force opening web URLs YouTube videos in Android phone's DEFAULT browser using Intent.
AFAIK you can't... On Mar 23, 2012 12:40 AM, Shajahan lovesa...@gmail.com wrote: I am trying to launch browser with the specified URL. It works fine if it's web URL, but when the URL detected to be a video(say YouTube video) then it come up with choices to make between the browser YouTube App installed in the device. Instead of this how to force this behavior to have the URL to open in DEFAULT Android phone's browser. Uri youTubeUrl = Uri.parse(http://www.youtube.com/watch? v=qC5W69uaoTA); Intent launchBrowser = new Intent(Intent.ACTION_VIEW, youTubeUrl); Any ideas ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Listview of programmatically created Drawables
How can you get programmed stroked Drawables (not bitmaps) to appear in the lines of a ListView? On Mar 23, 1:36 am, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 9:42 PM, Gene gene.ress...@gmail.com wrote: ListView seems to be the way to go, but I can't grok how to make other-than-bitmaps appear in ListView items. No Canvas is in sight. You might want to elaborate and clarify - I, for one, have no clue what you're getting at. ----- 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: Hello everyone, i couldn't figure out what this error in the logcat means!!!
Kostya, Thanks for catching my mistake! I had surgery for a deviated septum a couple days ago and I'm on some pretty heavy meds... Serves me right for trying to answer some questions while I'm obviously so very loopy! :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/3/24 Kostya Vasilyev kmans...@gmail.com 25 марта 2012 г. 0:55 пользователь Justin Anderson magouyaw...@gmail.com написал: Apen sorry i dint notice ur suggestion, no it's not about the name, hmm i think it's something wrong with the order of the blocks... No, it IS about the name... Apen was correct (and that is what I was trying to say before, but was REALLY tired so I apologize for the incoherent replies). mNewDevicesArrayAdapter = new ArrayAdapterString(this, R.layout.textviewlayout); That is incorrect... You should not be passing in an R.layout here... you should be passing in an R.id No. The two-argument constructor takes a *layout* id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L96 and it's assumed that the layout consists of just one TextView at the root. https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L378 So: res/layout/item_simple.xml: ?xml version=1.0 encoding=utf-8? TextView / and then: new ArrayAdapter(this, R.layout.item_simple) Constructor #2 takes a layout id and a view id: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L107 and uses findViewId with the last (third) parameter locate the text view within the layout: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java#L381 res/layout/item_complex: ?xml version=1.0 encoding=utf-8? LinearLayout ... or something else TextView android:id=@+id/item_text_view / ImageView ... or something else / /LinearLayout and then new ArrayAdapter(this, R.layout.item_complex, R.id.item_text_view) -- K -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Set Layout Background Image and change color of the image dynamically
Yes. You are the only one confused by this question. the answer is, it can't be done. On Mar 24, 2012 1:44 PM, Justin Anderson magouyaw...@gmail.com wrote: Am I the only one confused by this question? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Mar 24, 2012 at 1:45 PM, Android Developer c2dmdevelo...@gmail.com wrote: Hi, I have LinearLayout i want to set Image as background and i need to change the image color. I mean image remains transparent and it should reflect whatever background color we choose. I dont know how to start with any example is helpful. 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] which framework is best for to develop cross platform mobile applications?
No one is asking about My brain !! Loll !! You're right... No one is. Neither am I. I was saying that you were given a recommendation by someone to look into PhoneGap, so go look into it and decide if it will be a good fit for you. No one else knows what skills you have and what strengths/weaknesses/experience you have when it comes to programming so you will have to be the one to make the decision. So, follow the link that you were given for PhoneGap and go read up on it and use your brain to determine if it works for you. Those of us on this list can't make that decision for you. Wht made hi feel say PhoneGap was my question ? Read it coolly Boss!! He told you already... He used it and liked it. That is why he recommended it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 10:44 PM, Anirudh Loya loya.anir...@gmail.comwrote: No one is asking about My brain !! Loll !! Wht made hi feel say PhoneGap was my question ? Read it coolly Boss!! On Thu, Mar 22, 2012 at 10:35 PM, Justin Anderson magouyaw...@gmail.comwrote: What made you say PhoneGap is good? Tell its merits? How about you actually do the research yourself and decide if it is a good fit for you? The people on this forum are not a substitute for your brain... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 5:59 AM, Anirudh Loya loya.anir...@gmail.comwrote: What made you say PhoneGap is good? Tell its merits? On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.inwrote: Hi Lakshmi, I have tried PhoneGap , and its pretty good http://phonegap.com/ On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.comwrote: Check previous mails. Already lots of discussion happened on this topic . On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti lakshmi.vad...@gmail.com wrote: Hi, Which framework is best one to develop cross platform mobile applications? Thanks in advance. lakshmi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at
Re: [android-developers] How to place controls properly inside of a custom list view.
You could try giving your textview a layout_weight of 1... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 3:31 PM, TreKing treking...@gmail.com wrote: On Thu, Mar 22, 2012 at 2:58 AM, Put_tiMe putt...@gmail.com wrote: how can I fix this issue? How can I place the image to the extreme RHS of the list view row. That should work. What does it look like now? Have you used http://developer.android.com/guide/developing/tools/hierarchy-viewer.html to inspect how the layout appears? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Accessing skydrive from Android app
I'm getting a problem while accessing the skydrive file. My android app is getting closed automatically. You are correct. That is a problem... I think there is an error in ClientID Ok Could you please help me out? I can send my app. No, I can't. I've never used SkyDrive. You can do what I told you to do before... Try to find some sort of SkyDrive support forum and ask for help there. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 1:12 PM, Anand kishore anandkishor...@gmail.comwrote: Magouyaware: I'm getting a problem while accessing the skydrive file. My android app is getting closed automatically. I think there is an error in ClientID . Could you please help me out? I can send my app. Thank you:) On Monday, 19 March 2012 11:37:01 UTC+5:30, Anand kishore wrote: Hie friends, I'm wondering that skydrive provides 25gb of storage. It'll be useful for online storage. I'm working on a project called sync the mobile files with skydrive. Can i connect my android app to skydrive account?? I've created an app ,but i'm not able to connect it to skydrive account. Any help will be much appreciated.:) 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] Re: Android reset in dalvik layer(system_server or zygote process crash)
Hi macterry, Firstly,thanks for your help, But I can not agree with you. I think the ActivityManagerService killed by WatchDog is rootcause. The system_server process will crash if ActivityThread occurs fatal exception. Many Thanks !!! 2012/3/24 mcterry macte...@gmail.com: Hello Hongyue, When looking through the logcat, look for the FATAL EXCEPTION. Then, look for the first line that has your applications package name...this will be the bug that needs to be fixed. In your log, I found this error... FATAL EXCEPTION: main 03-06 11:40:38.873 E/AndroidRuntime(15229): java.lang.NullPointerException 03-06 11:40:38.873 E/AndroidRuntime(15229): at android.app.ActivityThread.attach(ActivityThread.java:3618) It looks like you have a class called ActivityThread that has a NullPointerException on line 3618. If you add a breakpoint (double click on he left side of the editor where the line numbers are in Eclipse), and then you can hit that breakpoint and see which field/variable/etc. is null. Typically, you can use a simple if (foo != null) check...other times there is something bigger wrong. Let me know if you need help debugging your NPE. Hope this helps! -Matt www.sep.com/mcterry On Friday, March 23, 2012 2:45:14 AM UTC-4, Hongyue XU wrote: Hi all, The system reset many times recently which in the dalvic layer. I get that the watchdog of framework layer kills ActivityManagerService or WindowsManagerService from log info. Some cases are caused by 3party apps, some are the overloading in system. I try to enlarge the dalvik.vm.heap.size from 32MB to 48MB or increase the timeout(ANR, IDLE,Service,App freeze etc), but not any valuable. Now I have no ideas about this issue, Please help me.Many thanks!!! Hardware Info: 1433MHz ,2GB ROM+512MB RAM, 400*800 Log Info: Log 1: 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 184 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 185 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 186 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 187 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 188 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 190 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 191 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 199 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 200 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 201 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 202 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 203 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 209 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 210 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 221 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 223 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 224 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 225 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 231 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 232 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 234 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 235 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 236 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 237 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 238 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 239 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 240 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 241 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 242 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 243 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 244 : 13 (Permission denied) 03-06 11:40:16.442 E/Watchdog_N( 184): Unable to open stack of tid 245 : 13 (Permission denied) 03-06 11:40:16.442
Re: [android-developers] Eclipse IDE
http://lmgtfy.com/?q=eclipse+osx+32bit+vs+64bit Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Mar 20, 2012 at 12:06 PM, Subramanya S subramanya9...@gmail.comwrote: I want to download Eclipse IDE for Java Developers for Mac OS X 10.6.8 Snow Leopard. I want know which Eclipse Indigo i want to download is it Mac OS X 32 Bit or Mac OS X 64 Bit for Mac OS X 10.6.8 i am using MacBook My Processor is 64-bit, Intel Core 2 Duo. But I don't know weather it is 32-bit or 64-bit Mac OS X 10.6.8 Snow Leopard. Please can you help with this enquiry Thanks Regards Subramanya... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] DexClassLoader
Hello Everyone, I am trying to play with DexClassLoader http://developer.android.com/reference/dalvik/system/DexClassLoader.htmland http://www.java2s.com/Open-Source/Android/android-core/platform-libcore/dalvik/system/DexClassLoader.java.htmI am wondering how can I use DexClassLoader.I am not expert in Android and I dont know how to use it, does anyone has an idea? Your Response Is Much Appreciated. Many 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