[jira] [Updated] (CB-5920) android:installLocation="preferExternal"

2014-11-20 Thread cesine (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

cesine updated CB-5920:
---
Environment: Apps larger than 10mb  (was: Phones with 512 Ram)

> android:installLocation="preferExternal"
> 
>
> Key: CB-5920
> URL: https://issues.apache.org/jira/browse/CB-5920
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android, CLI
> Environment: Apps larger than 10mb
>Reporter: cesine
>  Labels: patch
>
> I created a PR on github suggesting to add preferExternal
> https://github.com/apache/cordova-android/pull/91#issuecomment-33513325
> for phones with small amounts of internal storage (512MB and even 1GB, 
> android 2.2 and 2.3 and even some 4.0) the user wont be able to install the 
> app (or keep it) unless you let them put it on the sdcard instead of the 
> internal phone storage. Very few cordova apps are the kind of app which 
> shouldn't be on external storage.
> more details:
> http://developer.android.com/guide/topics/data/install-location.html#Should



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-6003) Cant play files from the assets folder Android

2014-02-12 Thread cesine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13899733#comment-13899733
 ] 

cesine commented on CB-6003:


Here is my workaround, until I have time to figure out what might have been 
responsible for adding "android_asset/www" to the files in the first place, and 
what might be stripping it. 

https://github.com/cesine/montage-chrome-app/commit/dcc71c83a3523d1dc33d297240d5c75fc80f2d2d

org/apache/cordova/media/AudioPlayer.java 
{code}
private void loadAudioFile(String file)
...
try {
this.player.prepare();
} catch (Exception e) {
Log.v("DebuggingAudio",
"Exception while preparing the audio file " + file);
e.printStackTrace();

/* try it in the assets folder */
file = "www/" + file;
try {
android.content.res.AssetFileDescriptor fd = 
this.handler.cordova
.getActivity().getAssets().openFd(file);
this.player.setDataSource(fd.getFileDescriptor(),
fd.getStartOffset(), fd.getLength());
this.setState(STATE.MEDIA_STARTING);
this.player.setOnPreparedListener(this);
this.player.prepare();
} catch (Exception ex) {
Log.v("DebuggingAudio",
"Exception while preparing the audio file and assuming 
its in the assets folder "
+ file);
ex.printStackTrace();
}
}
{code}

> Cant play files from the assets folder Android
> --
>
> Key: CB-6003
> URL: https://issues.apache.org/jira/browse/CB-6003
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
> Environment: Android
>Reporter: cesine
>  Labels: audio
>
> I've been trying to pin this down. 
> I think this commit brings me to conclude something is odd with playing audio 
> from assets on android. 
> https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33
>  The same audio file plays fine
> * if its played from a http:// url
> * if its played in Native Android
> Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
> dont have any others to test with right now... 
> {code}
> $ cordova --version
> 3.3.1-0.1.2
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6003) Cant play files from the assets folder Android

2014-02-10 Thread cesine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897516#comment-13897516
 ] 

cesine commented on CB-6003:


