[android-developers] Application getting wrong location until open inbuilt Google Map application
Hello All, I have developed one application which is used to find current location of device. I have used Fused Location API to get current location. I am facing very strange issue, in some of devices i am not getting accurate current location until i open inbuilt Google Map, once i open Google Map and back to my application at that time application return exact location. Can anyone tell me what is the wrong? Your help is really appreciated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/04031994-cc6c-407b-b105-9ea8564049c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android Device is not Listed in Android Device Chooser
Hello to all, Yesterday i purchased new I Ball Andi 2 android device . Then after i tried a lot to find that device driver , but i failed to find . My problem is that my andi 2 device is not listed in android device chooser when i run the application. What I tried for that ? 1) Enable Usb Debugging. And also trying to follow below steps but not getting sucess . To install the Android USB driver on Windows XP for the first time: 1) Connect your Android-powered device to your computer's USB port. Windows will detect the device and launch the Hardware Update Wizard. 2) Select Install from a list or specific location and click Next. 3) Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search. 4) Click Browse and locate the USB driver folder. (The Google USB Driver is located in sdk\extras\google\usb_driver\.) 5) Click Next to install the driver. But not getting sucess. Can anyone help me to sort out this problem ? How to list my android device in my Android chooser in eclipse ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide the pointstyle displayed at bottom of chart ?
am using achartengine-0.7.0.jar in my project.. By default it displays pointstyle(Diamond,X,Point,Square,etc) at the bottom-left corner of chart (which shows which point style is used) But I don't want to show this in my chart.. Is there any method For hiding this??? Thanks in advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get inputstream from bitmap image file?
i am developing one contact application . I want to show contact image to my custom listview . I want to get Inputstream from that contact image to write into sdcard . How can i get it ? Any help is appreciated. Thanks Ragards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Lazy loading contact images to a ListView in Android
What is the easiest way of lazy loading contact images to a ListView in Android? (for SDK level =7) Is there a common approach or should I choose one of the different approaches discussed here on lazy loading web images into ListViews? I have come across the ContactPhotoLoader used inside the default Contacts application which seems ok for me. Is there a better approach to do 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
[android-developers] Standard broadcast whenever a contact is added or changed
Is there any standard broadcast intent that I can register a BroadcastReceiver for that gets triggered whenever a contact is added or changed? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to find phone number in android
Gets the phone number the app is running on. It needs a permission so add the line uses-permission android:name=android.permission.READ_PHONE_STATE to the manifest.xml private String getMyPhoneNumber() { TelephonyManager mTelephonyMgr; mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); return mTelephonyMgr.getLine1Number(); } private String getMy10DigitPhoneNumber() { String s = getMyPhoneNumber(); return s.substring(2); } Note : Keep in mind that phone number may NOT be available, depending on the carrier. On Thu, Nov 3, 2011 at 5:03 PM, suresh sureshmca.sv...@gmail.com wrote: hi Ratheesh can u tel me which settings i should give. On Nov 3, 4:23 pm, Ratheesh Valamchuzhy android...@gmail.com wrote: make sure you give all the settings -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Not finding full path
Hello to all i am using google maps api . i am follow this tutorail . http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations using this tutorial i am finding the short distance path and route description . But when i am passing long distance latitude and longitude i am not getting full path and route description . Please check the below url which show the kml file. maps.google.com/maps? f=dhl=ensaddr=23.01246,72.51795daddr=26.917,75.817ie=UTF80om=0output=kml Any help is Appreciated . Thanks in Advance. Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Gettting Defferent Distance When Using the Google Map and User defined Function
I want to get the Distance between two latitude and longitude in meter / km . So i am using the below function . It gives me the different result than the google Map. Can you help me to solve my problem ? i dont understand What is the Problem ? Code private double distance(double lat1, double lon1, double lat2, double lon2) { double theta = lon1 - lon2; double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta)); dist = Math.acos(dist); dist = rad2deg(dist); dist = dist * 60 * 1.1515; return (dist); } private double deg2rad(double deg) { return (deg * Math.PI / 180.0); } private double rad2deg(double rad) { return (rad * 180.0 / Math.PI); } Current Latitude = 23.0122813 Current Longitude = 72.517983 Destination Latitude = 23.1120487 Destination Latitude = 72.5766759 It gives this Result = 12579.679 in Meter, while in google map it gives this result = 17.9 Km I do not understand why this two gives the different result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gettting Defferent Distance When Using the Google Map and User defined Function
I want to get the Distance between two latitude and longitude in meter / km . So i am using the below function . It gives me the different result than the google Map. Can you help me to solve my problem ? i dont understand What is the Problem ? Code float[] results = {0}; android.location.Location.distanceBetween(lat1, lon1, lat2, lon2, results); Current Latitude = 23.0122813 Current Longitude = 72.517983 Destination Latitude = 23.1120487 Destination Latitude = 72.5766759 It gives this Result = 12579.679 in Meter, while in google map it gives this result = 17.9 Km I do not understand why this two gives the different result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Gettting Defferent Distance When Using the Google Map and User defined Function
yes, i think it gives the result travel distance by car. i want the travel distance . how can i get travel distance ? On Sat, Oct 8, 2011 at 3:53 PM, Michael Banzon mich...@banzon.dk wrote: How do you get the result using google maps? Could the case be that google maps simply gives you the travel distance by car/train/foot?? On Sat, Oct 8, 2011 at 12:19 PM, Chirag Raval chirag.android.develo...@gmail.com wrote: I want to get the Distance between two latitude and longitude in meter / km . So i am using the below function . It gives me the different result than the google Map. Can you help me to solve my problem ? i dont understand What is the Problem ? Code float[] results = {0}; android.location.Location.distanceBetween(lat1, lon1, lat2, lon2, results); Current Latitude = 23.0122813 Current Longitude = 72.517983 Destination Latitude = 23.1120487 Destination Latitude = 72.5766759 It gives this Result = 12579.679 in Meter, while in google map it gives this result = 17.9 Km I do not understand why this two gives the different result. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Michael Banzon http://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Load Contact Image in Listview
Hello to all, I am developing one demo application . In that application i am trying to load contact photo using below function. public static long getProfilepicture(Activity activity, String address) { Uri personUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, address); Cursor phoneCursor = activity.getContentResolver().query(personUri,projection, null, null, null); if (phoneCursor.moveToFirst()) { int indexPersonId = phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID ); long personId = phoneCursor.getLong(indexPersonId); phoneCursor.close(); // Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, personId); return personId; } return 0; } public static Bitmap loadContactPhoto(ContentResolver cr, long id) { Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); Log.i( Load Contact Photo,..+uri); InputStream input = ContactsContract.Contacts.openContactPhotoInputStream(cr, uri); if (input == null) { Log.i( Input is Null,..); return null; } return BitmapFactory.decodeStream(input); } First function getProfilepicture return the id of the contact person on based of mobile number. Second function loadContactPhoto return the bitmap. But the second function always return the null.Can anyone tell me what is the problem ? Where i am wrong ? Here i also mentioned the Uri from which function trying to openContactPhotoInputStream. content://com.android.contacts/contacts/32 Thanks in advance. Regards, Chiag raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Load Contact Image in Listview
Hello to all, I am developing one demo application . In that application i am trying to load contact photo using below function. public static long getProfilepicture(Activity activity, String address) { Uri personUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, address); Cursor phoneCursor = activity.getContentResolver().query(personUri,projection, null, null, null); if (phoneCursor.moveToFirst()) { int indexPersonId = phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID ); long personId = phoneCursor.getLong(indexPersonId); phoneCursor.close(); // Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, personId); return personId; } return 0; } public static Bitmap loadContactPhoto(ContentResolver cr, long id) { Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); Log.i( Load Contact Photo,..+uri); InputStream input = ContactsContract.Contacts.openContactPhotoInputStream(cr, uri); if (input == null) { Log.i( Input is Null,..); return null; } return BitmapFactory.decodeStream(input); } First function getProfilepicture return the id of the contact person on based of mobile number. Second function loadContactPhoto return the bitmap. But the second function always return the null.Can anyone tell me what is the problem ? Where i am wrong ? Here i also mentioned the Uri from which function trying to openContactPhotoInputStream. content://com.android.contacts/contacts/32 Thanks in advance. Regards, Chiag raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Load Contact Image in Listview
Hello to all, I am developing one demo application . In that application i am trying to load contact photo using below function. public static long getProfilepicture(Activity activity, String address) { Uri personUri = Uri.withAppendedPath(ContactsContract.CommonDataKinds.Phone.CONTENT_FILTER_URI, address); Cursor phoneCursor = activity.getContentResolver().query(personUri,projection, null, null, null); if (phoneCursor.moveToFirst()) { int indexPersonId = phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID ); long personId = phoneCursor.getLong(indexPersonId); phoneCursor.close(); // Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, personId); return personId; } return 0; } public static Bitmap loadContactPhoto(ContentResolver cr, long id) { Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); Log.i( Load Contact Photo,..+uri); InputStream input = ContactsContract.Contacts.openContactPhotoInputStream(cr, uri); if (input == null) { Log.i( Input is Null,..); return null; } return BitmapFactory.decodeStream(input); } First function getProfilepicture return the id of the contact person on based of mobile number. Second function loadContactPhoto return the bitmap. But the second function always return the null.Can anyone tell me what is the problem ? Where i am wrong ? Here i also mentioned the Uri from which function trying to openContactPhotoInputStream. content://com.android.contacts/contacts/32 Thanks in advance. Regards, Chiag raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] trying to start-activity from alertdiaog --please advice
hey can you tell us whats the error ? On Wed, Sep 28, 2011 at 5:12 AM, TreKing treking...@gmail.com wrote: On Sat, Sep 24, 2011 at 1:03 PM, Manas Shah shahmana...@gmail.com wrote: I would like to launch new activity from the PositiveButton of alert dialog but it throws error. You want us to guess what this error is? - 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] .html filed loading problem.how to i will solve it
Hi Shital Please try below code. WebView mWebView=(WebView)findViewById(R.id.mWebView); mWebView.loadUrl(file:///android_asset/html/raj.html); mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setSaveFormData(true); mWebView.getSettings().setBuiltInZoomControls(true); mWebView.setWebViewClient(new MyWebViewClient()); private class MyWebViewClient extends WebViewClient { @Override //show the web page in webview but not in web browser public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl (url); return true; } } On Fri, Sep 23, 2011 at 5:07 PM, shital suryawanshi shital.andr...@gmail.com wrote: WebView mWebView =(WebView) findViewById(R.id.webView1); mWebView.loadUrl(file:///android_asset/html/raj.html); this my 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] Where the Apk files are stored in Device ?
As the subject suggest , I want to know where all the apk files are stored in device which were downloaded from market ? Thanks in advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question About Upload Application on Market
I have one simple and silly question about upload application on market. I am developing one application using android 2.2 build version and in android manifest file i am declare minimum version as 1.6 . Like(uses- sdk android:minSdkVersion=4 /) So when i am upload this application on market, is it available for android 1.6 and 2.1 user ? Is it listing for that users ? Thanks in Advance. Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] What can block my ProgtessDialog
Can you post some code please ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Question About Upload Application on Market
should be or must be ? On Tue, Sep 20, 2011 at 12:26 PM, TreKing treking...@gmail.com wrote: On Tue, Sep 20, 2011 at 1:44 AM, Chirag Raval chirag.android.develo...@gmail.com wrote: So when i am upload this application on market, is it available for android 1.6 and 2.1 user ? Is it listing for that users ? It should be, but with the Android Market is like a box of choc-lates ... you just never know what ya gonna get. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I want to stop alarm if set time passed
Hello, I am developed one android application, in that application i want to show notification to the user at every morning 9 am. For that i am creating a one alarm class and called that alarm class's method from splash screen.So when ever splash screen called my alarm class called. Here i have one issue in my application . First time when i set time to alarm it called my service but again after time passed it called my service again . How can i stop it ? I used alarm manager's setRepeating method in that i am set interval time is 24*60*60*1000. Please Help me to sort out my problem. My Alarm Class - import java.util.Calendar; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.util.Log; public class Alarms { static void scheduleRegularSync(Context ctx) { scheduleSync(ctx); } @SuppressWarnings(static-access) private static void scheduleSync(Context ctx) { AlarmManager alarmManager = (AlarmManager)ctx.getSystemService(ctx.ALARM_SERVICE); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 14); calendar.set(Calendar.MINUTE, 44); calendar.set(Calendar.SECOND, 00); PendingIntent pi = createPendingIntent(ctx); long offset = calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET); long sinceMidnight = (calendar.getTimeInMillis() + offset) % (24 * 60 * 60 * 1000); Log.i(-- Time in Milli Seconds,+sinceMidnight); alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 24*60*60*1000, pi); Log.i(--- Alaram Called,--); } private static PendingIntent createPendingIntent(Context context) { Intent myIntent = new Intent(context, MyAlarmService.class); return PendingIntent.getService(context,(int) 0, myIntent, 0); } } Thanks in Advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] I want to stop alarm if set time passed
Hello, I am developed one android application, in that application i want to show notification to the user at every morning 9 am. For that i am creating a one alarm class and called that alarm class's method from splash screen.So when ever splash screen called my alarm class called. Here i have one issue in my application . First time when i set time to alarm it called my service but again after time passed it called my service again . How can i stop it ? I used alarm manager's setRepeating method in that i am set interval time is 24*60*60*1000. Please Help me to sort out my problem. My Alarm Class - import java.util.Calendar; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.util.Log; public class Alarms { static void scheduleRegularSync(Context ctx) { scheduleSync(ctx); } @SuppressWarnings(static-access) private static void scheduleSync(Context ctx) { AlarmManager alarmManager = (AlarmManager)ctx.getSystemService(ctx.ALARM_SERVICE); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 14); calendar.set(Calendar.MINUTE, 44); calendar.set(Calendar.SECOND, 00); PendingIntent pi = createPendingIntent(ctx); long offset = calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET); long sinceMidnight = (calendar.getTimeInMillis() + offset) % (24 * 60 * 60 * 1000); Log.i(-- Time in Milli Seconds,+sinceMidnight); alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 24*60*60*1000, pi); Log.i(--- Alaram Called,--); } private static PendingIntent createPendingIntent(Context context) { Intent myIntent = new Intent(context, MyAlarmService.class); return PendingIntent.getService(context,(int) 0, myIntent, 0); } } Thanks in Advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?
Hello Benjamin You have to resize the bitmap before set to image view if its size is bigger, other wise sometime it gives memory out of exceed error. On Thu, Sep 1, 2011 at 3:34 PM, Benjamin benjaminru...@googlemail.comwrote: Hello friends, i have a simple question: Should i resize a bigger bitmap before adding to a ImageView or let the ImageView resize the Bitmap? What's the right way, regarding performance? 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] Call BroadCast Receiver
Hello to ereryone I want to call Brodcast Receiver from my main activity when it satisfy the particular condition. How can i achieve this ? Please help to find this solution . Please give me proper example for that. Example --- if(condition) { Here i want to call broadcast receiver } Thanks in advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update UI from Service
Hello to all .. Can any one help me to update UI from Service ? Here in my application i created one service, from my service i want to update a textview which is in my Main Activity ? How can i change that textview's value from my service ? Please give me proper suggestion. Thanks in Advance. Regards, Chirag Raval. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Please point a noob in the right direction.
Can you post your logcat error ? On Wed, Aug 31, 2011 at 2:46 PM, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 31 August 2011 02:38, leftcont...@gmail.com leftcont...@gmail.com wrote: I have been trying to chase this error down for a week and have made little headway . The problem is i lack any real foundation when it comes to programming and i am teaching myself. I would really appreciate it if someone would be willing to take a moment and point me in the right direction so that i can figure this out. My first android project and i am floundering from lack of basic troubleshooting skills. The Problem: I am experiencing an unexpected stop when trying to load my app on the android emulator. You have NullPointerException in the initiation of your activity (MainActivity.java) on line 57. I am not sure how your code is/was formatted, but taking package declaration as line 1, it looks like your mAudioManager is null. [cut] -- Daniel Drozdzewski -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Update UI from Service
Thanks Mark Murphy On Wed, Aug 31, 2011 at 3:05 PM, Mark Murphy mmur...@commonsware.comwrote: On Wed, Aug 31, 2011 at 5:05 AM, Chirag Raval chirag.android.develo...@gmail.com wrote: Can any one help me to update UI from Service ? Here in my application i created one service, from my service i want to update a textview which is in my Main Activity ? How can i change that textview's value from my service ? You send a message from the service to the activity, and the activity updates the TextView. Whether you do this via binding and the listener pattern, or ordered broadcasts ( http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html ), or a Messenger object passed as an Intent extra, or a PendingIntent from createPendingResult(), or something else, is up to you and would depend a bit on the service in question. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hide My Files from Another Application
Hello Everyone. In my application i m downloading some (mp4 or mp3 ) files from the internet. Now i want to hide those files from any other application like(Astro any Music player) so how can i do this ? Please help me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en