I have created a web scraper for my android application. I have finished and tested it external to the app and Android Studio, and it works perfectly. Unfortunately, when I migrated it into my app and android studio I wasn't able to connect to the websites anymore. I was still able to run the code externally and the websites were up and running but when the code was in android studio it doesn't seem to work.
This is very weird as I have managed to run a web scraper in the app before and the only relevant thing that I can think of that I have change which might affect it was creating a web view in another activity. This meant I had to edit the manifest to allow the app to use the Internet. But why would this stop the web scraper from being able to connect?
I will be uploading my project to GitHub soon if it would help to give a link to the code.
Related
I am trying to write an app that interacts with a website. However this website is only available to be used in the IE browser. Would I be able to still interact with it in the android application. Maybe using HttpRequest?
Would appreciate any help.
Thanks
I have developed an app in Java - Eclipse to upload images to google app engine using Google Picker API. While in development mode it works as it should, when i deploy it to Google app engine, the code stops working (as it does in development mode (stops uploading images to drive)).
I have created a Browser key, and I have that key as API key for the app. Also, in allowed referers, i have it as any referer its allowed.
I suspect that i dont have to show any code, as this isnt a coding issue. If it was, it wouldnt be working in dev mode.
Can you help me out?
I found the error myself.
I read somewhere that an app behaviour in eclipse dev mode could be slightly different than an app behaviour deployed to google app engine.
So, i opened developer tools in chrome, and debugged the application. I found out that a function which wasnt throwing any error in dev mode, was actually throwing a null pointer exception in gae. So I debugged this, and corrected the code that was messing up the code in google app engine.
And now it works.
I'm developing an Android Application in which I need to Interact the web browser(Like chrome,Opera ) with my android app.
That is, In Android Device , when I click my particular web URL using any of the browsers. The App must be opened .
I'm really Confusing with this task .
Please anybody help me by reply me How to achieve that ?
Thanks
There are many links which can help you with that. See
Make a link in the Android browser start up my app?
Launch custom android application from android browser
Invoke android application from browser
Open my Android app from URL link from browser
How to launch an activity from browser in android?
Hope they help you understanding how to do it. If there is any specific issue you are facing, I would be happy to help further.
I have recently started programming for the Android platform. I have a simple application which I would like to email to someone so that they can execute the application and check how it works.
I am currently using the Emulator in the Android SDK to execute my application but the person who I am emailing it to does not have Android SDK and it would be a mission to send the whole project folder.
Is there any way that I can send just one file such as an .exe or something that would allow the recipient to execute the application to see how it works.
Thanks so much for your help in advance guys
The "exe" for android is called apk. I suggest you to look at this question. You'll need to build the apk and sign it in order to be able to run it.
If you just want to send it to a user for testing purposes, you can enable the setting in the target android device to allow "unknown sources" (I don't know the proper english name, as I don't have an english android here at the moment). You can find this in the app settings.
In your development environment look for the apk file created by eclipse. Then connect your smartphone to the pc and copy the apk over. Start up a file manager and click on the apk and it will install just like any other app.
If you want to deploy it properly, you have to sign it and probably follow the procedures from google. Since I don't have a fully deployable app yet, I can't say what the procedures is for that, but the google site is very helpfull on all aspects about android programming.
Check the "bin" folder in your project path. There you will have a .apk that you can share with your clients.
If they execute it in an Android mobile phone the application will be installed.
When I create a app from facebook developer and choose to use Heroku as host they don't give me the option to put a java app, only PHP, Js, Ruby and Pyton. But when i create a app from the Heroku dev site i can create a app using java. My question is: How can i put my java app to run inside facebook?
You don't have to create your app through Facebook using those templates, to make it eventually be a Facebook app. Just write your Java Facebook app separately (here's a good resource for that) and the once you get that working, follow the general guide for deploying Java apps on Heroku.