[Q] Live Wallpaper - Java for Android App Development

Hi Guys,
I am new to live wallpaper..Can any one explain me how to create live wallpaper in android..:fingers-crossed::fingers-crossed:

Hey man, how about googling for tutorials and then asking SPECIFIC questions -_-
Well but there you are, because i dont want to only be unhelpful... http://www.vogella.com/tutorials/AndroidLiveWallpaper/article.html
---------------------------------
Phone : Nexus 4
OS :
- KitKat 4.4.4 stock
- Xposed: 58(app_process); 54(bridge)
- SU: SuperSU
- no custom recovery
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

As mentioned above, this isn't very specific. If you wish to create a Live Wallpaper rendered with an OpenGl renderer, this source was of great help for me:
www.learnopengles.com/how-to-use-opengl-es-2-in-an-android-live-wallpaper/
If you have specific questions about using OpenGl in a live wallpaper (supposing that you already implemented something), it could be that I have some answers. Btw. I especially had problems with using both a wallpaper and an app frontend in the same apk. Maybe I could post parts of the Manifest file, if that's what you are interested in.

Related

Problem with virtual device in eclipse

I have problem with emulating basic „Hello World“. I create AVD as Nexus 4, choose project hello World in Run configuration, as target I mark my own AVD and then confirm Run. Virtual device doesn’t start. What’s wrong?
I work on macbook pro early 2011 i5, 4gb 10.6.8
Jdk 7
All packages like Tools or Android 4.4.2(API 19) Installed
You first have to go to avd manager and start your desired emulator there. Then after it is fully booted, run your project
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
You should also try the Genymotion emulator. It works so much faster for android emulation.
Thats right i also prefer genymotion as it gives you a fully, but really fully working avd that is even rooted. So suits every single app testing purpose you could need
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Masrepus said:
Thats right i also prefer genymotion as it gives you a fully, but really fully working avd that is even rooted. So suits every single app testing purpose you could need
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Click to expand...
Click to collapse
Thanks ,I'll try surely, I have no choice
Neozelkova said:
You should also try the Genymotion emulator. It works so much faster for android emulation.
Click to expand...
Click to collapse
Does it work like virtaul machine and on physical android device?
Genymotion is a virtual machine, but you can change some settings so that the internet connection is fully functioning plus you can acces google play through it as well
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

[Q] automatic responding to login prompts sent by websites

I want to get data from a specific web page at the background of my app. But before one can enter that page, the website pops up a dialog box asking for username and password. Now my question is can i automatically let my app submit the required two strings to that dialog box so that it can then have access to the data displayed on the website afterwards without any interaction of the user himself?
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Masrepus said:
I want to get data from a specific web page at the background of my app. But before one can enter that page, the website pops up a dialog box asking for username and password. Now my question is can i automatically let my app submit the required two strings to that dialog box so that it can then have access to the data displayed on the website afterwards without any interaction of the user himself?
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Click to expand...
Click to collapse
That's determined by the website. You *may* be able to pass the username & password as a http post, but that may not work. Depending on the site, they may have an API for external sites and apps to use for login.
Without knowing what site it is it's impossible to answer.
Mh okay it is my school's website and they dont have any apis or anything that i could use.
So you say i probably have the possibility to post it via http? Can i see that in the site's source code that i get when i use the 'show site source' function in desktop chrome?
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Masrepus said:
Mh okay it is my school's website and they dont have any apis or anything that i could use.
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Click to expand...
Click to collapse
In that case you need to look at the login page and see how that does it. It most likely uses a form that posts data to a url and that redirects you to another page if login is successful. Are you planning on asking the user for the login and password and then using that?
Yep that is what i am planning to do
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Masrepus said:
Yep that is what i am planning to do
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Click to expand...
Click to collapse
Just view the login page source and see how that does it. You can most likely do a http post to the login page and the change url to a signed in page once you get a response (assuming it was a correct response).
If you're not sure how to do that, here's a link I found for a Stack Overflow question that has a good looking answer...
http://stackoverflow.com/questions/4205980/java-sending-http-parameters-via-post-method-easily
Hm i just checked again and i saw that if i just cancel the browsers pop up asking for the username and password, then i get to another page that tells me that authentication is needed and that i either provided wrong credentials 'or your browser doesnt understand how to supply the credentials required'
So i would think that there must be a way to submit those via http or something like that
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
This is the website: app.schyren-gymnasium.de/pw/mrekursiv.php
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Masrepus said:
This is the website: app.schyren-gymnasium.de/pw/mrekursiv.php
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
Click to expand...
Click to collapse
That page isn't using http posts to get username & password information. That's server authentication which is a completely different thing, and I'm afraid I have no idea how to pass the information in Java.
Have a look at this and see if it helps...
http://stackoverflow.com/questions/3283234/http-basic-authentication-in-java-using-httpclient
Oh okay that is a pity.. Well thanks very much for your time and efforts!!
Maybe i get it to work, lets see
Because at least i know now what to search for
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk
OH MY GOD I JUST SOLVED IT!!
You have to do http://username:[email protected]/pw/mrekursiv.php
I actually was trying to find it out through digging into the aosp browser source, but then by googling up some classname that i found i got the solution xD
---------------------------------
Phone : Nexus 4
OS:
Pure KitKat 4.4.2 stock, no root, no mods
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

