Description
Tool:
Android 4.2+, Jelly Bean, API level 17
I started android programming a couple of hours ago and I can set a random text, but the color don't changing (text and background, too). I use the same logic, what was right at the text modifying, but something went wrong.
Activity content
ColorWheel content
Okay, I tested on an AVD device, and it's working! I don't understand this.... my phone will be crash or stupid?? (I really care the correct API level, so I don't know what's the problem..)
But the point is the code is right.
Thanks for helping!
P.S.: next time i will use the code, not the picture.
Related
Hi I am currently developing a game for android on unity. (2d game)
I've been looking for answers everywhere since a week but still no answer ... So I decided to ask here.
Actually my problem might be very simple but I am new to Android development and I had no idea of how it was walking.
1 - I want the input field right at the top of the keyboard to be hidden, to put a custom input field made with unity UI system.
2 - Adjust keyboard's position (Only for like 50px from the bottom of the screen) so that i can put my stuffs in there.
I get that keyboard appears automatically when an InputField is focused or selected. But it dosen't make disappear the input field from the native keyboard.
From what I learned serching , I get wether I need to make plugin for unity or export my unity project to eclipse to do so.
But unfortunetly I have no base on java or xml.
I should really learn at least basic skills on these stuffs but for now I can't afford to spend time to learn from base.
What would be the most easy way ?
Hope someone can help me out.
Thank you !
Maybe you can change the input field to just text,
And when you click on the text, show your own keyboard ui.
This is an alternative solution I think.
I want to use the auto-color tool (photoshop, under Image tab) on the android.
Is their a way to implement this tool/option into android with code or does android already has this kind of option in a librabry?
So when I open a picture, then when I hit a button, it should use the auto-color on the image (ImageView).
Thanks for the help already
this is the problem:
I got a green scanner, it is a scanner that scans the pixels green, and then shows the % green that is on the image.
However when you take a picture of some grass when the sun is shining the app detects more green then you take one in the shadow, but in real, their is the same amount of green (grass).
And with the tool in photoshop (auto-color) it manipulates the "sun" really good, after few pictures (tests) the auto-color does it better then when I do it manually, so that is the reason I want to try to get this tool on the android somehow.
I didn't tried to implement auto-color in the android yet because I just don't if their is something like that. I now have 2 pictures (taken at same time, 1 in shadow and 1 in the sun) and I try to manipulate the one that I took in the sun, so it looks like the one taking in the shadow. So it gives (almost) the same amount of % green with my green scanner app.
PS, Mine Internet connection goes down now for few minutes, so I maybe won't see this post (answers) right-away
I'm not aware of any build-in way to do this on Android, so you'll probably have to do the algorithm yourself.
But, you could start off by getting inspired on how Gimp does it, by looking through the source code. Otherwise wikipedia has a good article on the subject - http://en.wikipedia.org/wiki/Color_balance
I had many objects using px. I changed everything in my app to dp and textsizes to sp. Now my app won't open. When I use the debugger and go step by step it does open and then displays this. I did not change any code from before when it was working, just the px. By the way, I am using tabHost and their should be 5 tabs on the bottom. It splits it into about 30. It is just very strange stuff going on. Do you know what is wrong and how to fix it?
Thank you.
This image is the error message:
This image is using the debugger.
Read about DDMS and logcat to obtain a stacktrace and to see what the problem is: http://developer.android.com/guide/developing/debugging/debugging-projects.html
This is what you are looking for:
Revert all sp and dp back to px, and make sure it works again. then start doing small incremental changes to isolate which UI element is causing the problem. When you find which one did it, look through your code to see if you're making any assumptions and calculations based on the size of that UI element.
I've been working with the Facebook Android SDK for the past couple days, and while I have been able to post to my wall, one thing still stumps me: How can I fill the wall post dialog with information from my app?
For example, say you had an app that recorded hiking distance. When I launched the stream.publish dialog, I would want the text area under "What's on your mind?" to say something like "[User] hiked [distance] miles" instead of being blank.
I looked through the two samples included in the SDK, but neither address this. Is there a way to do this?
Thanks in advance!
I'm assuming you publish an attachment like - parameters.putString("attachment", publishingAttachment())
To add a message, just add the following line - parameters.putString("message", messageString);
Here's my code:
AdsManagerOptions options = AdsManagerOptions.newInstance();
options.setMaxAdsOnMap(1);
AdsManager ads = AdsManager.newInstance(map, "google");
ads.setEnabled(true);
I tried doing this before the map is added to a panel, after a map is added to a panel, and any other way i could think of that could possibly make sense. My publisher id is "google" because I havent been approved for adsense yet, but ive tried taking a real publisher id and i got the same result.
What is confusing me a bit, is that the AdsManager isnt a widget, so I cant choose where i want to place it on the map. Ive read that this is actually how it works, but ive seen sites like http://mapper.acme.com/ where the ads are not in the typical bottom right corner.
Can someone PLEASE enlighten me on what I am doing wrong because this is driving me mad! Thanks!
I still have no answer. I am now trying with a legitimate publisher ID so I know that an invalid publisher id wasnt the reason for my frustrations. Anyone have any ideas?
Are you using firefox? If yes, do you have adblock on? Or any other adblocker on your browser?
Its also possible that the region you're looking at doesn't have any ads... Try zooming into a place like New York...