[App Inventor Issue] - Android Software Development

For anyone who is familiar with using the App Inventor tool, have you tried using the emulator while behind a proxy?
There seems to be a problem making a Web.Got call and an error is thrown when the app attempts to connect to the provided URL string and I was wondering if anyone knows of a way to work around the problem.
A screenshot is attached here that shows the very simple web.got call code block and the error that the emulator displays.
Note, the emulator has no issue reaching through the proxy and displaying any standard websites using the stock Browser app, so I can say with confidence that network connections are configured correctly.

Related

J2ME web server, access localhost using IE

I am trying to make a program in j2me (using Esmertec JBed) that acts as a web server (that only serves the localhost) and calls a browser to connect to itself.
Sounds simple enough, but I can't get it to work.
I am using the web server code here:
http://javaswamy.blogspot.com/2003/09/j2me-turning-your-phone-into-web.html
and added
"platformRequest("http://localhost/");"
to the end of startApp()
There are 2 problems, though. The JVM cannot open the URL because apparently it cannot run opera while my code is running (it can't run 2 java programs at the same time?)
If I open IE and go to "localhost", I get "Action Canceled".
Anyone has experience with this?
If you are interested, I am trying to make an offline wikipedia reader. I don't want to lose all the formatting, and using the browser to render HTML sounds like the easy way to me (I can even implement links since it runs as the server). I will just write a program to convert all the wikitext to HTML on a PC, and somehow produce a database based on a wikipedia XML dump. There is no HTML renderer for j2me.
Many thanks!

Android IM Client Help

Hello,
I was working on adding some additional functionality to the IM client I got from here code.google.com/p/simple-android-instant-messaging-application/. Can anyone help me out with the issues I am facing?
Note: I am using emulator and not the original phone
Issue #1
I cannot connect to Google chat to retrieve the contact list or begin chat. Same issue is with yahoo and other clients. I tried using simple IM but the issue is that It says cannot establish a secure connection. I tried out HTTPS sites in my browser and I cannot access them. I can only access normal sites. I am behind a proxy and I have set the proxy in the phone settings. Only normal sites are accessible.
Any help?

Set default browser

Hi, when trying to connect to free wifi, one frequently has to enter info on a website. However, in many of those cases my NSTG redirects me automatically using the built-in browser rather than my Opera mobile. Sometimes that causes issues (unresponsive browser etc). How can I define what browser is being used when my nook redirects to a website for connecting to the Internet?
Thanks!
Sent from my NOOK using xda premium
You can always just delete Browser.apk.
That works fine for me.
I forget if it redirects automatically.
Still, just go to Google or something in your favorite browser and it will display the "Accept" screen.
Deleting browser.apk seems to make things worse. Again, when I am redirected to a login page (NST does this automatically when in Settings/wireless for some providers) it fails....because it does not find browser.apk anymore.
I tried to rename the opera mobile apk to browser.apk, but I could not find the opera mobile apk in the system/app folder....
Sent from my NOOK using xda premium
You wouldn't find Opera Mobile in /system/app, it's not a system app.
You'd find it in /data/app, because it's a regular user app.
Not that renaming anything would help, that's not how Android finds things.
I don't have a login access point here to check anything out,
although it seems to work fine when I visit locations with logins.
I looked into how this works.
The Nook tries to access http://amifree.barnesandnoble.com/bnhello.html
That URL should just echo back "You have successfully reached the internet!"
It uses the built-in WebKit functionality.
This seems a waste for a number of reasons, including that you might have your Nook connected to a WiFi but not the internet.
In any case, I still don't understand what happens to you when you click on an Access point to connect.
If you have to, you enter the password for the WPA or whatever.
Then you open your browser of choice, go to any site and if you are going to be directed, you'll be redirected then.
Reminder to self: Patch or get rid of the B&N web access.
Thanks Renate. So that is how it works:
Since there is no user accessible browser on non rooted NST devices, the device connects and immediately checks the website you list below (saying "testing..." while checking).
If the receiver requires a redirect (for instance to accept certain terms), the hidden browser will be
invoked. Unfortunately that fails if browser.apk is deleted or the browser cannot handle the content on that site and one cannot connect to the internet
Best would be to disable the check so that can be done manually on the browser of choice for rooted devices.
Sent from my Dell Venue using xda app-developers app
Yes, it would fail at displaying the redirect page.
Are you saying that at that point it actually disconnects the WiFi?
Does the little signal thingie on the status bar disappear?
What happens when you just go to your regular browser and go to any website?
On mine, at that point I get the redirect screen I would have gotten originally.
Yes, the signal bars disappear (and I am no longer connected)...
Sent from my Dell Venue using xda app-developers app
Well, in that case, I'd patch Settings.apk to not do the online check.
In any case, I'm still at a loss to understand, because WebKit is part of the core, not an application and the login page will always be displayed in Settings.
How can I patch Settings.apk?
>> login page will always be displayed in Settings
The page is being displayed, but in some cases the browser used (browser.apk) cannot handle the content of the redirected website and I cannot login (not sure if that answers your questions though....).

[Q] Sideloading OpenVPN - can't add certificate or import a configuration

I am a PIA (Private Internet Access) subscriber and I'm trying to configure OpenVPN for Android on my Nexus Player. I had no problems configuring it on my Nexus 5 but when I open the app on the player and go through creating a profile, when I try to click the button to "select" a certificate OR if I try to import an OpenVPN configuration I get a brief message from android that it doesn't have an app to do that.
My guess is that something is lacking on my device - particularly the "open from" dialog that appears when you're trying to add/select a file from your sdcard or cloud drive.
Has anyone else seen this and have a solution? I'm so close to getting this nailed down and I don't want to use the PIA app since I can't access my local network resources when it's connected.
rewiredsoftware said:
I am a PIA (Private Internet Access) subscriber and I'm trying to configure OpenVPN for Android on my Nexus Player. I had no problems configuring it on my Nexus 5 but when I open the app on the player and go through creating a profile, when I try to click the button to "select" a certificate OR if I try to import an OpenVPN configuration I get a brief message from android that it doesn't have an app to do that.
My guess is that something is lacking on my device - particularly the "open from" dialog that appears when you're trying to add/select a file from your sdcard or cloud drive.
Has anyone else seen this and have a solution? I'm so close to getting this nailed down and I don't want to use the PIA app since I can't access my local network resources when it's connected.
Click to expand...
Click to collapse
**no root required, im on 5.1.1**
I got it working but it doesnt rotate but it works and all you need to do is input your info and hit connect.
Here is a VPN client that PIA made for there servers:
HTML:
http://download.apks.org/?server=11&apkid=com.privateinternetaccess.android&ver=1.1.7
install that like this:
adb install /path/to/com.privateinternetaccess.android&ver=1.1.7
Open up SideLoad Launcher and Launch VPN, fill out your info and tick save and hit connect. I confirmed working with Chrome at whatsmyip
Cheers,
DFL
Unfortunately it's not working on mine. When I click on "connect" I get a system dialog asking me if I want to enable VPN access - whatever you push after it doesent connet to the VPN.
Has anyone gotten this working 'better'? I've talked with PIA support and asked them why their app is considered "incompatible" and to please change that status in Google Play if there is indeed no issue. DroidVPN, VyperVPN, etc are in there so it's obviously possible I assume
Barkle said:
Has anyone gotten this working 'better'? I've talked with PIA support and asked them why their app is considered "incompatible" and to please change that status in Google Play if there is indeed no issue. DroidVPN, VyperVPN, etc are in there so it's obviously possible I assume
Click to expand...
Click to collapse
I'm wondering if I side load the android app will it work. Did you get it to work?
Sent from my SM-N910T3 using Tapatalk

I have problems connecting?

To public WiFi like in Walmart I'm a able to connect to it but then I get this message on my browser when trying to search for something?
I tried turning it off and on but still have the same problem. My brothers were able to connect and browse just fine.
Sent from my XT1575 using XDA Free mobile app
Does it work in Chrome?
The wifi is trying to redirect your phone to the signin page, but your browser sees it as a security problem and blocks it. There are a number of potential solutions to try. If you google for something like "open wifi popup can't connect" and similar to that, more will come up.
--Try temporarily disabling popups in Opera and get it to work.
--Clear the cache for Opera.
--For alternate browsers, try searching for something in Chrome and see if it redirects to the login page for you. Using Dolphin set to "Desktop" (vs. Mobile) may also work.
--Alternatively, when the login page comes up for your brothers, make a note of it and type it into Opera.

Categories

Resources