[android-developers] Android In App Billing version 3. Querying for Purchased Items returned null information
After purchased product , i am try to get Purchased Items information but return null value. The app are publish in goole play. The are not in goole play draft. Bundle ownedItems = mService.getPurchases(3, getPackageName(), inapp, null); int response = ownedItems.getInt(RESPONSE_CODE); is return 0 but all other information are return null. I same user account that are use to buy product and currently logged in to the device. I am do not found this information. INAPP_PURCHASE_ITEM_LIST , INAPP_PURCHASE_DATA_LIST Via same application , when i try to get SkuDetails. It return all information. Bundle skuDetails = mService.getSkuDetails(3, getPackageName(), inapp, querySkus); Why goole do not return information?. Google service are off this time or any other reason. If any one face same problem then please share with me. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Unsubscribe
Was this ever resolved? I've noticed a similar issue with my app. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] improving gps lock time
Looks like AGPS uses WIFI and cell-phone tower locations. The problem for my app is that I don't necessarily have access to data service - so AGPS will not work. Even though I want to do want AGPS does - i.e. provide a start location for getting satellite queries. But my understanding is that API is not available. The real problem I have is that I allow users to shut the screen off to save batteries and I stop the gps listeners. Then onResume(), I enable the listeners - and it's here where the lock time is too much. Option #2. How about I NOT disable the listeners on onPause() - but set the listener to every minute. I would think that would help maintain the lock. It would save the battery with the screen off. and maybe some batteries wiith the gps being queried less often now. not sure of the latter though. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: help needed
thank u bob. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Best practice? New Activity for UI screens or change layouts and capture back button?
Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] improving gps lock time
AGPS does NOT use wifi and cell tower locations. http://en.wikipedia.org/wiki/Assisted_GPS On Sunday, March 10, 2013 8:33:05 AM UTC-4, dashman wrote: Looks like AGPS uses WIFI and cell-phone tower locations. The problem for my app is that I don't necessarily have access to data service - so AGPS will not work. Even though I want to do want AGPS does - i.e. provide a start location for getting satellite queries. But my understanding is that API is not available. The real problem I have is that I allow users to shut the screen off to save batteries and I stop the gps listeners. Then onResume(), I enable the listeners - and it's here where the lock time is too much. Option #2. How about I NOT disable the listeners on onPause() - but set the listener to every minute. I would think that would help maintain the lock. It would save the battery with the screen off. and maybe some batteries wiith the gps being queried less often now. not sure of the latter though. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Broadcast receiver in foreground activity - not reliable?
I got a user reporting that our app does correctly terminate when the user's device exits car mode, but only when the activity that contains the receiver is not active. If the activity is in the foreground then more often than not our app does not terminate. The activity is defined as activity android:name=.MainScreen android:alwaysRetainTaskState=true android:configChanges=orientation android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK / category android:name=android.intent.category.CAR_MODE / /intent-filter /activity The receiver is very simple *private* BroadcastReceiver undockReceiver = *new* BroadcastReceiver() { @Override *public* *void* onReceive(Context context, Intent intent) { *if* (intent.getAction().equals(android.app.action.EXIT_CAR_MODE)) { finish(); } } }; Is there a reason that the receiver does not work reliably? Is it bad practice to put a receiver inside the main activity? or does it have to do with the activity flags? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Finding SHA1 fingerprint key
hi frnds how to Find SHA1 fingerprint key 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 --- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] improving gps lock time
If the GPS has been on and the user turns off the screen, there's nothing you can do to really get a better approximation to location. Let's be realistic here: how accurate does your signal need to be? If it's pinpoint accuracy (within 60-200 m) then you should be getting constant fixes anyway. If it's not, then why is fixing the results of the output so bad? If you want a good trade off, I'd say to set up an alarm manager that requests location fixes at a coarse interval. Kris On Sun, Mar 10, 2013 at 8:33 AM, dashman erjdri...@gmail.com wrote: Looks like AGPS uses WIFI and cell-phone tower locations. The problem for my app is that I don't necessarily have access to data service - so AGPS will not work. Even though I want to do want AGPS does - i.e. provide a start location for getting satellite queries. But my understanding is that API is not available. The real problem I have is that I allow users to shut the screen off to save batteries and I stop the gps listeners. Then onResume(), I enable the listeners - and it's here where the lock time is too much. Option #2. How about I NOT disable the listeners on onPause() - but set the listener to every minute. I would think that would help maintain the lock. It would save the battery with the screen off. and maybe some batteries wiith the gps being queried less often now. not sure of the latter though. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to get a good idea of app downloads / day for Free apps?
So I have paid apps and some free Demos, but the problem is I can get metrics for the Free apps. I mean, the Downloads number in the dashboard is NOT trustworthy, I hardly read it. I don't think it's accurate. The nice thing about Paid apps is I can see every order in Google checkout and see how many orders there were. But I don't know of a way to see every free app download, so for example you could see downloads / day or such. Any ideas? -niko -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Google Checkout spreadsheets and currency - how to convert all to U.S.?
Thanks for the info, I'll give it a shot On Saturday, March 9, 2013 1:58:35 AM UTC-6, al wrote: The payout reports have 2 columns called Merchant Currency and Merchant Receives. The sales reports seem to be preliminary. It should be sufficient to use a simple script to convert the Charged Amount column. Personally, I use this currency converter class for as part of my own script: http://www.thomasknierim.com/63/java/java-currency-conversion-class/. The result of course does not correspond 100% to the data that you will eventually find in a payout report; it's preliminary... Am Freitag, 8. März 2013 23:21:05 UTC+1 schrieb niko20: Every since Google did a large switchover to currency, when you download a Google Checkout spreadsheet it shows the prices in all different currencies. This is pain in the ass for my recordkeeping and statistics. Anyone know how you can get it to show all currency values only in U.S. dollars? -niko -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Best practice? New Activity for UI screens or change layouts and capture back button?
Don't override the back button. There are times when overriding the back button really has some other semantic meaning (ending GPS fixes, etc...), but most of the time it's as annoying as overriding back on a webpage. kris On Sun, Mar 10, 2013 at 9:45 AM, bsd_mike bsd_m...@yahoo.com wrote: Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Best practice? New Activity for UI screens or change layouts and capture back button?
(By the way, there are flags you can pass to startActivity that will change the behavior of the activity stack. In the cases where you might otherwise wrongly override the back button.) Kris On Sun, Mar 10, 2013 at 12:44 PM, Kristopher Micinski krismicin...@gmail.com wrote: Don't override the back button. There are times when overriding the back button really has some other semantic meaning (ending GPS fixes, etc...), but most of the time it's as annoying as overriding back on a webpage. kris On Sun, Mar 10, 2013 at 9:45 AM, bsd_mike bsd_m...@yahoo.com wrote: Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] SMSManger sendTextMessage - never get deliveryIntent
Do you need RECEIVE_SMS permission to receive the deliveryIntent by any chance? Here is my code - any help would be CRAZY appreciated =) I always get the sent intent but never the delivery one. // The intent action to be unique so that we can have multiple // concurrent pending intents. // http://developer.android.com/reference/android/app/PendingIntent.html String intentAction = TAG + - + callbackId; // callbackId is unique per call Intent intent = new Intent(intentAction); PendingIntent sentPI = PendingIntent.getBroadcast(ctx, 0, intent, 0); cordova.getActivity().registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context ctx, Intent intent) { int resultCode = getResultCode(); int status = -1; String details = ; switch (resultCode) { case Activity.RESULT_OK: status = 0; break; case SmsManager.RESULT_ERROR_NO_SERVICE: details = No service; case SmsManager.RESULT_ERROR_NULL_PDU: details = Null PDU; case SmsManager.RESULT_ERROR_RADIO_OFF: details = Radio off; status = 1; break; } JSONObject obj = new JSONObject(); try { obj.put(status, status); obj.put(details, details); } catch (JSONException e) { throw new RuntimeException(e); } sendAsyncResultStatus(callbackId, obj); ctx.unregisterReceiver(this); } }, new IntentFilter(intentAction)); // The intent action to be unique so that we can have multiple // concurrent pending intents. // http://developer.android.com/reference/android/app/PendingIntent.html String deliveryIntentAction = TAG + -Delivery- + callbackId; Intent deliveryIntent = new Intent(deliveryIntentAction); PendingIntent deliveryPI = PendingIntent.getBroadcast( cordova.getActivity(), 0, deliveryIntent, 0); cordova.getActivity().registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context ctx, Intent intent) { logger.log(Level.INFO, TAG + DELIVERY intent YOYO!!); String pdu = intent.getStringExtra(pdu); logger.log(Level.INFO, TAG + DELIVERY intent!! to: + sentToPhoneNumber + , pdu: + pdu); JSONObject obj = new JSONObject(); try { obj.put(pdu, pdu); } catch (JSONException e) { throw new RuntimeException(e); } sendAsyncResultStatus(callbackId, obj); ctx.unregisterReceiver(this); } }, new IntentFilter(deliveryIntentAction)); smsManager.sendTextMessage(phoneNumber, null, message, sentPI, deliveryPI); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
Using multiple activities is much less hassle on the developer side On Sunday, March 10, 2013 8:45:09 AM UTC-5, bsd_mike wrote: Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Delay on Track Playing(SoudMixter Application)
You are never going to sync perfectly doing it this way. You have to mix the sound data together yourself and then feed it out as one PCM stream On Saturday, March 9, 2013 12:25:51 PM UTC-6, Dharmendra Deshmukh wrote: This is Application Code I am Posting here.. public class MulitrackmixtureActivity extends Activity { /** Called when the activity is first created. */ public Button play, pause, rew; public MediaPlayer mediaPlayer, mediaPlayer2, mediaPlayer3, mediaPlayer4, mediaPlayer5, mediaPlayer6; SeekBar seek, trk1vol, trk2vol, trk3vol, trk4vol, trk5vol, trk6vol; AudioManager audioManager; private final Handler handler = new Handler(); public static final int S1 = R.raw.track1a; public static final int S2 = R.raw.track2a; public static final int S3 = R.raw.track3a; public static final int S4 = R.raw.track4a; public static final int S5 = R.raw.track5a; public static final int S6 = R.raw.track6a; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); seek = (SeekBar) findViewById(R.id.seekBar1); play = (Button) findViewById(R.id.play_btn); pause = (Button) findViewById(R.id.pause_btn); rew = (Button) findViewById(R.id.rew_btn); mediaPlayer = new MediaPlayer(); mediaPlayer = MediaPlayer.create(this, S1); mediaPlayer2 = new MediaPlayer(); mediaPlayer2 = MediaPlayer.create(this, S2); mediaPlayer3 = new MediaPlayer(); mediaPlayer3 = MediaPlayer.create(this, S3); mediaPlayer4 = new MediaPlayer(); mediaPlayer4 = MediaPlayer.create(this, S4); mediaPlayer5 = new MediaPlayer(); mediaPlayer5 = MediaPlayer.create(this, S5); mediaPlayer6 = new MediaPlayer(); mediaPlayer6 = MediaPlayer.create(this, S6); audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); int maxVolume = audioManager .getStreamMaxVolume(AudioManager.STREAM_MUSIC); int curVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); trk1vol = (SeekBar) findViewById(R.id.seekBar2); trk2vol = (SeekBar) findViewById(R.id.seekBar3); trk3vol = (SeekBar) findViewById(R.id.seekBar4); trk4vol = (SeekBar) findViewById(R.id.seekBar5); trk5vol = (SeekBar) findViewById(R.id.seekBar6); trk6vol = (SeekBar) findViewById(R.id.seekBar7); trk1vol.setMax(maxVolume); trk2vol.setMax(maxVolume); trk3vol.setMax(maxVolume); trk4vol.setMax(maxVolume); trk5vol.setMax(maxVolume); trk6vol.setMax(maxVolume); trk1vol.setProgress(curVolume); trk2vol.setProgress(curVolume); trk3vol.setProgress(curVolume); trk4vol.setProgress(curVolume); trk5vol.setProgress(curVolume); trk6vol.setProgress(curVolume); trk1vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void onStartTrackingTouch(SeekBar arg0) { } public void onProgressChanged(SeekBar seekBar, int progress, boolean arg2) { try { if (seekBar.equals(trk1vol)) { mediaPlayer.setVolume((progress / 10.0f), (progress / 10.0f)); } } catch (Exception e) { // TODO: handle exception } } }); trk2vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void onStartTrackingTouch(SeekBar arg0) { } public void onProgressChanged(SeekBar seekBar, int progress, boolean arg2) { try { if (seekBar.equals(trk2vol)) { mediaPlayer2.setVolume((progress / 10.0f), (progress / 10.0f)); } } catch (Exception e) { // TODO: handle exception } } }); trk3vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void onStartTrackingTouch(SeekBar arg0) { } public void onProgressChanged(SeekBar seekBar, int progress, boolean arg2) { try { if (seekBar.equals(trk3vol)) { mediaPlayer3.setVolume((progress / 10.0f), (progress / 10.0f)); } } catch (Exception e) { // TODO: handle exception } } }); trk4vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void onStartTrackingTouch(SeekBar arg0) { } public void onProgressChanged(SeekBar seekBar, int progress, boolean arg2) { try { if (seekBar.equals(trk4vol)) { mediaPlayer4.setVolume((progress / 10.0f), (progress / 10.0f)); } } catch (Exception e) { // TODO: handle exception } } }); trk5vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void onStartTrackingTouch(SeekBar arg0) { } public void onProgressChanged(SeekBar seekBar, int progress, boolean arg2) { try { if (seekBar.equals(trk5vol)) { mediaPlayer5.setVolume((progress / 10.0f), (progress / 10.0f)); } } catch (Exception e) { // TODO: handle exception } } }); trk6vol.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { public void onStopTrackingTouch(SeekBar seekBar) { } public void
[android-developers] Re: How to get a good idea of app downloads / day for Free apps?
How about Google Analytics - Mobile App Analytics: http://www.google.com/analytics/features/mobile-app-analytics.html On Sunday, March 10, 2013 4:39:28 PM UTC, niko20 wrote: So I have paid apps and some free Demos, but the problem is I can get metrics for the Free apps. I mean, the Downloads number in the dashboard is NOT trustworthy, I hardly read it. I don't think it's accurate. The nice thing about Paid apps is I can see every order in Google checkout and see how many orders there were. But I don't know of a way to see every free app download, so for example you could see downloads / day or such. Any ideas? -niko -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android In App Billing version 3. Querying for Purchased Items returned null information
Did you look into http://developer.android.com/google/play/billing/billing_reference.html On Sunday, March 10, 2013 7:20:53 AM UTC-4, md abdul gafur (Bangladesh) wrote: After purchased product , i am try to get Purchased Items information but return null value. The app are publish in goole play. The are not in goole play draft. Bundle ownedItems = mService.getPurchases(3, getPackageName(), inapp, null); int response = ownedItems.getInt(RESPONSE_CODE); is return 0 but all other information are return null. I same user account that are use to buy product and currently logged in to the device. I am do not found this information. INAPP_PURCHASE_ITEM_LIST , INAPP_PURCHASE_DATA_LIST Via same application , when i try to get SkuDetails. It return all information. Bundle skuDetails = mService.getSkuDetails(3, getPackageName(), inapp, querySkus); Why goole do not return information?. Google service are off this time or any other reason. If any one face same problem then please share with me. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
True, using multiple activities saves hassle on developer side..especially trying to remember where to back up too.. but is there any benefit from not having a pile of activities? If you were doing MVC..and your controller keeps track of the screens..properly sends you back to a previous screen when back is pressed..hassle aside, is there any benefit to using one Activity? This is kind of a philosophical question I realize...probably not demanding as much thought as I am giving it..but I appreciate the input. Thank you, Mike On Mar 10, 12:17 pm, niko20 nikolatesl...@yahoo.com wrote: Using multiple activities is much less hassle on the developer side On Sunday, March 10, 2013 8:45:09 AM UTC-5, bsd_mike wrote: Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
The benefit might be that you can have very fine grained control over the control flow through your app, but in practice this should be achieved through something more standard (i.e., having weird control flow will likely upset users...) You might think you'd use less memory, but you shouldn't really have *that* many Activities on the stack at a time, otherwise you're doing something wrong. kris On Sun, Mar 10, 2013 at 5:12 PM, bsd_mike bsd_m...@yahoo.com wrote: True, using multiple activities saves hassle on developer side..especially trying to remember where to back up too.. but is there any benefit from not having a pile of activities? If you were doing MVC..and your controller keeps track of the screens..properly sends you back to a previous screen when back is pressed..hassle aside, is there any benefit to using one Activity? This is kind of a philosophical question I realize...probably not demanding as much thought as I am giving it..but I appreciate the input. Thank you, Mike On Mar 10, 12:17 pm, niko20 nikolatesl...@yahoo.com wrote: Using multiple activities is much less hassle on the developer side On Sunday, March 10, 2013 8:45:09 AM UTC-5, bsd_mike wrote: Just wondering what the consensus is doing a UI. Should you kick off a new activity each time you put up a new screen? Or should you do what some call a Frankenstein-Activity which handles lots of screens and the back-button itself. When should you do either? Are there best practice guidelines for this? Thank you, Mike -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Enumerate sd cards
Thank for the info. My question is that there are so many third party file explorer apps, how do they figure out the path of internal and external storages? On Fri, Mar 8, 2013 at 5:24 PM, RichardC richard.crit...@googlemail.com wrote: The problem we have here is that getExternalStorageDirectory does NOT return the location of the sd card. In fact it has nothing to do with sd cards and never has. From the docs: Note: don't be confused by the word external here. This directory can better be thought as media/shared storage. It is a filesystem that can hold a relatively large amount of data and that is shared across all applications (does not enforce permissions). Traditionally this is an SD card, but it may also be implemented as built-in storage in a device that is distinct from the protected internal storage and can be mounted as a filesystem on a computer. http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() It is that part of the file system that is mounted when you attach an external device such as a desktop computer via the USB port. There is NO documented way in Android to enumerate removable storage. On Friday, March 8, 2013 9:21:38 PM UTC, yve...@gmail.com wrote: Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd card path. On Wed, Mar 6, 2013 at 9:05 PM, TreKing treki...@gmail.com wrote: On Wed, Mar 6, 2013 at 10:29 PM, yve...@gmail.com yve...@gmail.com wrote: So, I want to know, first, how to enumerate all storage locations Did you check the documentation? http://developer.android.com/guide/topics/data/data-storage.html , second, monitor sdcard insert/eject events. See the various MEDIA broadcasts. http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_BAD_REMOVAL - 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-d...@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
On Sun, Mar 10, 2013 at 4:12 PM, bsd_mike bsd_m...@yahoo.com wrote: is there any benefit to using one Activity? For games, I believe, it avoids the resource management and dependency issues related with dealing with the lifecycles of multiple Activities. Beyond that, though, I believe shoving all of your functionality into a single Activity is asking for a maintenance headache. - 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Enumerate sd cards
By guesswork, testing and end-user feedback on individual devices. On Sunday, March 10, 2013 11:03:36 PM UTC, yve...@gmail.com wrote: Thank for the info. My question is that there are so many third party file explorer apps, how do they figure out the path of internal and external storages? On Fri, Mar 8, 2013 at 5:24 PM, RichardC richard...@googlemail.comjavascript: wrote: The problem we have here is that getExternalStorageDirectory does NOT return the location of the sd card. In fact it has nothing to do with sd cards and never has. From the docs: Note: don't be confused by the word external here. This directory can better be thought as media/shared storage. It is a filesystem that can hold a relatively large amount of data and that is shared across all applications (does not enforce permissions). Traditionally this is an SD card, but it may also be implemented as built-in storage in a device that is distinct from the protected internal storage and can be mounted as a filesystem on a computer. http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() It is that part of the file system that is mounted when you attach an external device such as a desktop computer via the USB port. There is NO documented way in Android to enumerate removable storage. On Friday, March 8, 2013 9:21:38 PM UTC, yve...@gmail.com wrote: Yes, have read the documentation. But that is not what I am looking for. The getExternalStorage() returns internal sd card (if there are both internal sd card and external sd card). I want to know how to find the external sd card path. On Wed, Mar 6, 2013 at 9:05 PM, TreKing treki...@gmail.com wrote: On Wed, Mar 6, 2013 at 10:29 PM, yve...@gmail.com yve...@gmail.com wrote: So, I want to know, first, how to enumerate all storage locations Did you check the documentation? http://developer.android.com/guide/topics/data/data-storage.html , second, monitor sdcard insert/eject events. See the various MEDIA broadcasts. http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_BAD_REMOVAL - 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-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Best practice? New Activity for UI screens or change layouts and capture back button?
TreKing wrote: bsd_mike wrote: is there any benefit to using one Activity? For games, I believe, it avoids the resource management and dependency issues related with dealing with the lifecycles of multiple Activities. Beyond that, though, I believe shoving all of your functionality into a single Activity is asking for a maintenance headache. I don't know if this addresses the OP's concern, but fragments put you somewhere between those two extremes. The usual model in Android programs is one Activity per screen, with fragments as a way to manage frames within the screen. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error
SharedPreferences myPrefs = youractivityname.this.getSharedPreferences(myPrefs, MODE_WORLD_READABLE); SharedPreferences.Editor prefsEditor = myPrefs.edit(); On Sun, Mar 10, 2013 at 12:15 AM, Jonathan S xfsuno...@gmail.com wrote: in Shared1, Context.MODE_PRIVATE in Shared2, getContext().getSharedPreferenceshttp://developer.android.com/reference/android/content/Context.html#getSharedPreferences%28java.lang.String,%20int%29(top5, Context.MODE_PRIVATE) On Saturday, March 9, 2013 4:43:08 AM UTC-5, lselwd wrote: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error see attachments, well? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Thanks Regards Deepa M -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Android In App Billing version 3. Querying for Purchased Items returned null information
HI, Thanks for your reply. BILLING_RESPONSE_RESULT_OK is zero here and also return all Response Code but all do not return value in this response code. Thanks. Abdul Gafur Android Developer. On Mon, Mar 11, 2013 at 2:21 AM, Jonathan S xfsuno...@gmail.com wrote: Did you look into http://developer.android.com/google/play/billing/billing_reference.html On Sunday, March 10, 2013 7:20:53 AM UTC-4, md abdul gafur (Bangladesh) wrote: After purchased product , i am try to get Purchased Items information but return null value. The app are publish in goole play. The are not in goole play draft. Bundle ownedItems = mService.getPurchases(3, getPackageName(), inapp, null); int response = ownedItems.getInt(RESPONSE_**CODE); is return 0 but all other information are return null. I same user account that are use to buy product and currently logged in to the device. I am do not found this information. INAPP_PURCHASE_ITEM_LIST , INAPP_PURCHASE_DATA_LIST Via same application , when i try to get SkuDetails. It return all information. Bundle skuDetails = mService.getSkuDetails(3, getPackageName(), inapp, querySkus); Why goole do not return information?. Google service are off this time or any other reason. If any one face same problem then please share with me. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/BELbqOZHQMA/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error
Hi, If u r creating sharedpreferences in our activity class means then it wont show any error other wise if u r creating shared preferences in other java class then it ll shows errors. in that case u need to pass the context or activity object. this is the sample code public class SharedPrefEx { public void saveData(Context context, String value) { SharedPreferences prefs = context.getSharedPreferences(MyPrefs, Context.MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putString(One, value); editor.commit(); } } u can call this method by creating object in our activity class i.e. SharedPrefEx sharedPrefs = new SharedPrefs(); sharedPrefs.saveData(Seshu); On Mar 11, 9:03 am, Deepa M deepam8...@gmail.com wrote: SharedPreferences myPrefs = youractivityname.this.getSharedPreferences(myPrefs, MODE_WORLD_READABLE); SharedPreferences.Editor prefsEditor = myPrefs.edit(); On Sun, Mar 10, 2013 at 12:15 AM, Jonathan S xfsuno...@gmail.com wrote: in Shared1, Context.MODE_PRIVATE in Shared2, getContext().getSharedPreferenceshttp://developer.android.com/reference/android/content/Context.html#g...(top5, Context.MODE_PRIVATE) On Saturday, March 9, 2013 4:43:08 AM UTC-5, lselwd wrote: I have problem working with SHARED PREFERENCES, I think is project specific... i used the same before without errors but now get error see attachments, well? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visithttps://groups.google.com/groups/opt_out. -- Thanks Regards Deepa M -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.