[Q] Learning .smali sintax - Android Q&A, Help & Troubleshooting

Hi i am an Android developer.
In the last few week I have started studying .smali syntax for optimize my app.
I have seen documents about dalvik opcodes.
But I have difficulty to edit my code, every time I use a register v0 or v1 my modified apply start but it crashes...
Anyone can link me where I can find info or docs about low level of this "programming language"?
I have difficulty to edit my code when I have to manipulate register because I don't recognize how register are allocated and how much register I can have...
Some additional info are appreciated.
Thanks

Related

Need help with starter app in eclipse

Hello,
I am very new to eclipse and java programming and I am attempting to create a simple soundboard as a starter project. I have already created my raw folders and have all my files in the correct folder. I have my main.xml setup and my layout prepared with the graphics icons etc. Just the last part I cannot figure out. In the properties for the button I have enabled the button to be clickable and enabled soundfx. My guess was I have to create a Onclick string and assign the sound file to the string and button. I am feeling kind of lost if anyone can help me out would be greatly appreciated.
Leigh G.

Editing smali code.

Hey you gurus out there. Any extra ordinary person out there? Help me edit some smali code to add the buttons in my rom.
I av added the resources to framework-res.apk added the images and added the necessary values in the strings.xml, public.xml. damn those files are hard to edit. I had to do vb.net application to scan available item ids. But wen it comes to editing the smali files it really hard for me. Would be happy if anyone help me out
Sent from my TECNO N3S

The purpose of DISABLE_DEXPREOPT?

I am offen confused with Dex Optimization details. Here are few details i know of.
Kindly correct me if i am wrong ? While exploring the source code, i found that package manager scanns all the external libraries, base frameworks, system packages, and vendor packages for dex optimization.
So, if i understand correct 'dex optimization' can be done both in compilation time and execution time.
Also, surfing in the internet, DISABLE_DEXPREOPT has an impact over this dex optimization when to be done?
Which one do i have to opt?
DISABLE_DEXPREOPT=true
[OR]
DISABLE_DEXOPT=false
while building with the below command
make TARGET=<> droid -j6
According to the source code, i understood if .odex is available as part of .jar or apk file, then it ignores dex optimization, while booting.
Kindly correct me if i am wong?. and suggest.

[Q] How to get the last update data from xml file?

I'm developing an application about alert earthquakes. The information I get from an XML file and I want every time the XML file is updated with a new earthquake, this notifies the phone, even if the application is closed. How I can know the last earthquake, if I have the following XML structure? Maybe with an array?
<markers>
<marker lat="-4.33" lng="-80.38" mg="3.8" z="10" fecha="2014/09/11 19:22:26" detalle="true"/>
<marker lat="-3.68" lng="-78.03" mg="3.9" z="10" fecha="2014/09/11 05:22:52" detalle="true"/>
<marker lat="0.91" lng="-78.47" mg="3.5" z="10" fecha="2014/09/11 03:53:45" detalle="true"/>
</markers>

Parcing from xml or mysql (your recomendation)

Hi programmer,
I would like to do quiz application for android. i need you suggestions to do proper appl.
Let me generally explain what I would like to do:
• first page will be school subjects like biology physic and so on
• after will be quizzes packages
• and after selecting one of then it will start checking knowledge by showing question and 4 answers
generally it will be so.
My question is what is recommended to use parsing all data from xml or MYSQL DB from server OR add data to local SD card?
What is secure?
thanks in advance

Categories

Resources