[Android]Launching applications from webpage, HTML, PHP etc - Android Q&A, Help & Troubleshooting

So im trying to launch phone applications e.g. com.phone via a html file
is there a method to do this? im not trying to build it into the apk, the apk builds the launcher via a html file.
so basically im trying to do
launch.android.app<app.name.apk>
any help?

Related

Importing Certificates

I need to import a certificate for my WIFI. I can get this as a PEM or DER format certificate from our admins, which I can use on anything else from a laptop to a pda.
On the Nexus the certificate needs to be .p12 files (PKCS#12). I do not have one of these, nor can I get one, nor can I find a way to convert the current PEM/DER to one of these.
How do I do this? It seem pointless if the nexus requires a different format than that provided to people to work with all other devices. Admins are not going to start issuing a special format, just for nexus users, Especially when that format seems to need a private key in addition and/or another password too.
Anyone else managed to do this?
I installed a certificate (a .crt file) by opening it with the web browser (via HTTP). You could also try opening it in Astro or another file manager.
A lot of people have complained about this. Apparently you have to import it from the web browser. File and gmail apps don't seem to know how to handle the certs.
You can forward it to your gmail account then use the web browser to get to gmail and import it from there.
Hi Guys,
I don't mean to hijack the thread, I've been trying to find the full encryption standards and protocols supported by the nexus one and have not had much luck. I presume you guys might have an idea.
Anyone got a link ? Thanks for your help. Ash.
robert-qfh said:
I installed a certificate (a .crt file) by opening it with the web browser (via HTTP). You could also try opening it in Astro or another file manager.
Click to expand...
Click to collapse
UmbraeSoulsbane said:
A lot of people have complained about this. Apparently you have to import it from the web browser. File and gmail apps don't seem to know how to handle the certs.
You can forward it to your gmail account then use the web browser to get to gmail and import it from there.
Click to expand...
Click to collapse
I've tried opening with a few file browsers, no luck as they refuse to open them, tried various ways of opening with web browsers, no luck as all they want to do is save them, and then the file browsers dont want to open. Also tried email and opening through the web or client. No luck.
Can you guys break it down how you got it to work ?
Thanks
Ash.
Anyone know how to load a .crt and .ca certificates on the nexus one ?
I've tried doing everyway with and without the certificates.
Thanks
Ash.
Just tried uploading a .DER cert to my personal FTP and goto it via the browser and it simply opened it like a text file. .P12 files are recognised by the browser fine and the user is prompted for the passkey but that is expected as .P12 seem to be the only type of cert that works on Android.
You could try to manually modify wpa_supplicant.conf . Depending on the network configuration this may vary. This is the same way you would do it in Linux. I remember I did this in my G1 ( I dunno if you need root, my G1 was rooted anyway), but the location of the file was not in /etc like it is usually in most Linux. My conf looked like this:
network={
ssid="somenetworkWPA"
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
eap=PEAP
identity="[email protected]"
password="pass"
phase2="autheap=MSCHAPV2"
ca_cert="/sdcard/mycert.der"
}
There are plenty of samples and explanations around the net about changing this file. Hope this helps.
janfsd said:
You could try to manually modify wpa_supplicant.conf . Depending on the network configuration this may vary. This is the same way you would do it in Linux. I remember I did this in my G1 ( I dunno if you need root, my G1 was rooted anyway), but the location of the file was not in /etc like it is usually in most Linux.
Click to expand...
Click to collapse
It's /data/misc/wifi/wpa-supplicant.conf. It's owned by wifi:wifi with permissions 770. So it appears you'll need to be root.

[Q] Moving a Java App

Hello,
on my Xperia X1 with a custom 6.1 Rom i have a special java app installed. It is for buying tickets of my local metro line. Now i tried to update my rom to a custom 6.5. I can install the java update, but i cannot login because he said the password is to short. i tried out serveral ways because i can change the password freely on the metro line webpage. but it seems to be an error in the textbox of the java app or someting.
My question is how to identify every related files (cant find anything in \programs files\ etc.) so that i can simply copy every file to the storage card and vice versa after the rom update.
Has anyone of you an idea?
best regards
mad

[Q] Can't log in to site - need Java?

When I try to log in to a certain website, I get this:
"Your browser does not have the Sun Java system component installed or it is incorrectly installed."
I have been trying for over a year now!!! Yes, a YEAR!
I have tried Vegan and stock, I have tried Dolphin, stock and Opera browsers and I just side-loaded Firefox V9 for mobile, but still no luck accessing the website.
Can anybody help me please?
You can't use Java (JRE) on android.
goog64 said:
When I try to log in to a certain website, I get this:
"Your browser does not have the Sun Java system component installed or it is incorrectly installed."
I have been trying for over a year now!!! Yes, a YEAR!
I have tried Vegan and stock, I have tried Dolphin, stock and Opera browsers and I just side-loaded Firefox V9 for mobile, but still no luck accessing the website.
Can anybody help me please?
Click to expand...
Click to collapse
Unfortunately I don't think you can use jre/jvm on android (natively). Two possible workarounds:
1 - Duel boot or VNC into a Linux distribution w/java
2 - Use a remote desktop app to access your PC's browser from your tablet
I haven't tried to access Java sites using either one, just some ideas for you to try.
Thanks for your reply. So that means there's no chance of logging in to that site from my Gtab?

Help With Eclipse Running an Android App (First Post)

Hi all I am a noob when it comes to this, I just started to make my phone app and I have it completed with html javascript and jquery. I have been having some trouble when running it in Eclipse. Well thats the problem Im not sure what to do to get it to work in Eclipse. It runs on the browser but i cant get it to work on my phone and not sure where to start and what files I should keep when starting a new project? Any Help would be greatly appreciated. Thanks
More on question
Ok i have it down to one error i keep getting when i run it. I am trying to connect to the html file and i get an error saying "Network error, "files:///android_asset/www/index.html" Im not sure how to fix this and have been looking everywhere. My code works perfectly in a browser but this error keeps popping up when testing it. Please help
i think you mean webkit view
Normally with eclipse, java applications are compiled with the provided android sdk.
With html / javascript you can bypass this (as I'm assuming you have done)..
when you are creating your android project in eclipse, in your main activity's layout xml file,
make sure you have the webkitview declared..
Code:
<WebView android:id="@+id/web_engine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
This would inform eclipse that you are going to need a web display view,
now in your mainactivity.java.. find your webkitview
Code:
browser=(WebView)findViewById(R.id.web_engine);
to enable javascript stuff
Code:
browser.getSettings().setJavaScriptEnabled(true);
and to load the actual page,
Code:
webView.loadUrl("file:///android_asset/filename.html");
and also remember google is your friend : search for "android webkit loading local javascript assets" there are tons of queries in stackoverflow too..

Developing apps for GN2

I see that most development chat here is for system software, kernel, etc.
I would like to begin writing apps for the Android OS. I have a GN2.
I've installed Eclipse and have installed the last few SDK versions.
I eventually want to build an app that will allow a user to log into a web site and retrieve data from a database file on the web server using other phones also.
I'm an old Visual Basic programmer and have a little C# familiarity. Don't know much Java at all.
What else might I need to download and install into Eclipse to be able to write an app to access a database file on a server?
Anyone know of any app templates that can I can download and start off from to learn the process of writing such an app?
The database will be mySQL probably. Could be an Access or Sql Server file.
Thanks in advance,
Barry

Categories

Resources