[Q] android live wallpaper with webview - General Questions and Answers

Im using eclipse and phonegap (hope thats not a bad combo) and I can successfully get the html page to show on my phone.
What I want to do next, is use webview as a screensaver, and point the screensaver to my own html file on the device.
Can someone give me some tips for the manifest and xml docs, I'd really appreciate it.
Thanks!

Related

Google API for Java

I'm relatively new to programming and am currently learning Java.
Google provides their API in Java for their various products. I downloaded it, followed the instructions to use ANT to get it all ready to go, but I'm stuck on how to actually start using it. I can't get their libraries to import into my programs using the JVM compiler. It just says a bunch of, "that package doesn't exist", and things of that nature. I can't even get Google's sample code to load any of the API packages.
How does one actually use the API once it's all extracted and in the C:\Program Files\Java\gdata folder? Can I not use the JVM compiler? I had to use ANT to set it all up... does that mean I have to somehow use ANT to use the API? I'm a little confused.
If somebody could write up a step-by-step on how to start using the API, that would be so awesome.
thesecondsfade said:
I'm relatively new to programming and am currently learning Java.
Google provides their API in Java for their various products. I downloaded it, followed the instructions to use ANT to get it all ready to go, but I'm stuck on how to actually start using it. I can't get their libraries to import into my programs using the JVM compiler. It just says a bunch of, "that package doesn't exist", and things of that nature. I can't even get Google's sample code to load any of the API packages.
How does one actually use the API once it's all extracted and in the C:\Program Files\Java\gdata folder? Can I not use the JVM compiler? I had to use ANT to set it all up... does that mean I have to somehow use ANT to use the API? I'm a little confused.
If somebody could write up a step-by-step on how to start using the API, that would be so awesome.
Click to expand...
Click to collapse
Judging from your post, you seem to be referring to the GData APIs. It's worth noting that Google is pushing Google APIs Client Library for Java for all new Google JSON APIs.
These APIs + samples are built with Maven2 and are pretty easy to setup.
Also judging from your post, you might want to get up to speed with basic java stuff like project setup in your IDE (Eclipse / IntelliJ ?), Build tools (Maven / ANT). Learn those things first before getting into the Google APIs. Go to the maven site and see how you can build a simple project. See how to import that project in Eclipse, and checkout the Maven plugin for Eclipse.
Most of the samples for Google APIs Client Library for Java (ex: The Books API Sample) provide step by step instructions on how to get things up and running (starting with checking out the code from the google versioning control to building it and running the sample on your environment).
Hijacking this threat a bit, but I'm also learning about APIs, Facebook and Twitter in particular.
With regard to android and java, I've done the tutorial for logging into facebook and posting basic status update but don't really understand the code; which parts are the API?
Really appreciate it if you could point me to another thread or site that explains how to use the API. I'm stuck on how to create a method that does event creation for facebook.
Thanks in advance!

Developing Android apps using MoSync and HTML

I'd like to share a very easy way to rapidly create reasonably sophisticated android phone apps using a simple technique I've been working on. The short version: I'm importing complete HTML websites into an open source android IDE and compiling them into .apk's. The resulting apps look good and perform well.
Here's the basic technique:
1: Download and install the free MoSync SDK.
2:Open up your HTML editor and create a multipage website, scaled to phone screen dimensions. Feel free to include phone numbers, links and so on. compile and save it somewhere.
3: Go to the MoSync project folder you're working with, and replace the contents of the "LocalFiles" folder with the copied contents of your compiled website. Be sure to copy all the folders and files from your site over. Once you have done this, either reopen or refresh the conents of the folder in MoSync.
4. Connect your phone ( you can also run in emulation ) and locate it within MoSync, then compile and send the app over. It will install and launch.
... that's really about it. The only thing I've seen so far is that the over apk size can't be larger than 5MB's or so without the phone refusing to launch the app. Your mileage may vary, but this technique is great for folks like me that have solid HTML experience but are somewhat new to Android development and would like to create something simple but functional while they aquire the new Android skills. Hope this was helpful!

Android Malware Analysis

