Ok so I'm doing a tutorial kind of just a simple text field button thing.. I'm doing this in the activity_main.xml...
Now its telling me top add some code to MainActivity to add activity for when the user clicks the button... then it tells me to open the main.xlm... idk where MainActivity class is ... the main.xlm or am I suppose to add them myself?...
Sent from my Dark Jelly Belly using xda app-developers app
Related
Hi all can a make a request for some one to make me a simple apk to add a icon to the app drawer and launch a activity I dont want the app to have a ui I just need it to launch a activity. This will be for a custom ROM. This is a script that would do the same thing.
am start -n com.authentec.TrueSuiteMobile/com.authentec.TrueSuiteMobile.NavigationConfiguration
Also could the app be named Finger navigation. Thanks
Sent from my MB860 using
some apps dont go into the app drawer basically I know I can just make a shortcut on the desktop to the selected activity but I would like a installable apk that launches the above activity from the app drawer not as a shortcut on the desktop. If any one can make this I will be very greatfull.
The activity is a selected page in a motorola app that moto decided to hide from us.
Sent from my MB860 using Tapatalk
Please delete.
Sent from my chameleonized SGS2 using my brain.
I've recently been messing with the automatic backlight option and the display values under the power widget brightness button. My question is "is there any way to change the values that the power widget looks at rather than the default values it shows (ie. Auto, Dim, 25%, 50%, etc.)?" I've been through the build.prop but I don't see anything so I'm assuming its a framework edit? Any insight would be helpful. Thanks
Sent from my MB855 using xda premium
The images for the power widget are in the settings.apk. except for the actual icon, all the rest are .9 pngs
Sent from my Motorola Sunfire using XDA premium
pgriffinsc said:
The images for the power widget are in the settings.apk. except for the actual icon, all the rest are .9 pngs
Sent from my Motorola Sunfire using XDA premium
Click to expand...
Click to collapse
No, I'm asking about the actual value that the power widget brightness input looks at. So when I tap it instead of it jumping from dim to 25%, 50%, 75%, or 100%, is it feasible to change those values threw a back door? For example, I typically set the dim value to 10 under automatic backlight settings and leave the phone on the dim setting all day to save battery. But this is to bright at night so I have to go in and change the dim setting to 1 and then my screen is perfect. My intentions are to change the value of the steps up just like you are able to do under the automatic backlight settings in cyanogen settings. These values are not percents but rather an integer between 1-255, 1 being very dim(1%) to 255 being the brightest possible(100%).
Please let me know if anymore information is needed to clarify my intentions. Thanks
Sent from my MB855 using xda premium
I imagine an XML file in the settings.apk. you'll probably have to decompile it with apltool
Sent from my Motorola Sunfire using XDA premium
It's in the brightnessbutton.java in the frameworks/base/packages/systemui....
You add more values and define them. Like 50% is in the arrays/strings.xml.
I n the brightnessbutton.java is:
private static final int MID_BACKLIGHT = (int) (MAX_BACKLIGHT * 0.5f);
There's 5 settings already, but you can add or redefine 0.5f value.
cougarcougar said:
It's in the brightnessbutton.java in the frameworks/base/packages/systemui....
You add more values and define them. Like 50% is in the arrays/strings.xml.
I n the brightnessbutton.java is:
private static final int MID_BACKLIGHT = (int) (MAX_BACKLIGHT * 0.5f);
There's 5 settings already, but you can add or redefine 0.5f value.
Click to expand...
Click to collapse
And what tools do I need to edit these? Link preferred as I've tried finding many and am somewhat confused
Sent from my MB855 using xda premium
My way is done by building from source. I'm not too sure if you can from decompiling.
cougarcougar said:
My way is done by building from source. I'm not too sure if you can from decompiling.
Click to expand...
Click to collapse
Whatever method is used, could you lend a helping hand to the tools you use? I want to start writing my own gingerbread since its the most stable of all the operating systems on our phones and I figure starting with something simple like this could get me in the door
Sent from my MB855 using xda premium
Any input? I downloaded the sdk and have been going through the classes bit this just seems to utilize apks...again any input on the methods used to edit these files or the programs used would be great
Sent from my MB855 using xda premium
I want to be able to copy something on my screen using the S Penn, you know like when you draw a circle around something and it copies to your clipboard. And then I want to paste it into my message my gmail app . This possible? Sorry for the poor grammar the voice to text is not working too well right now.
Sent from my SCH-I605 using xda app-developers app
Just add an attachment to your email it should be saved under your screenshots
Sent from my SCH-I605 using xda premium
st3ady said:
I want to be able to copy something on my screen using the S Penn, you know like when you draw a circle around something and it copies to your clipboard. And then I want to paste it into my message my gmail app . This possible? Sorry for the poor grammar the voice to text is not working too well right now.
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
Haven't really tried it much yet but I press the s-pen button and hold it, circle the object and it copy's to clipboard in gallery under screenshots. I can find it in the gallery and when long pressing the image I can choose the messaging, gmail etc. icon and send it in text, or while in text I can tap the paperclip and find it in gallery.
Hope that makes sense and I didn't read your question wrong.
Happy Holidays
That helps, thanks for that. In gmail on the PC you can just do ctrl v while you are typing your message and it will show the image in the message Instead of down below as an attachment. Any way to do that? If not, no big deal.
Happy holidays to you too
Sent from my SCH-I605 using xda app-developers app
st3ady said:
That helps, thanks for that. In gmail on the PC you can just do ctrl v while you are typing your message and it will show the image in the message Instead of down below as an attachment. Any way to do that? If not, no big deal.
Happy holidays to you too
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
cool!
Haven't had mine hooked up yet to the PC since mine is a dinosaur (PC that is!)
I doubt the N2 will allow you to do the same as on your PC, but if it can I'm sure someone will chime in. Still should show though as the actual pic instead of an attachment that you have to open on the N2
Peace!!
Hey guys, I updated to JB (Slick Rom not AT&T stock), downloaded Google Now (Google Search) from play store and I really enjoy using it. But whenever I get "next appointment card" telling me to leave for an appointment, it's based off of driving direction, is it possible to change it to public transportation which is what I use most of the time?
Speaking of the usefulness of that card, wouldn't it be awesome if we're able to choose transportation mode (driving, public transport, biking, walking) when setting up an appointment in Google calendar, Google Now then shows you the travel time from the chosen transportation mode?
Look around the Google maps navigation settings. Not sure if it'll stick to Google Now
Sent from my Nexus 4 using xda app-developers app
Open up Google now and tap the question mark icon in the corner and I think the option is in there.
Sent from my LG-E970 using xda premium
That is for the traffic card where tapping the icon on the upper right corner expands transportation mode. Nothing for the appointment card though.
Joecascio2000 said:
Open up Google now and tap the question mark icon in the corner and I think the option is in there.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
mickey4mice said:
That is for the traffic card where tapping the icon on the upper right corner expands transportation mode. Nothing for the appointment card though.
Click to expand...
Click to collapse
Oh shoot. Sorry. I knew I saw that option somewhere though, just the wrong card.
Sent from my LG-E970 using xda premium
no worries, it's all confusing lol. I wish they'd implement the same for appointment. or even better, what I said in the opening post
Joecascio2000 said:
Oh shoot. Sorry. I knew I saw that option somewhere though, just the wrong card.
Sent from my LG-E970 using xda premium
Click to expand...
Click to collapse
I'm having trouble with copy and paste. When I'm writing text I do the usual long press to select but instead of copy it shows the magnifying glass. Never had this trouble on any other android device. Am I doing something wrong, is there another way to copy text?
Double tap the word you wanna copy, then it will mark the word and you can extend the selection to whatever you need.
Sent from my SGP511 using XDA Premium 4 mobile app
hillbicks said:
Double tap the word you wanna copy, then it will mark the word and you can extend the selection to whatever you need.
Sent from my SGP511 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Ah double tap, so simple! That was driving me crazy lol. Thanks buddy