Here is the log cat
{code}
02-10 23:09:57.671: I/CordovaLog(29998): Changing log level to DEBUG(3)
02-10 23:09:57.691: I/CordovaLog(29998): Found start page location: index.html
02-10 23:09:57.691: D/Whitelist(29998): Unlimited access to network resources
02-10 23:09:57.691: D/CordovaActivity(29998): CordovaActivity.onCreate()
02-10 23:09:57.701: I/dalvikvm(29998): Could not find method 
org.apache.cordova.CordovaWebView.setWebContentsDebuggingEnabled, referenced 
from method org.apache.cordova.CordovaWebView.setup
02-10 23:09:57.701: W/dalvikvm(29998): VFY: unable to resolve static method 
2056: Lorg/apache/cordova/CordovaWebView;.setWebContentsDebuggingEnabled (Z)V
02-10 23:09:57.701: D/dalvikvm(29998): VFY: replacing opcode 0x71 at 0x00be
02-10 23:09:57.751: D/CordovaWebView(29998): CordovaWebView is running on 
device made by: asus
02-10 23:09:57.751: D/JsMessageQueue(29998): Set native->JS mode to 2
02-10 23:09:57.751: D/CordovaActivity(29998): CordovaActivity.init()
02-10 23:09:57.761: D/CordovaWebView(29998): >>> 
loadUrl(file:///android_asset/www/index.html)
02-10 23:09:57.761: D/PluginManager(29998): init()
02-10 23:09:57.761: D/CordovaWebView(29998): >>> loadUrlNow()
02-10 23:09:57.771: I/CordovaLog(29998): Changing log level to DEBUG(3)
02-10 23:09:57.771: I/CordovaLog(29998): Found start page location: index.html
02-10 23:09:57.771: D/Whitelist(29998): Unlimited access to network resources
02-10 23:09:57.771: D/CordovaActivity(29998): Resuming the App
02-10 23:09:57.771: D/CordovaActivity(29998): CB-3064: The errorUrl is null
02-10 23:09:57.801: D/SoftKeyboardDetect(29998): Ignore this event
02-10 23:09:57.841: D/libEGL(29998): loaded 
/vendor/lib/egl/libEGL_POWERVR_SGX544_115.so
02-10 23:09:57.881: D/libEGL(29998): loaded 
/vendor/lib/egl/libGLESv1_CM_POWERVR_SGX544_115.so
02-10 23:09:57.881: D/libEGL(29998): loaded 
/vendor/lib/egl/libGLESv2_POWERVR_SGX544_115.so
02-10 23:09:57.891: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 64
02-10 23:09:57.891: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 65
02-10 23:09:57.891: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 66
02-10 23:09:57.891: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 66
02-10 23:09:57.891: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 66
02-10 23:09:57.911: E/IMGSRV(29998): :0: PVRDRMOpen: TP3, ret = 68
02-10 23:09:57.941: D/OpenGLRenderer(29998): Enabling debug mode 0
02-10 23:09:57.981: D/CordovaActivity(29998): 
onMessage(onPageStarted,file:///android_asset/www/index.html)
02-10 23:09:57.991: D/CordovaWebViewClient(29998): 
onPageFinished(file:///android_asset/www/index.html)
02-10 23:09:57.991: D/CordovaActivity(29998): 
onMessage(onPageFinished,file:///android_asset/www/index.html)
02-10 23:09:58.001: D/SoftKeyboardDetect(29998): Ignore this event
02-10 23:09:58.021: D/CordovaActivity(29998): onMessage(spinner,stop)
02-10 23:09:58.031: D/SoftKeyboardDetect(29998): Ignore this event
02-10 23:09:58.041: E/MediaPlayer(29998): error (1, -2147483648)

{code}

> Cant play files from the assets folder Android
> --
>
> Key: CB-6003
> URL: https://issues.apache.org/jira/browse/CB-6003
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
> Environment: Android
>Reporter: cesine
>  Labels: audio
>
> I've been trying to pin this down. 
> I think this commit brings me to conclude something is odd with playing audio 
> from assets on android. 
> https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33
>  The same audio file plays fine
> * if its played from a http:// url
> * if its played in Native Android
> Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
> dont have any others to test with right now... 
> {code}
> $ cordova --version
> 3.3.1-0.1.2
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CB-6003) Cant play files from the assets folder Android

2014-02-10 Thread cesine (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

cesine updated CB-6003:
---

Description: 
I've been trying to pin this down. 

I think this commit brings me to conclude something is odd with playing audio 
from assets on android. 

https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33

 The same audio file plays fine
* if its played from a http:// url
* if its played in Native Android

Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
dont have any others to test with right now... 

{{{code}}}
$ cordova --version
3.3.1-0.1.2
{{{code}}}

  was:
I've been trying to pin this down. 

I think this commit brings me to conclude something is odd with playing audio 
from assets on android. 

https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33

 The audio file plays fine
* if its played from a http:// url
* if its played in Native Android

Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
dont have any others to test with right now... 

{{{
$ cordova --version
3.3.1-0.1.2
}}}


> Cant play files from the assets folder Android
> --
>
> Key: CB-6003
> URL: https://issues.apache.org/jira/browse/CB-6003
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
> Environment: Android
>Reporter: cesine
>  Labels: audio
>
> I've been trying to pin this down. 
> I think this commit brings me to conclude something is odd with playing audio 
> from assets on android. 
> https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33
>  The same audio file plays fine
> * if its played from a http:// url
> * if its played in Native Android
> Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
> dont have any others to test with right now... 
> {{{code}}}
> $ cordova --version
> 3.3.1-0.1.2
> {{{code}}}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CB-6003) Cant play files from the assets folder Android

2014-02-10 Thread cesine (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

cesine updated CB-6003:
---

Description: 
I've been trying to pin this down. 

I think this commit brings me to conclude something is odd with playing audio 
from assets on android. 

https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33

 The same audio file plays fine
* if its played from a http:// url
* if its played in Native Android

Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
dont have any others to test with right now... 

{code}
$ cordova --version
3.3.1-0.1.2
{code}

  was:
I've been trying to pin this down. 

I think this commit brings me to conclude something is odd with playing audio 
from assets on android. 

https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33

 The same audio file plays fine
* if its played from a http:// url
* if its played in Native Android

Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
dont have any others to test with right now... 

{{{code}}}
$ cordova --version
3.3.1-0.1.2
{{{code}}}


> Cant play files from the assets folder Android
> --
>
> Key: CB-6003
> URL: https://issues.apache.org/jira/browse/CB-6003
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
> Environment: Android
>Reporter: cesine
>  Labels: audio
>
> I've been trying to pin this down. 
> I think this commit brings me to conclude something is odd with playing audio 
> from assets on android. 
> https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33
>  The same audio file plays fine
> * if its played from a http:// url
> * if its played in Native Android
> Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
> dont have any others to test with right now... 
> {code}
> $ cordova --version
> 3.3.1-0.1.2
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CB-6003) Cant play files from the assets folder Android

2014-02-10 Thread cesine (JIRA)
cesine created CB-6003:
--

 Summary: Cant play files from the assets folder Android
 Key: CB-6003
 URL: https://issues.apache.org/jira/browse/CB-6003
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Media
 Environment: Android
Reporter: cesine


I've been trying to pin this down. 

I think this commit brings me to conclude something is odd with playing audio 
from assets on android. 

https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33

 The audio file plays fine
* if its played from a http:// url
* if its played in Native Android

Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
dont have any others to test with right now... 

{{{
$ cordova --version
3.3.1-0.1.2
}}}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5920) android:installLocation="preferExternal"

2014-01-28 Thread cesine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884509#comment-13884509
 ] 

cesine commented on CB-5920:


I don't mind adding it to my own apps, but the real concern here is for Cordova 
users who actually don't know much Android. They will have lots of 
deactivations, and loose users, and not know why... In Montreal, many of the 
apps for events and festivals use Cordova, these apps are huge with lots of 
image and video assets, they should be on the sdcard but the developers who 
make them only know iOS, and wouldnt think there was an option they could 
choose that would reduce the space the app consumed. 

> android:installLocation="preferExternal"
> 
>
> Key: CB-5920
> URL: https://issues.apache.org/jira/browse/CB-5920
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
> Environment: Phones with 512 Ram
>Reporter: cesine
>  Labels: patch
>
> I created a PR on github suggesting to add preferExternal
> https://github.com/apache/cordova-android/pull/91#issuecomment-33513325
> for phones with small amounts of internal storage (512MB and even 1GB, 
> android 2.2 and 2.3 and even some 4.0) the user wont be able to install the 
> app (or keep it) unless you let them put it on the sdcard instead of the 
> internal phone storage. Very few cordova apps are the kind of app which 
> shouldn't be on external storage.
> more details:
> http://developer.android.com/guide/topics/data/install-location.html#Should



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5920) android:installLocation="preferExternal"

