Can't run android project for cordova 3.x version using eclipse - Web App Development

Hello everyone,
I am new to phonegap. I am trying to run android hello world app using cordova 3.4.x. but when I try to run app It's give an error (com.ert.ertt) Unexpectedly stop working. I am using eclipse. I have follow many tutorial but problem still remain. Please help me regarding this.
Thank you in advance.

Setting up the ADT can be tricky. Make sure you have that all installed correctly and if you're running Windows, add Java and ADT to your system path. Are you running Cordova build from the command line then building/running in Eclipse?
Sent from my XT1060 using Tapatalk

reply @mau006
First of all Thank you for your reply
Yes I have build android project using command line.and then in eclipse I have create project using existing souce and added that source generated by command line tool. I have configured all thing for android including setting path.but still I can't run app.

It most likely is a setup issue if all you've done is create the bare-bones application and then try to run it. Are you running it in an emulator, or on your phone/tablet?
If you can zip up the project and attach it here I'll happily try and build it, just to rule out any code issues.

@Archer
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.

vsvankhede said:
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.
Click to expand...
Click to collapse
Thanks. I'll have a look and get back to you.

vsvankhede said:
Thank you archer for your reply.I have tried to run on both emulator and phone.I have attached zip for the project.
Click to expand...
Click to collapse
Could you zip it up from the project root folder - the one with config.xml in it?

@Archer
Archer said:
Could you zip it up from the project root folder - the one with config.xml in it?
Click to expand...
Click to collapse
Hi archer sorry for late reply.config.xml file is in src/xml folder. Have you found any solution?

vsvankhede said:
Hi archer sorry for late reply.config.xml file is in src/xml folder. Have you found any solution?
Click to expand...
Click to collapse
You need to go up to the root folder of the project, where you'll find the file config.xml, and zip from there or I can't tell what's wrong with the project. The zip file you supplied does not have all the folders required, and there is no config.xml in it anywhere.

Zip file of root folder
Archer said:
You need to go up to the root folder of the project, where you'll find the file config.xml, and zip from there or I can't tell what's wrong with the project. The zip file you supplied does not have all the folders required, and there is no config.xml in it anywhere.
Click to expand...
Click to collapse
Hi archer as you said I have attached new zip file from root folder.

vsvankhede said:
Hi archer as you said I have attached new zip file from root folder.
Click to expand...
Click to collapse
I'm afraid I can't help. If all you've done is create a new Android project with Cordova and then modify index.html then it should work, but it falls over very heavily for me, and I don't know why. There are plenty of warnings and errors available in the logcat, so I'd recommend starting at the top and simply Googling for them one-by-one and trying to get rid of them that way.
Good luck - it should certainly be a good learning process for you
Let us know how you get on.

You have to make all changes in command line, if change config or manifest manually that it can have problems occured.

Related

[Q] editing/modifying .apk file

anyone who know how to edit or modifying the framework-res.apk, twframework-res.apk?? please....... give me an idea what should i do & i nid?? i want to modify a rom on to fit my brother style..
download sdk manager and then apk tool from google webiste... after this use ADB to get those framework files on ur computer then simply go in apk tool and decompile them... after that you can make any changes u want in it... after fiddling wid it recompile it usin any tool u r comfortable wid n den push it in ur cell
A lot easier will be to use apk manager.
Visit here http://apkmultitool.com/
Go to download section and download apk manager
Don't download apk multi tool as I think it has some bugs.
Extract... there will be folders describing what they are for.
put you apk in (put_apk_for_modding) folder
*some what like that I don't remember the exact folder name
Run script.bat you will see a cmd window having options to compile decompile...
1st select project using 22 option
Then decompile with option 9
Go to project folder find your project do necessary modification and then compile using option 11
Remember The option numbers may differ so check.
*Before that you must have java jdk 1.6 installed
Nice.... Sharing.... Bro
Sent from my GT-S6102 using xda premium
Millan.SIS said:
A lot easier will be to use apk manager.
Visit here http://apkmultitool.com/
Go to download section and download apk manager
Don't download apk multi tool as I think it has some bugs.
Extract... there will be folders describing what they are for.
put you apk in (put_apk_for_modding) folder
*some what like that I don't remember the exact folder name
Run script.bat you will see a cmd window having options to compile decompile...
1st select project using 22 option
Then decompile with option 9
Go to project folder find your project do necessary modification and then compile using option 11
Remember The option numbers may differ so check.
*Before that you must have java jdk 1.6 installed
Click to expand...
Click to collapse
Whenever I try decompiling stock apps like mms.apk I get a buttload of errors. I've read around and it seems it has something to do with tw apps? Idk lol. What else do I need to setup?
Tapatalked.
Post the errors...
Ah well, thought it was a general thing. I'll try again tomorrow and post the errors.
Tapatalked.

