2 Mar 2013 4:12 AM #81
hi again Brice , i have question (i'm sorry if its wrong question), how i an add plugins to build , for example i want to use push notification message for android application , and confuse how to use it
3 Mar 2013 4:45 AM #82
D:\sencha\hello>sencha app build native
Sencha Cmd v220.127.116.11
[INF] [shellscript] D:\sencha\hello\resources\sass>compass compile --boring --force
[INF] [shellscript] identical ../css/app.css
[INF] building application
[INF] Deploying your application to D:\sencha\hello\build\hello\package
[INF] Copied cordova-android.js
[INF] Copied app.js
[INF] Copied resources/css/app.css
[INF] Copied D:\sencha\hello\resources\icons
[INF] Copied D:\sencha\hello\resources\startup
[INF] Copied D:\sencha\hello\childbrowser
[INF] Resolving your application dependencies (file:///D:/sencha/hello/index.html)
[INF] Compiling app.js and dependencies
[INF] Processing classPath entry : D:\sencha\hello\sencha-compile-temp-dir
[INF] Processing classPath entry : D:\sencha\hello\touch\src
[INF] Processing classPath entry : D:\sencha\hello\app.js
[INF] Processing classPath entry : D:\sencha\hello\app
[INF] Processing class inheritance graph
[INF] Processing instantiation refereces to classes and aliases
[INF] Processing source dependencies
[INF] Concatenating output to file D:\sencha\hello\build\hello\package\app.js
[INF] Completed compilation.
[INF] Processed local file cordova-android.js
[INF] Minified cordova-android.js
[INF] Processed remote file touch/sencha-touch.js
[INF] Processed local file app.js
[INF] Minified app.js
[INF] Minified resources/css/app.css
[INF] Generated app.json
[INF] Embedded microloader into index.html
[INF] Packaging your application as a native app to D:\sencha\hello\build\native ...
[INF] Successfully packaged native application
[INF] Package may be run with 'sencha package run -p D:\sencha\hello\.\packager.temp.json
[INF] Successfully deployed your application to D:\sencha\hello\build\hello\package
My build is success.. it works fine in chrome browser too.
But when I install .apk file to my andriod device then it just blinks 3 dot screen.
This happen when I include cordava.js file.
3 Mar 2013 4:47 AM #83
Can you send me you sample app developed integrating PhoneGap. Let me test it in my box.
3 Mar 2013 7:28 AM #84
3 Mar 2013 8:14 AM #85
I hope you don't mind me imposing on you, but I've spent the last few decades googling and searching Sencha forums and ploughing through the alleged documentation to no avail and so now turn to you as one who knows his Sencha Touch stuff, unlike so many of us flailing around in these forums.
Here's the problem:
My app works fine in Chrome in development, testing and production versions. If I run your sencha-cordova builder, I can run the app with no problem in Chrome from the generated assets/www directory.
Unfortunately, whether I use the apk generated by your builder, that generated by Sencha Cmd's native builder or debug from eclipse, whether to a hardware device or an emulator, I can't get past the app's loading screen in Android 4.x. I can on my phone using 2.3.5 (where the app doesn't run as it should, but getting past the loading screen is progress).
This is a problem raised over and over on the forum and there's even a youTube video demonstrating it. According to this thread : http://www.sencha.com/forum/showthre...g-on-Android-4 it's fixed. Not for me.
I started learning ST in order to avoid having to learn Objective C, but I think that by now I could have written it in Java and learnt Objective C as well. I should be receiving a secondhand Mac tomorrow and will see how I get on with that. If ST runs OK on the Mac, then, unless you know of a solution, I guess I'll just write the Android version in native code. If it doesn't run on the Mac, maybe I'll just drop ST and try Titanium.
I've just noticed that I'm raising the same issue as kramprahu above. So it's obviously not fixed for him either.
Last edited by munder; 3 Mar 2013 at 8:17 AM. Reason: forgot a bit
3 Mar 2013 8:30 AM #86
I missed following line in build.xml
"<target name="-after-build" depends="-build-android" />"
After that.. I get following error...
[INF] [echo] checking android initialization using the followingresources:
[INF] [echo] cordova library D:phonegap-2.4.0
[INF] [echo] android tools D:phonegap-2.4.0\lib\android\bin
[INF] [echo] android create script D:phonegap-2.4.0\lib\android\in\\create.bat
[INF] [echo] android project D:\sencha\hello\build\hello\android
[INF] [echo] android project built state...false
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: one or more of the resoures required to initialize the android project cannot be resolved
[ERR] at com.sencha.exceptions.BasicException.wrap(BasicExcepion.java:43)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:104)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
I have ant, java and android sdk installed and with path specified.
3 Mar 2013 9:24 AM #87
i just installed the test app on my android mobile , and its working fine , please find the apk file here http://leads-map.com/test3-debug.zip
i hope i can help you more , but im sure Brice willing to help you all cuz he helped me a lot
3 Mar 2013 8:11 PM #88
I am still getting the build error. (pasted the error in previous post). I followed all the steps mentioned.. but still getting the error. I am developing in windows machine.
Help me .. if you find any thing in my error message.
3 Mar 2013 8:48 PM #89
When I am following another tuturioal of yours to integerage PhoneGap .. I get following error
D:\sencha\hello\build\hello\android>ant debug && adb install -r ./bin/test-debug.apk
[checkenv] Android SDK Tools Revision 20.0.3
[checkenv] Installed at C:\Program Files\Android\android-sdk
[echo] Project Name: hello
[gettype] Project Type: Application
[echo] Resolving Build Target for hello...
[gettarget] Project Target: GALAXY Tab Addon
[gettarget] Vendor: Samsung Electronics Co., Ltd.
[gettarget] Platform Version: 2.2
[gettarget] API level: 8
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\sencha\hello\build\hello\android\bin\res
[mkdir] Created dir: D:\sencha\hello\build\hello\android\gen
[mkdir] Created dir: D:\sencha\hello\build\hello\android\bin\classes
[echo] Resolving Dependencies for hello...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:20: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:22: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:49: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:52: error: Error: String types not allowed (at 'configChanges' with value 'orientation|keyboardHidden|keyboard|screenSize|locale').
C:\Program Files\Android\android-sdk\tools\ant\build.xml:621: The following erro
r occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:657: null returned: 1
Total time: 1 second
'adb' is not recognized as an internal or external command,
operable program or batch file.
3 Mar 2013 9:39 PM #90
make sure u add like the following to ur path
C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files\Java\jdk1.7.0_15\bin
Thread Participants: 32
- rsatyan (2 Posts)
- mitchellsimoens (1 Post)
- Scorpie (1 Post)
- pcr (5 Posts)
- harleyflh75 (1 Post)
- trinitrotoluen (1 Post)
- JRS (4 Posts)
- rob.n (3 Posts)
- azche (1 Post)
- bcichowlas (3 Posts)
- kodak (1 Post)
- snam (1 Post)
- Rexroth4Sencha (1 Post)
- munder (4 Posts)
- kramprabhu (9 Posts)
- Tioecomp (3 Posts)
- erbud (1 Post)
- quadzilla (1 Post)
- shaileshelan (1 Post)
- webdev13 (17 Posts)
- airaid (4 Posts)
- karensilkwood (3 Posts)
- slick84 (2 Posts)
- ashishpok (5 Posts)
- shanghailoz (1 Post)
- giorgino (1 Post)
- invincible007 (1 Post)
- kkarnayil (1 Post)
- samuel5_89 (3 Posts)
- good_c_ryan_19 (1 Post)
- LucasRochaBR (1 Post)
- anxin (1 Post)