Importing jQuery mobile app into eclipse - android

hi¡¡¡ wish you can help me with this problem¡¡¡ thanks in advance.
I've made a project in a drag-and-drop builder for
creating cross-platform mobile apps and websites, and now, i want to make an app native, apk extension, in order to take it into Android Market. After finish the project, i receive a source code bundle for Eclipse (phonegap project).
The link to the phonegap project is this http://www.mediafire.com/download/i3keb345k8y51lh/codiqa-android-f6e7a438-1377719055.zip
Everything works really fine in the project, but when i make the apk archive.......... is not so fine.
Let me explain you, step by step what i am doing, maybe you can tell me if something's wrong and how i can fix it.
Step 1: I export my project as phonegap project (android). I receive a *zip, and i unzip it in my computer .
Step 2: I open Eclipse program and create a "android project from existing code" (file>new>project>android project from existing code")
Step 3: I select the root directory where i've unzipped my codiqa project, and click finish.
Step 4: I export the project as an Android aplication (right button>export>export android application), follow the steps, and i get my application. (In the Manifest, i change debuggable to false.)
Step 5: I install it in my phone, and now come the problems.
Problem 1: I can not open anything from my app. For example, when you normally open a file o website in your phone, you can receive the standard "what program do you wish to use", but not in my app.
Another example, i have a mediafire link in the app in order to download an archive,.......... no matter how many times i press the download button, never work, never download.
Hope you can tell what's wrong and how to fix it, THANKS¡¡¡

You might need to try different platforms.
Sigma Mobility http://sigmamobility.com/ allows building mobile apps using jQuery for free through drag and drop feature, it also allows one to attach Java scripts and CSS styles.
you can through app preview download the source code , and to get cordova project source, you might contact SigmaMobility support for the same.

Related

LibGDX won't upload libraries and create project (Windows 8)

I have the next issue. Searched in the web but have not found if someone else has the same problem.
I've downloaded stable release version of LibGDX from official website.
For some reasons when I launch it and click to create project it shows me only one choice to download LibGDX library (in the required row). It does not offer me to download any of Third-party libraries like "Physics Body Editor loader" or "Universal Tween Engine". And even if I click to download stable or nightly version of LibGDX library, program does not manage that. (Image applied on the link below)!
https://www.dropbox.com/s/144mnevk8rh883p/Untitled.png
Probably I am following this guide on how to create android game. http://www.kilobolt.com/day-2-setting-up-libgdx.html And there is no such an issue as I have. I was working previously on projects using Intellij Idea and Eclipse for Android. So I certainly have installed SDK manager and JDK on my computer. I have no idea why LibGDX won't update libraries and even won't allow me to create project.
I will very appreciate for your help! Thank you!
LibGDX requires to change Name, Package, Game Class and Destination of your Projects first. After completing these steps, all libraries will be downloaded like a charm.
Another thing is that for the first time Third-Party libraries may not appear (for example Tween Engine). But for the second project they appeared for me.
I spent about 2hrs with same issue.
This works finally:
Copy gdx-setup-ui.jar to any drive/folder (I placed it in D: drive)
Open command prompt (Start -> search: cmd)
type D: after C:\Users\xyz> ...enter
D:>gdx-setup-ui.jar ....enter
Now enter your name,package name... rest details
Then download libGDX, Universal Engine, Physics Body Editor loader.
Open Generation Screen -> Launch
DONE

how to use htmlunit with my android project

I have downloaded htmlunit 2.11 zip. i have extract it. then i have tried to paste them in my project's libs folder. from the libs folder i have added them in build path. then i get this error, while i was trying to run my app
conversion to dalvik format failed with error 1
then, from stackoverflow i found that, one said to delete xalan xercesImpl xml-apis.
i deleted them. but getting this error:
Error generating final archive: Found duplicate file for APK: about.html
error message also showed that which files are conflicted. they are jetty-http jetty-io jetty-util jetty-websocket then i run my app again. this time it shows some warning. i have ignored them. but my app crash saying that classNotFound
by the way, i have also deleted httpclient jar. because one said that httpclient is already built in android.
this is my problem. Now, can anyone help me? i really want to use htmlunit in my app
Edited:
it will be very helpfull if you show me the steps, 'how to add htmlunit in my project'
Edited 2:
mainly i have a link, which i have get after login (i have login through web view) this link give me a simple page. in that page there is a textarea and a submit button. and there are some javascript too (i think these javascript run, when i press the submit button). i can do it through webview, but for some reason i don't want to use webview. whene i press submit button, it deliver the value of textarea and some value of hidden field with existing cookies(which are get when i logged in through webview) Post method. i need to do this without webview. now is there any other option beside htmlunit ?? i heard about HttpClient, HttpUrlConnection. one more thing, agter submitting it will redirect me to another page. i don't need to do anything with this redirected page.
N.B: if this question is not appropriate with what i really ask previously, then you can suggest me, and i will post a new question. thank you
Nothing of this will work because he is trying to include HtmlUnit into a android project. HtmlUnit is not compatible with android because is refernces some java.* & javax.* classes which are not available in android.
Hope there will come a version for android.
sorry, i have lost all my hope on HTMLUNIT. :( to gain my goal i have used HttpUrlConnection & Jsoup ... that works for me. here is my procedure i have post my code in answer.
Here are the steps to follow:
Download the latest version of HtmlUnit from http://sourceforge.net/projects/htmlunit/files/htmlunit/2.11/
Unzip downloaded file
Go to lib folder --> Right click on htmlunit-core-js-2.11.jar and select 'copy'
Go to Package Explorer in Eclicse --> Chose your project --> Right click on libs folder and select 'paste'
Right click on the newly added file and click on 'Add as a library...' and select your project.
Repeat steps 3, 4 and 5 for the htmlunit-2.11.jar file
Add this two imports to your project:
import com.gargoylesoftware.htmlunit.WebClient;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
Clean the project.
Please also check this link http://www.aviyehuda.com/blog/2011/05/16/htmlunit-a-quick-introduction/ for the htmlUnit quick introduction
I know it's too late to answer, but hopefully my answer will help other newbie's like me who is trying to webscrape in their android app and stumbled upon this thread for a working solution of htmlUnit in android studio. I used a previous version of htmlUnit (2.14) and it worked for me. Why I was trying htmlUnit, and not Jsoup ? because my target webpage had javascript calls, which was not giving a fully loaded html. So, in short: Use a previous version of htmlUnit.

Infragistics controls for eclipse

I want to use Infragistics controls in my android application which i am creating in Eclipse IDE. But i cannot find a way to integrate these controls with eclipse. I have downloaded the file named NetAdvantage from
http://www.infragistics.com/products/android/
But I cannot find a way to use it in my project. When I try to install it, it installs it for Visual Studio. Can anybody please tell me some way as my application is in java not in C# or VB.NET
I assume that you are referring to the IGUANA UI toolset? In this case I suggest choosing the "Iguana UI 2012 Complete Bundle" download option on the IG Website.
IGUANA UI actually does not require installation - the toolset as well as the documentation and product samples (including sample source code) are all available in the downloaded zip.
Please let me know if this helps.

including sencha touch 2 in eclipse

i am using sencha touch 2 for first time .i have installed mds applaud plugin with sencha touch support for eclipse
i start project by including sencha touch library as shown below.
then i add sencha code as follows
but when i run the programme in android emulator instead of printing hello world it shows blank white screen as below.
can anyone help me how to run this application sucessfully ?
I'm pretty new to this, but I found that you can test the view in your browser by directing it to the folder that the app is in. For example, I just created an app called "TS2". The app is in the folder C://xampp/htdocs/ts3 so I direct my browser to http:// my ip here /ts3/assets/www/. Of course I got the apache server running in XAMPP.
One more thing, I created the new app in the bash console and then imported it to Eclipse. In the screen you capped I selected "Create project from specific source directory" and then there is another option called something like import.
I hope this helps but, as I said, I'm still learning myself.

How to run Sencha Touch Application in Eclipse

i am new to sencha touch & phone gap.i want to run simple hello word app in eclipse.but i dont know how to do it.if any one knows it than let me know fast
Thanks in advance
Aamirkhan I.
UPDATE:
Well there is a plugin availble for eclipse in which we can easily create any sencha,jquery mobile,phonegap project's,just need to follow some steps to integrate that plugin..see MY POST for that plugin guide,i updated my answer just to help other's who don't know how to write sample application in phonegap eclipse.
Thanks
follow this folder structure.
---your application name
-------src
--------------your activity class
-------gen
--------------generated files
-------android2.2
--------------generated files
-------Referenced Library
--------------Phone gap referenct which is placed in the libs folder
-------assets
--------------create folder www
---------------------place your html files & create sub folders for sencha files(
-------bin
--------------auto generated files
-------libs
--------------phonegap-1.3.0.jar
-------res
--------------some auto generated files
--------------create xml folder in that place phonegap.xml and plugins.xml files
-------Android Manifest
-------proguard.cfg
-------project.properties
Start by doing the Getting Started tutorial of PhoneGap on whatever OS you want to work.
http://phonegap.com/start
You should get your Hello World pretty easily
And if you want to go further you can do that great Sencha Touch tutorial :
http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/
Hope it helps
I would suggest you to use Apatna studio for the Sencha client development. It helps to build web applications quickly and easily and it is one of the Eclipse based powerful web development engine.
http://aptana.com/
Find Aptana Studio 3 Release Updates site: http://download.aptana.com/studio3-rcp/plugin/update/
Another alternative is Spket plugin for eclipse for Javascript. Spket Update site: http://www.spket.com/update/
Once your are done with the client development, you can follow the below link to build the different version of mobile application builds using phone-gap. Visit here for Phonegap developers reference link

Categories

Resources