[android-developers] Re: Android download library does not find the remote expansion/.obb file if it's large

2014-11-02 Thread Mathias Lin
I tried another large upload today, and the remote file was found. So the 
issue is resolved for some reason. No changes to the code, just uploaded 
another version of apk and obb (without other changes).


On Sunday, 2 November 2014 00:51:21 UTC+1, Mathias Lin wrote:

 I am implementing an app with an expansion file, and as recommended in the 
 Android Developer docs, I am also doing a manual check when the app starts, 
 whether the expansion file exists, and if not, download it manually via the 
 Download Library, that comes with the Android SDK samples.

 https://developer.android.com/google/play/expansion-files.html#Preparing

 I have it running and it's working with my app and a relatively small 
 expansion file (1.4 MB).
 When I upload my app to the Google Play store (Alpha test mode), the app 
 is available after 2-3 hours, as usual. And at the same time, the download 
 library is also able to find and download the expansion file in my app, if 
 it's not there. 
 (For testing purposes, I delete the expansion file manually on my sdcard, 
 in order to test that the download check works correctly).

 *But when I use a much larger expansion file of around 340 MB size, the 
 manual download from within my app does not find that file, even though the 
 app is available in the Play store.*
 When I download the app from Google Play, it downloads the app including 
 the large expansion file just fine. But when I then, for testing purposes, 
 delete the expansion file from my sdcard, and restart my app, the app 
 should check if the expansion file exists (it doesn't) and should download 
 it.
 But this time, it cannot find the resource.

 Download failed because the resource could not be found. is the message 
 I am getting when I run the (modified) sample app that comes with the 
 Android SDK. (According to that message, the DownloadClient state seems to 
 be in this: static final int STATE_FAILED_FETCHING_URL = 16;)

 I'm on Android 4.4.4 with a Nexus 4.

 Has anyone experienced this problem with large expansion files and those 
 not being available via manual download (through the Android download 
 library)?

 I checked the log, no errors, and no other changes in the app. Or is there 
 a longer waiting time until a large expansion file gets available, beyond 
 those regular 2-3 hours until an app update is available in Google Play?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/d/optout.


[android-developers] GCM pernision how impact our application.

2014-11-02 Thread 12169
Hi,

i read about GCM client side implementation. and in the manifest i declare 
a permission and then i use the same permission in the manifest (to insure 
application messages deliver  to only application), but i do not how it 
works.

permission
android:name=com.xxx.android.permission.C2D_MESSAGE
android:protectionLevel=signature /

uses-permission android:name=com.xxx.android.permission.C2D_MESSAGE 
/ 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/d/optout.


Re: [android-developers] Re: How to develop openvpn.

2014-11-02 Thread sree android
I tried it.But it is giving force close.

On Sun, Nov 2, 2014 at 5:03 AM, Sheharyar Naseer sheharyar.nas...@gmail.com
 wrote:

 Hey @sree,
 Have you tried taking a look at ICS-OpenVPN
 https://code.google.com/p/ics-openvpn/? Maybe that's what you're
 looking for.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/d/optout.


[android-developers] MediaPlayer getCurrentPosition accuracy

2014-11-02 Thread Stefan Alder
I need to synchronize events to an mp4/aac file.  I'm using MediaPlayer for
playback and checking elapsed time from start in order to determine when it
is time for successive events.  I also periodically synchronize the elapsed
time with MediaPlayer getCurrentPosition.

From what I'm seeing, accuracy of getCurrentPosition can vary significantly
- i.e. I'm finding a case now (Xperia M2 on 4.4.2) where what I actually
hear is about 800 ms delayed from what is reported by getCurrentPosition,
but on a different device and OS version (Nexus 7 on 4.2) it's right on.

What could be causing the inaccuracy?  Is there anyway to calibrate to
eliminate it? If not, is there a better way to synchronize events to
mp4/aac files?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/d/optout.


Re: [android-developers] GCM pernision how impact our application.

2014-11-02 Thread Mukesh Srivastav
What do you mean by how it works ?

here are the steps on this.

1. create a GCM server componenent which push the message to the APK(your
application)

https://developer.android.com/google/gcm/server.html

the GCM server uses REGISTRATIONID (Which apk gets it when register it to
the server) in order to push the message to the correct device.







On Sun, Nov 2, 2014 at 4:14 PM, 12169 ashish.a...@gmail.com wrote:

 Hi,

 i read about GCM client side implementation. and in the manifest i declare
 a permission and then i use the same permission in the manifest (to insure
 application messages deliver  to only application), but i do not how it
 works.

 permission
 android:name=com.xxx.android.permission.C2D_MESSAGE
 android:protectionLevel=signature /

 uses-permission android:name=com.xxx.android.permission.C2D_MESSAGE
 /

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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/d/optout.




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/d/optout.