Reading an app's R class

Hey guys,
I have some kind of sophisticated problem:
For my current development project, I need to be able to list all resources an app has. As there is no native method I had two ideas in mind:
(1)Using aapt
(2)Using Reflection
As I don't know how to use aapt on android and think that it's to slow, I dont really want to do it.
The next idea is reflection pretty much loading the R class from the apk and iteration through it's inner classes (R$drawables etc.) and getting the fields.
Code:
String pathToApk = getPackageManager().getPackageInfo(packageid, 0).applicationInfo.sourceDir;
PathClassLoader pathClassLoader = new PathClassLoader(pathToApk, getClassLoader());
Class resClass = pathClassLoader.loadClass(packageid + ".R");
for (Class classObject: resClass.getDeclaredClasses()) {
for (Field field : classObject.getDeclaredFields()) {
//classObject.getName() is the type of resource
//field.getName() is the field
}
}
This works perfectly but it stops working once the apps are obfuscated. Is there a better way to do this? Or has anyone an idea how to spot the R class in obfuscated apps?
Thanks in advance
Well i dont think it would be a sign of good security within android if any normal app could read the clear names of variables etc from another app when this one is obfuscated, clearly with the aim of preventing others from reading those names. Maybe there is a way of doing so by using root permissions but i also think this could be hard, because the key to de-obfuscate an app is only stored on the owners dev computer..
---------------------------------
Phone : Nexus 4
OS :
- KitKat 4.4.4 stock
- Xposed: 58(app_process); 54(bridge)
- SU: SuperSU
- no custom recovery
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

Reader for my website

Hi,
I am Bart, I am 14 years old and I live in Belgium. For my blog I would like toe make a sort of Material Design styled RSS reader so people can read my blog on their mobile devices. My blog is about Android so I would like to make it only for Android users, but the problem is: I don't know anything about Java or C++ so I would like to ask if someone could help me building the app. (Or if he/she wants building it for me)
I hope someone would like to help me.
Thanks!
Bart
Have a look at github.com for an open source rss reader or use an app builder service
Gesendet von meinem LG-D855 mit Tapatalk
Appyet.com is such a service you could try
---------------------------------
Phone : Nexus 4
OS :
- KitKat 4.4.4 stock
- Xposed: 58(app_process); 54(bridge)
- SU: SuperSU
- no custom recovery
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

actionbar icons add on orientation change

Hey guys,
am using the actionbar in my application. when rotating the device, one of them is added right next to the first instance of it. performing multiple orientation results in having a bunch of these icons right next to each other.
Do you might know why?
I'm using the navigation drawer and used the official tutorial to do that and a base activity to spread it accross my application. Only the visible icon is multiplied, so none of the ones hidden.
If any additional information is needed, let me know asap! I will post it but I am not sure what it might be, thus not doing it right now.
Bests,
mcmardy
Well what i would do, i would create a different menu.xml for landscape mode which contains one item more than the other one
---------------------------------
Phone : Nexus 4
OS :
- KitKat 4.4.4 stock
- Xposed: 58(app_process); 54(bridge)
- SU: SuperSU
- no custom recovery
---------------------------------
4d 61 73 72 65 70 75 73 20 66 74 77
Gesendet von Tapatalk

Categories

Resources