I am modifing the code created by another guy. For example, when I see:
Code:
myButton = (Button)findViewById(android.R.id.button);
How can I locate the real button location in the layout, without checking the id of each item in all layouts manually? It is because the app that I am modifying has many layouts file and View.
Thank you.
Try doing this, click and highlight the id, myButton = (Button)findViewById(android.R.id.button); and then right click, scroll to "go to" and then declaration, that should take you to the id in layout in xml file.
You can look for the ”Inflate”, it will tell you which layout were used.
in the xml file try to locate the button that you want to change the id
android:id="buttonid"
Related
Hey guy, i know that there is a string inside a .lnk file, wich end by a number:
Changing this number i am able to change the icon (based by icon library index).
Now i've created an igo- Mortscript related file: its icon obiouvsly is the mortscript icon.
Can i change it to the Igo icon?
Put a question mark at the end of the path in the .lnk file.
Then put the path to the file you need, then a comma, followed by the number of the icon index.
Many thanx for the reply;
Here is the Igo8 Shortcut string:
40#"\Memorizzazione interna\iGO8\iGO8.exe"
Here is the shortcut to the script:
49#"\Memorizzazione interna\iGO8\igo8launcher.mscr"
....so the result is:
49#"\Memorizzazione interna\iGO8\igo8launcher.mscr"?"\Memorizzazione interna\iGO8\iGO8.exe",40
??
hahaha...i almost sent you to this:
http://forum.xda-developers.com/showthread.php?t=298165&highlight=menu+icons
Now i know why you've 753 posts...
however HERE is a GOOD tutorial
87#"\Memorizzazione interna\iGO8\igo8launcher.mscr"?\Memorizzazione interna\iGO8\igo8.exe,
This is the CORRECT shyntax
I want to add a new button background to framework-res.apk (not modify an existing one). I need to change the look of the clear notification button without modifying everything else that uses that background.
The clear button uses btn_default_small, so I made a copy of btn_default_small.xml, named it btn_default_small2.xml and in the status bar xml, pointed the clear button to btn_default_small2. (No editing at all. I'll make it look different later.)
This causes a boot loop.
I must be missing something. Any idea what?
I tried adding an entry for my new button to public.xml (do I need to do that?) using the next available ID. It still boot looped.
I get an interesting logcat message
W/ResourceType( 1683): getEntry failing because entryIndex 952 is beyond type entryCount 952
W/ResourceType( 1683): Failure getting entry for 0x010803b8 (t=7 e=952) in package 0: 0x80000001
Click to expand...
Click to collapse
There are 952 drawable entries in Public.xml, my new file is number 953. The next available ID is 0x010803b8. I don't know what package 0: 0x80000001 is. Is any of that even relevant?
I attached the logcat output. Please help.
To answer your question...adding is difficult.
- Baksmali Services.jar
- search there for your "btn_default_small".
- you will be surprised how many times you will see it there..(maybe 7 times ?)
now
- how often do you find "btn_default_small2" in Services.jar ??
If you can handle smali.files, cool!
I believe it´s easier to get the source and do it in Eclipse.
But maybe, anybody with more knowledge can explain this better here.
greets
Shizlak said:
I made a copy of btn_default_small.xml, named it btn_default_small2.xml and in the status bar xml, pointed the clear button to btn_default_small2. (No editing at all. I'll make it look different later.)
Click to expand...
Click to collapse
It does not know the new file btn_default_small2.xml exists (no id), Try recompiling using apktool. (you need to use the resource-only flag for framework-res)
Make sure you deploy the new jar while the OS is not running. (i.e. recovery)
britoso said:
It does not know the new file btn_default_small2.xml exists (no id), Try recompiling using apktool. (you need to use the resource-only flag for framework-res)
Make sure you deploy the new jar while the OS is not running. (i.e. recovery)
Click to expand...
Click to collapse
So you can add without touching services.jar?
can someone please run the product code checker from SGS Tools or SGS Toolbox and repost or pm me with the proper product code for the Rogers I896
i am guessing SGH-I896KZAROG
but just want to make sure
PS - if you have a proper product code in your nv_data file.
would greatly appreciate a 2nd favor.
-download Hex Editor free from Market.
-open hex editor
-use capacitive menu button to open options and select open file
-navigate to EFS folder and open nv_data.bin
-go back to menu using capacitive button and selection jump to address
-enter 0188000 (will take you to line 00188000 which is where we need to be)
the lines i am interested in will all be on screen: 00188000, 00188008, 00188010, 00188018, and 00188020
if you could please post the hex code for each line (to the immediate right of each line you will see 8 blocks of data in green text each containing two letters/two numbers/or combo of letter/#)
I need the data from each of the 8 blocks from those 5 lines.
if you could just cut and paste the lines below into response and provide the data black next to them for each line
00188000
00188008
00188010
00188018
00188020
How to create a setting app?Like storage check,Display,Glance and Extra+info
Go to programming courses and if you'll like it by the end of those you will know the answer.
How to create a setting app?
Click to expand...
Click to collapse
You can install any developer app (from the xap file) in the settings. In the: WMAppManifest.xml file, you have to add one string, in bellow line:
Code:
<App xmlns="" [COLOR=Red][B]HubType="268435456"[/B][/COLOR] ProductID=" blablabla .....
You have to add only: HubType="268435456" with spaces before and after string in the place like in the code.
For WP7.X that work.
Hello everyone!
I would like to share my simple-but useful,script!
What's that script?
This script is taking a colors.xml file which you select , and changes all the colors to the one you need.
How can that script be "useful"?
Sometimes when themers want to find out which color (i.e) affects the color of toolbar of an app,are searching in the colors.xml
Instead of searching all the colors.xml,i created that script which changes all the color values to one color of your choise.
This will make all the colors (i.e.) green.So compiling the theme will make you understand what is affected by colors.xml or styles.xml or or or...
Yes but...malware?
Source code
Also its compiled with AutohotKey.that means ,if u open the .exe as text file,there is all the source code there.
How to use it:
Download the zip and extract it.
Run the .exe
The script will do nothing until you press the 'F2' button.
Select the colors.xml you want.
Type the color you want.
Pressing ok ,will create a new modified xml at your desktop
Profit.
Pressing ESC in the operation will exit the script and will remove the produced folder at desktop
Give me some feedback,if that app is running on your computer because i use x64 windows 7