Hi folks,
I have just started exploring the prospect of Android Malware Analysis recently. As of now I have mostly done Static Analysis using tools like APKTool, APKManager, Dex2Jar, Jd-GUI. Cheers to people in the forum who have contributed with these tools and cleared the initial questions, that was really helpful.
Recently I was trying to analyze a malware that sends SMS to the C&C individuals, using the above mentioned tools I changed the C&C number which was hardcoded in the code to the port number of an emulator on my system. I was able to se the SMSes being diverted to the emulator.
I wanted to try something at the next level now, I was thinking of loading the apk in eclipse and putting breakpoints in the code so that I can catch the different activities. A scenario would be before the SMS is sent out of the app the code stops executing at my breakpoint so that I can view what is going on. Hoping that this feels similar to debugging an exe in OllyDBG. I hope I got my point right.
Right now I followed a number of tutorials online and imported the apk code onto eclipse. I have been following a tutorial highlighted here
http://kkinder.com/2011/11/27/so-you-want-to-reverse-engineer-an-android-app-apk/
So right now I have .smali code as well as java code ( which I am getting by opening the apk as a jar file in JD GUI and saving from there as mentioned in the tutorial). The problem is I am getting errors in every java file that I import in eclipse.
Is there a better and easier way to debug apk files on eclipse, or rather is there a tool which I can use to do something like adding breakpoints before an app sends out an sms for instance.
Pardon me for the long post but i thought ill provide as much information as possible so that you guys can help.
Thanks in advance :good:
Bump
skeptre said:
Hi folks,
I have just started exploring the prospect of Android Malware Analysis recently. As of now I have mostly done Static Analysis using tools like APKTool, APKManager, Dex2Jar, Jd-GUI. Cheers to people in the forum who have contributed with these tools and cleared the initial questions, that was really helpful.
Recently I was trying to analyze a malware that sends SMS to the C&C individuals, using the above mentioned tools I changed the C&C number which was hardcoded in the code to the port number of an emulator on my system. I was able to se the SMSes being diverted to the emulator.
I wanted to try something at the next level now, I was thinking of loading the apk in eclipse and putting breakpoints in the code so that I can catch the different activities. A scenario would be before the SMS is sent out of the app the code stops executing at my breakpoint so that I can view what is going on. Hoping that this feels similar to debugging an exe in OllyDBG. I hope I got my point right.
Right now I followed a number of tutorials online and imported the apk code onto eclipse. I have been following a tutorial highlighted here
http://kkinder.com/2011/11/27/so-you-want-to-reverse-engineer-an-android-app-apk/
So right now I have .smali code as well as java code ( which I am getting by opening the apk as a jar file in JD GUI and saving from there as mentioned in the tutorial). The problem is I am getting errors in every java file that I import in eclipse.
Is there a better and easier way to debug apk files on eclipse, or rather is there a tool which I can use to do something like adding breakpoints before an app sends out an sms for instance.
Pardon me for the long post but i thought ill provide as much information as possible so that you guys can help.
Thanks in advance :good:
Click to expand...
Click to collapse

[Q] browser

I want to create a mobile browser based platform that can run webapps.
Please can anyone guide me through it ?
It sounds like you can pretty much start with one of the sample apps from Android Studio and drop in a webview. Assuming you want to bundle a webapp with your app, you can just drop the html into your assets directory and load your the asset url into your webview on Activity start. However, if you're not familiar with Android development, it might be a better idea to look around for a tool that does this for you - there are lots of libraries and sample apps out there that will do a lot of the heavy lifting on native apps wrapping fullscreen webviews for you

Manipulating the UI of existing native applications at runtime

Hello guys and girls! I would like to personalize some UIs of the applications I have already installed in my Android (not all of them, just a few ones). E.g. Using the same fonts, colors, etc. I know this sounds weird but I'm not thinking in creating an app for others but me, so it is not a problem if I have to root my phone or have it in debug mode. Any clue?
PS: I already saw some answers suggesting to decompress/compress the apk, but I don't want to modify the applications' sources, just injecting some style (as Stylish extension do it for Web applications) at runtime.
Thanks in advance for any clue! I'm a newbie and I think I'm not finding something because I'm not using the right keywords. I'm used to Web applications and this is really different for me.

Categories

Resources