[Tool][MOD] Add any battery image to any TW ROM for all S3 models

Ok I am going to keep this simple. These tool will allow you to add any battery image to any TW ROM. First unzip the tools. Then all you need to do is grap the framework-res.apk, twframework-res.apk, and SystemUI.apk from which ever ROM you are using and/or want to change the battery images for. Now grab the 204 PNG's for your new battery. Place these in the folders that are named as such. I have included a zip with a bunch of battery PNG's for you to use. Even the ones from my ROMs. Some are complete and some are not though. You HAVE to have 204 images or the tool will not start. Enjoy!
Side note, need a tester for the Windows tool as I tweaked it but have not tested. Thanks!
How to:
Code:
For Linux (Tested on Ubuntu12.04 64-bit)
Before anything:
add the required apks (framework-re.apk, twframework-res.apk and SystemUI.apk) to the folder "Input_APKs."
then you will need to add all 204 battery PNG'd to "Input_Images"
now you will:
1) Make sure these packages are installed.
sudo apt-get install openjdk-6-jre openjdk-6-jdk (step 4)
****** Do not just click on the Mod_Battery.sh file. Open a terminal
and run it! *************************
2) Open terminal in the Battery_Mod_Tool_v1.2/Working_Dir folder and run:
./Mod_Battery.sh
3) If you are having problems then make sure the following files are executable.
./Working_Dir/Mod_Battery.sh
./Working_Dir/7za
./Working_Dir/aapt
4) You may notice some java errors whilst running the Mod_Battery.sh script.
If so you need to install java. The instructions for Linux are below...
5) As of now for Infamous 4.4 the Framework-res.apk, twframework-rek.apk, and SystemUI.apk are included. 4.5+ you will need to add the apks yourself.
[/B]
Code:
[B]For Windows:
Before anything:
add the required apks (framework-re.apk, twframework-res.apk and SystemUI.apk) to the folder "Input_APKs."
then you will need to add all 204 battery PNG'd to "Input_Images"
now you will:
- Double-click "Mod_my_battery!.bat" and sit back and wait
NOTE:
If you modify ANY files within the "Working_Dir" folder, the process will not work. Do not rename, remove or add any files to this directory
URL for Java Development Kit:
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
to download JDK, Simply;
1) Select "Accept License Agreement".
2) Select "jdk-7xx-windows-xxx.exe" for your version of Windows. (Windows x86 = 32-bit, Windows x64 = 64-bit)
3) Run installer with default settings should be fine.[/B]
Link(s):
Linux tool download link
Windows tool download link
Battery PNG's #Infamous as of Feb 22, 2013
Install Java for Linux
Big thanks to shayne77 for making this. I only modified it to work for our phones and Jelly Bean.
saved just in cause
and one more for whatever
Re: [Tool][MOD] Add any battery image to any TW ROM
Nice work but it seems faster to pull the apks open them, paste your images and zip and flash, just saying.
Sent from my wicked fast SGS3!
This is very true. This tool is for every user even the less experienced.
Re: [Tool][MOD] Add any battery image to any TW ROM
Jamison904 said:
This is very true. This tool is for every user even the less experienced.
Click to expand...
Click to collapse
Yeah, I see how it could benefit the less experienced. Either way, nice tool.
Sent from my wicked fast SGS3!
Thanks buddy. Didn't make it just tweaked it to work for the S3. All the credit goes to shayne77.
Battery PNG's #Infamous as of Feb 13, 2013
Says url not found might me my firewall but could you please check it.
Thanks
weird... here you go
http://goo.im/devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
Sent from my dark hole called an office.
Jamison904 said:
weird... here you go
http://goo.im/devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
Sent from my dark hole called an office.
Click to expand...
Click to collapse
The file you requested was not found
Lets see if we can find that for you...
Search results for devs/Jamison904/T999/Infamous_S3/Tools/Battery PNG
That is what I got from Goo.
maybe I need to try a different browser
Thanks
yeah just tried myself. Goo most of lost it. Ill check go see if I have an older one on my mirror. Give me a sec and thanks for the heads up
Ill have to reupload it tonight. Thanks again
Sent from my dark hole called an office.
Battery_PNG
Fixed link.
Jamison904 said:
Battery_PNG
Fixed link.
Click to expand...
Click to collapse
I give up this is what it is saying again.
The file you requested was not found
Lets see if we can find that for you...
Search results for devs/Jamison904/T999/Infamous_S3/Tools/Battery_PNG
Thanks though I got the other files so All I have to do is find images and place them into your formula.
Dang it. I even tested yesterday after up loading it. OK good deal. Ill upload it to my mirror some time this weekend. I dont get why it keeps doing that...
Sent from my dark hole called an office.
LINK
Different server. Third time is a charm.
I am really surprised that this didn't get the attention I thought it would. People afraid of it? Or don't have a need for it.
Jamison904 said:
LINK
Different server. Third time is a charm.
Click to expand...
Click to collapse
Thanks Worked great!
:good:
Jamison904 said:
I am really surprised that this didn't get the attention I thought it would. People afraid of it? Or don't have a need for it.
Click to expand...
Click to collapse
Alright, giving this a shot, I def like battery #5. I like the idea of having a tool, but what's the easy way akapaul26 is speaking of?
Chefedogg said:
Alright, giving this a shot, I def like battery #5. I like the idea of having a tool, but what's the easy way akapaul26 is speaking of?
Click to expand...
Click to collapse
Tool won't work for me, I've followed every direction to the T...
Windows or Linux? Thanks