2014-01-28 Thread cesine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884504#comment-13884504
 ] 

cesine commented on CB-5920:


Hi @infil00p the ramifications of preferExternal are discussed in the link 
above. 

Having read the ramifications you still think that we should not use 
preferExternal, or should turn it into a config option? 

"provide additional services when inactive"  cordova uses services yes, but not 
when the app is in active?
"requires several megabytes" - this is true of every cordova app ive built

> android:installLocation="preferExternal"
> 
>
> Key: CB-5920
> URL: https://issues.apache.org/jira/browse/CB-5920
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
> Environment: Phones with 512 Ram
>Reporter: cesine
>  Labels: patch
>
> I created a PR on github suggesting to add preferExternal
> https://github.com/apache/cordova-android/pull/91#issuecomment-33513325
> for phones with small amounts of internal storage (512MB and even 1GB, 
> android 2.2 and 2.3 and even some 4.0) the user wont be able to install the 
> app (or keep it) unless you let them put it on the sdcard instead of the 
> internal phone storage. Very few cordova apps are the kind of app which 
> shouldn't be on external storage.
> more details:
> http://developer.android.com/guide/topics/data/install-location.html#Should



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-5920) android:installLocation="preferExternal"

2014-01-28 Thread cesine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884496#comment-13884496
 ] 

cesine commented on CB-5920:


Can you create a JIRA issue? I'm pretty sure we'll need more than just an 
AndroidManifest change to add this feature!


> android:installLocation="preferExternal"
> 
>
> Key: CB-5920
> URL: https://issues.apache.org/jira/browse/CB-5920
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
> Environment: Phones with 512 Ram
>Reporter: cesine
>  Labels: patch
>
> I created a PR on github suggesting to add preferExternal
> https://github.com/apache/cordova-android/pull/91#issuecomment-33513325
> for phones with small amounts of internal storage (512MB and even 1GB, 
> android 2.2 and 2.3 and even some 4.0) the user wont be able to install the 
> app (or keep it) unless you let them put it on the sdcard instead of the 
> internal phone storage. Very few cordova apps are the kind of app which 
> shouldn't be on external storage.
> more details:
> http://developer.android.com/guide/topics/data/install-location.html#Should



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CB-5920) android:installLocation="preferExternal"

2014-01-28 Thread cesine (JIRA)
cesine created CB-5920:
--

 Summary: android:installLocation="preferExternal"
 Key: CB-5920
 URL: https://issues.apache.org/jira/browse/CB-5920
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
 Environment: Phones with 512 Ram
Reporter: cesine


I created a PR on github suggesting to add preferExternal
https://github.com/apache/cordova-android/pull/91#issuecomment-33513325

for phones with small amounts of internal storage (512MB and even 1GB, android 
2.2 and 2.3 and even some 4.0) the user wont be able to install the app (or 
keep it) unless you let them put it on the sdcard instead of the internal phone 
storage. Very few cordova apps are the kind of app which shouldn't be on 
external storage.

more details:
http://developer.android.com/guide/topics/data/install-location.html#Should



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)