Softkeys installation

Hello Guys,
I want to change the softkeys on my nexus 4.
I have did it before in older android versions and it worked great.
Intresting enough,
On kitkat I'm having trouble changing the softkeys.
After updating Edify successfully
I can't seem to load the softkeys zip file.
It says:
SKIPPED://system/app/SystemUIapk was not found
WARNING: update.zip would be empty -- not creating one!
I've changed the xml path as follows:
from:
<path>/system/app/</path>
to:
<path>/system/priv-app/</path>
according to the next thread:
http://forum.xda-developers.com/nex...pthemer-to-flash-themes-stock-t2202482/page11
and then he says:
can't find control file ...
Guys please advise,
Would much appriciate it.
Thanks a lot!
Or in other words ....
How do I change the softkeys on kitkat?
Thanks.
somebody can help please?
biotech326 said:
somebody can help please?
Click to expand...
Click to collapse
Hi, yes we can help, but keep patient ^^
I'm the OP of the thread you linked, and if you tried to change the xml, you certainly saw the latest messages.. Another member had the same problem and I just changed the xml file, it worked good, are you sure you've done it correctly (I'm not insulting you but, you know...)
-From my Nexus 4-
biotech326 said:
somebody can help please?
Click to expand...
Click to collapse
If you upload the zip you are trying to edit then I can take a look to see what's wrong :good:
Thanks for the responses guys!
I'm not insulted I'm just human and I can make mistakes so everything is cool
I'll ellaborate all the steps that I did so it will be easier for you guys to help me.
I've entered:
http://forum.xda-developers.com/nexus-4/themes-apps/softkeys-softkey-collection-t2005937
Chose Stock Reflect ICS BLUE theme for the nexus 4.
When entering the link
I've downloaded MMZT_softkeys_stockreflect.zip
from here:
https://www.dropbox.com/sh/eglqkhlw...k Reflect Blue/MMZT_softkeys_stockreflect.zip
I've extrected the file locally and receive two things:
1) MMZT_softkeys_stockreflect.xml
2) SystemUI folder which contains other things underneath.
The xml file before the change:
<?xml version="1.0"?>
<themename>MMZT_softkeys_stockreflect</themename>
<themeversion>1.0</themeversion>
<author>atticus182</author>
<phone>Nexus 4 / Galaxy Nexus</phone>
<rom>ICS / JB</rom>
<item>SystemUI.apk</item>
<path>/system/app/</path>
<description>(Mod Requires a Reboot)</description>
<notes>Visit xda-developers.com for more mods</notes>
The xml file after the change:
<?xml version="1.0"?>
<themename>MMZT_softkeys_stockreflect</themename>
<themeversion>1.0</themeversion>
<author>atticus182</author>
<phone>Nexus 4 / Galaxy Nexus</phone>
<rom>ICS / JB</rom>
<item>SystemUI.apk</item>
<path>/system/priv-app/</path>
<description>(Mod Requires a Reboot)</description>
<notes>Visit xda-developers.com for more mods</notes>
After the change I've compiled the xml and the folder together to a new zip file.
In my nexus 4,
I downloaded ZipThemer
Downloaded the newest CM rom and transfered it to my phone.
Inside ZipThemer I've updated the edify using the CM rom file
and the output was success.
Here's a link for my updated zip file:
Code:
http://speedyshare.com/TVepR/MMZT-softkeys-stockreflect.rar
If I can give any more details please let me know
And thanks a alot for the effort
I appriciate it
lol. just decompile your system ui and put them there. compile back. done
zamzameir said:
lol. just decompile your system ui and put them there. compile back. done
Click to expand...
Click to collapse
Hmm I didn't quit follow sorry ...
Where should the xml be?
Can someone please create a zip for me?
Thanks!
biotech326 said:
Hmm I didn't quit follow sorry ...
Where should the xml be?
Can someone please create a zip for me?
Thanks!
Click to expand...
Click to collapse
give me your systemui and framework-res.apk. and also the softkeys images. I'll do it for you
(I didn't choose my words wisely, by insulting I meant offended )
So you are under CM? Which version and also, are you sure the systemUi file is in priv-app?
Also
biotech326 said:
It says:
SKIPPED://system/app/SystemUIapk was not found
WARNING: update.zip would be empty -- not creating one!
Click to expand...
Click to collapse
Did you forgot the dot in SystemUIapk when copying it in the forum ?
-From my Nexus 4-
Isn' the SystemUIapk supposed to be a.. SystemUI.apk ? <- Look at the dot.
I'm sorry but I don't quit follow ...
I have a system UI directory not apk.
What do you mean
systemui apk and framework-res.apk?
Thanks guys
Those are two apk file in which you replace the soft keys ^^
Go into priv-app and send a screenshot of what you see.
-From my Nexus 4-
biotech326 said:
I'm sorry but I don't quit follow ...
I have a system UI directory not apk.
What do you mean
systemui apk and framework-res.apk?
Thanks guys
Click to expand...
Click to collapse
systemui.apk is located at system/priv-app/
while framework-res.apk is located at system/framework/
give me this 2 apk of yours. I'll try do a flashable zip for you later
Thanks for the extensive help you guys!
Much appriciated
I've upload the two apk's of my nexus:
systemui.apk
framework-res.apk
Code:
http://speedy.sh/v8g9y/apk.rar
I'm running android vanilla pure android from google OTA 4.4.2
I used the CM rom file only to update the Edify, no CM rom here mates.
This is the softkeys that I want:
https://www.dropbox.com/sh/eglqkhlw33clfhz/Y0d7jZEWjS/Softkeys/Stock Reflect Blue
If someone can please compile it for me I would be very grateful!
Want this nice blue softkeys already hehe
Thanks and goodbye
biotech326 said:
Thanks for the extensive help you guys!
Much appriciated
I've upload the two apk's of my nexus:
systemui.apk
framework-res.apk
Code:
http://speedy.sh/v8g9y/apk.rar
I'm running android vanilla pure android from google OTA 4.4.2
I used the CM rom file only to update the Edify, no CM rom here mates.
This is the softkeys that I want:
https://www.dropbox.com/sh/eglqkhlw33clfhz/Y0d7jZEWjS/Softkeys/Stock Reflect Blue
If someone can please compile it for me I would be very grateful!
Want this nice blue softkeys already hehe
Thanks and goodbye
Click to expand...
Click to collapse
In fact you must update edify with the zip from the rom you are currently using... I don't know the vanilla rom, in what is it special?
-From my Nexus 4-
azertguigui said:
In fact you must update edify with the zip from the rom you are currently using... I don't know the vanilla rom, in what is it special?
-From my Nexus 4-
Click to expand...
Click to collapse
Ok so you suggest downloading the rom from google site
and update with that one?
I don't really know I ask you? What kind of rom is that?
-From my Nexus 4-
azertguigui said:
I don't really know I ask you? What kind of rom is that?
-From my Nexus 4-
Click to expand...
Click to collapse
Hey mate,
It's not a rom,
It's the stock android that we have on nexus devices ...
What you get from system update through the phone
Over the air android.
Oh I thought the vanilla was the name of a special rom...
Anyway, try the attached file. But make a full non-droit backup, we don't always know what happens...
-From my Nexus 4-

Sign apk with Platform keys no need to Unlock SuperUserMOD in jar

Here is the way to sign your apk with system platform...
Jar modification bye bye for Cyanogen Users... Hahahaha...​
Method
1) Unzip and put apk were data uncompressed...
2) rename it to k.apk
3) and run script...
Password :android
zip Attached
enjoy... signed apk only for CM12 and CM12.1.1 , my AOSP uses Cm12.1.1 platformkeys
so it work on rom that build with cm12 or cm12.1.1 keys​
reserved
Why it's protected with a password ?
Plus, it's should be posted on Android Themes/General forums not Xperia specif forums.
I used ZipSigner.apk for that
wolfmannight said:
Here is the way to sign your apk with system platform...
Jar modification bye bye for Cyanogen Users... Hahahaha...
Unzip
and put apk were data uncompressed...
rename it to k.apk
and run script...
Password :android
zip Attached
enjoy... signed apk only for CM12 and CM12.1.1 , my AOSP uses Cm12.1.1 platformkeys
so it work on rom that build with cm12 or cm12.1.1 keys
Click to expand...
Click to collapse
It mean i can make superuser mod with this?
Sent from my Xperia L using Tapatalk
it will enable SU for that signed apk
for many apk you need to sign every apk by this
After this do we need superuser mod. And just by that can we install any app on any phone
khurshid_258 said:
After this do we need superuser mod. And just by that can we install any app on any phone
Click to expand...
Click to collapse
any apk with any cm12 or cm12.1 based rom
abo hani said:
Why it's protected with a password ?
Plus, it's should be posted on Android Themes/General forums not Xperia specif forums.
Click to expand...
Click to collapse
Sir,
signing apk can done without password with keystore ? I don't think so..
I not put password , its a basic manual method to sign apk with platform keys
(keystore)A Java KeyStore (JKS) is a repository of security certificates – either authorization certificates or public key certificates – used for instance in SSL encryption.
I thought , 70% of Xperia apk works by signing them with Platform key ... So I posted
and I never open xda's other forms
I only open Sony Cross-Device General and Sony Cross-Device Development Themes and Apps , hahahaha
darknessmc said:
I used ZipSigner.apk for that
Click to expand...
Click to collapse
ZipSigner.apk is phone based I also have apksign.apk , but my phone take too much time to sign 14 Megabyte file , my phone is too slow
so i used to be sign apk on my mac
Nice tutorial, but I'll stick with replacing the testkeys in Apktool with the custom ones I currently need.
Just keep in mind that apps signed with platform keys cannot be installed normally. They gotta be pushed directly to system to work.
Just mentioning.
WhiteNeo said:
Nice tutorial, but I'll stick with replacing the testkeys in Apktool with the custom ones I currently need.
Just keep in mind that apps signed with platform keys cannot be installed normally. They gotta be pushed directly to system to work.
Just mentioning.
Click to expand...
Click to collapse
yup bro.
I can't do it . whenever I run the script it show some file not found error in command prompt , and my file get deleted
khurshid_258 said:
I can't do it . whenever I run the script it show some file not found error in command prompt , and my file get deleted
Click to expand...
Click to collapse
before run rename your xxxx.apk to k.apk
then run script
wolfmannight said:
before run rename your xxxx.apk to k.apk
then run script
Click to expand...
Click to collapse
I am doing like that only then also that error is coming. I have attached the image of the error
khurshid_258 said:
I am doing like that only then also that error is coming. I have attached the image of the error
Click to expand...
Click to collapse
Make sure you have jdk installed first.
If so then make sure you use the right path for it, maybe you have different version of jdk installed. As for me my jdk bin folder as follows:
"C:\Program Files\Java\jdk1.8.0_60\bin"
because I have jdk version 1.8.0_60 installed.

how pack again system,img,ext4 ? DEVELOPERS

hello
i successfully extract the system,img,ext file,,,,now i edited somethings,
now i want to create again in same file, img,ext4 how can i do that
have you any idea about it?
Mr Hassan said:
hello
i successfully extract the system,img,ext file,,,,now i edited somethings,
now i want to create again in same file, img,ext4 how can i do that
have you any idea about it?
Click to expand...
Click to collapse
For Linux use this kitchen. If you're using Windows, use this one. I've actually had a better experience with the windows program but I've used both. You can use xpirt's image packer on its own but I think it's easier to just let the kitchen to all the work and they use the same tool plus you can deodex, Zip-aligned, and all sorts of other fun stuff.
kevintm78 said:
For Linux use this kitchen. If you're using Windows, use this one. I've actually had a better experience with the windows program but I've used both. You can use xpirt's image packer on its own but I think it's easier to just let the kitchen to all the work and they use the same tool plus you can deodex, Zip-aligned, and all sorts of other fun stuff.
Click to expand...
Click to collapse
brother i see this thread , i have window,
as i say i have open system folder and now i can,t understand how to pack it, where i start
anyway thanks , i,ll try
is there any other more easy tool for that?
hi. you need an archiver that can handle images like 7zip or rar i find the later more useful for decompressing images .
mojoswagger1980 said:
hi. you need an archiver that can handle images like 7zip or rar i find the later more useful for decompressing images .
Click to expand...
Click to collapse
you mean i can repack via 7zip direct in tar farmat?
if yes so its not workable , 1st need to repack system.img

Categories

Resources