Q How to add modules to existing code - Java for Android App Development

Well, the topic I'd pretty much self explained but I'll try to be more specific...
I have written my own app and everything is great; I'm using Android Studio by the way... I want to implement ActionBarSherlock and other modules found in the 'net... Anyone knows how to do this? I've read through the guides and watched every video but all if them talk about Eclipse (obviously)...
Yes, Android Studio is young but IntelliJ IDEA isn't (that young, anyway)...
Besides, tried to learn by doing and/or adapt every guide to the new IDE, but no luck... And most guides suffer from the "curse of knowing", they skip essential steps for a newbie to follow and make everything work flawlessly...
So, I guess I've made my point and explained myself clearly... Can anybody lend a hand to a fellow coder?
Sent from my GT-S5830M using Tapatalk 2

I'm more or less in the same point as you. Have successfully written many lines of working code yet, no problems up to the point, but haven't been able to implement other people's code into my apps.
I suppose that it is just a matter of trial/error, but so many times I've tried and couldn't import a whole package into my own project (in eclipse, by the way).
Some kind of generic guide would be amazing!
Enviado desde mi GT-N7000 usando Tapatalk 2

Hai guys i dont know about Android Studio.. But i know very well about how to do this in eclipse..
Please state what u tried and what error actually u facing..
Once i downloaded the Android Studio.. i will post here with the detailed Steps to do that...

This guide works: http://android-wtf.com/2012/09/how-to-configure-actionbarsherlock-with-intellij-idea/

Thanks @nikwen will try it later today...
Sent from my GT-S5830M using Tapatalk 2

nikwen said:
This guide works: http://android-wtf.com/2012/09/how-to-configure-actionbarsherlock-with-intellij-idea/
Click to expand...
Click to collapse
Followed the guide you provided and I get build errors... Took a screenshot... Help please?

Related

Where's rooting 101?

There has to be a guide somewhere for those of us that have no idea how to get rooting done. Toast, Unrevoked..Geez! Where do you begin?
I am a convert from winmo so this is all new to me...I am fairly clear with Toast's instructions, but a video or pic tutorial would be greatly appreciated. I did some moderate reading on this, and would still feel far more comfortable "seeing" it done!
EVOme said:
Where do you begin?
Click to expand...
Click to collapse
you begin with the post entitled "{tutorial} how to root \0/" in the Android Dev section. i'd post a link, but i'm a lowly new user.
looks like windows adb utils are included in the evo-recovery zip, i'm on linux and had the android sdk installed anyway.
Adb is in the android sdk.
Follow the instructions in the tutorial in dev section.
Cmon guys work a little for it.
-------------------------------------
Sent via the XDA Tapatalk App
i think folks who are new to this need a guide to all the acronyms floating around. i mean how many new users konw what "adb" is? its Android Debugging Bridge...
there just needs to be a fundamental guide.. nuts and bolts.. to get people in tune with the process THEN they can start the actual root sequence...
marctronixx said:
i think folks who are new to this need a guide to all the acronyms floating around. i mean how many new users konw what "adb" is? its Android Debugging Bridge...
there just needs to be a fundamental guide.. nuts and bolts.. to get people in tune with the process THEN they can start the actual root sequence...
Click to expand...
Click to collapse
There are really tons of stuff, you just need to search in the development section.
Anything worth doing takes effort. All the answers are around if you look. Not trying to sound snarky or elitist but just like you I had to spend time looking for my answers.
-------------------------------------
Sent via the XDA Tapatalk app
Ask and you shall get.
Here is a video of doing the whole root process. link
The guy has a site here is the link.
See the rooting link in my signature.

Request for the Chefs, I was stuck at Creating a Rom using Kitchen. Please Assist me

Sorry to create a new thread, If this was the wrong place to post this, move this
First of all I Thank you XDA and all developers for making HD2 to run Android
Hi! I am using Android on my mobile from the last 6months and I am trying to cook a build on my own. Don't know how to do that.
Thank God! Yesterday I saw this,http://forum.xda-developers.com/showthread.php?t=633246
Trying to work on this, I am looking for a best Glacier Sense, I downloaded the test file of the RCS team and used it with the Kitchen. I made couple of modifications. I changed the kernel to rafpigna's along with modules and initrd.gz file from your your build and repacked the ZIP. No errors but after converting the Update-script to Updater-script at the end, It showed me a message saying that I need to do some modifications in the following statements in updater-script depending on the device.
format("MTD", "userdata");
mount("MTD", "userdata", "???");
format("MTD", "boot");
format("MTD", "system");
mount("MTD", "system", "/system");
I am a noob in this kind of programming and ignored it. Finally I tried to flash the build using CWM, it shows me no error message but stucked at 'Installing from Zip'
So, again I tried to change those lines and copied those lines from Imilka's glacier build. Now I got an improvement, while flashing my zip through CWM it shows the message Installation aborted.
Now I can't do anything. What modifications should I need to do?
Anyone Please Help me!
Now I tested my build again, enabling Signature verification. It displays the error
Installation aborted
Toggle signature verification failed
I hope some one will point me to a correct direction,
oh .. you making roms .... good luck friend
a bit different from our syntax but sure will help you
http://forum.xda-developers.com/showthread.php?t=641223
just experiment yourself, hundreds of times if necessary, this is the first "quality" needed to cook a build, no one will give you ready answers or solutions. I remember I flashed my first build about 80 times before I got it working...
p.s.
dont use a kitchen.. they are supposed to work with native androids, this can cause some "issues" specially in the updater script
Thank you! I will try using normal method for cooking. If you don't mind can I PM you for some assistance on my doubts.
I don't think its possible for a noob like me with out someone's assistance.
Sent from my HTC HD2 using XDA App
sathara said:
oh .. you making roms .... good luck friend
Click to expand...
Click to collapse
Thank-you! Just started learning.
Sent from my HTC HD2 using XDA App
shree.cse said:
Thank you! I will try using normal method for cooking. If you don't mind can I PM you for some assistance on my doubts.
I don't think its possible for a noob like me with out someone's assistance.
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
I booted my first working build without any assistance apart the domineus thread, Yes it's possible.. you have just to be no lazy and dont want to do all things in short time. Google and XDA have 90% of answers you may need. Also you have to understand how android works "behind", or you will never be able to do "tweaks" or understand how fix things. Google android project home page is a good point to start. And remember to use android sdk and ddms always to see what's going on. Last thing, but not least, you have to use and understand a bit linux, this will help you a lot specially with debugging. About PM sorry I really have no time to reply. You can try on IRC chat when I am there or others can give you some hints
rafpigna said:
I booted my first working build without any assistance apart the domineus thread, Yes it's possible.. you have just to be no lazy and dont want to do all things in short time. Google and XDA have 90% of answers you may need. Also you have to understand how android works "behind", or you will never be able to do "tweaks" or understand how fix things. Google android project home page is a good point to start. And remember to use android sdk and ddms always to see what's going on. Last thing, but not least, you have to use and understand a bit linux, this will help you a lot specially with debugging. About PM sorry I really have no time to reply. You can try on IRC chat when I am there or others can give you some hints
Click to expand...
Click to collapse
Sure! Thanks again. I will start doing things
Sent from my HTC HD2 using XDA App
Its good to flash a friend made rom .. i tried for android development but this job s killing me ..
sathara said:
Its good to flash a friend made rom .. i tried for android development but this job s killing me ..
Click to expand...
Click to collapse
Good, but the first thing I need build yet. I saw your location as kerala now, Is that the place where u work now? Anyway I have a tester. That's u.
Thanks
Sent from my HTC HD2 using XDA App
rafpigna said:
dont use a kitchen.. they are supposed to work with native androids, this can cause some "issues" specially in the updater script
Click to expand...
Click to collapse
A kitchen is a good place to start for people just learning how to 'cook' or create a custom ROM, who don't want to learn all the technical details right off the bat. Updater-script issues are few, but these are also part of the learning process for aspiring cooks.
I've actually updated the Android Kitchen recently so that it will work with HD2 NAND ROMs. We did have at least one guy who successfully flashed his HD2 with the Android Kitchen. If we can get more people trying it out then it will help towards improving the kitchen
Anyways Shree - if you have any bug reports for the kitchen please report in the kitchen thread.. thanks!
dsixda said:
A kitchen is a good place to start for people just learning how to 'cook' or create a custom ROM, who don't want to learn all the technical details right off the bat. Updater-script issues are few, but these are also part of the learning process for aspiring cooks.
I've actually updated the Android Kitchen recently so that it will work with HD2 NAND ROMs. We did have at least one guy who successfully flashed his HD2 with the Android Kitchen. If we can get more people trying it out then it will help towards improving the kitchen
Anyways Shree - if you have any bug reports for the kitchen please report in the kitchen thread.. thanks!
Click to expand...
Click to collapse
I don't think that's the problem with the kitchen. The updated version is really good. But I feel that the updater-script has some thing to change. I am learning about that. If everything in my script was correct, then it might be your turn to make HD2 compatible with Kitchen. After all, I feel that this kitchen is not completely compatible with Non-native Android devices HD2.
Thanks for your support. You did your best to help me, but its my noobness to be blamed as I failed again and again.
Anyway, I learning to know how things are happening in an Android build
Sent from my HTC HD2 using XDA App
dsixda said:
A kitchen is a good place to start for people just learning how to 'cook' or create a custom ROM, who don't want to learn all the technical details right off the bat. Updater-script issues are few, but these are also part of the learning process for aspiring cooks.
I've actually updated the Android Kitchen recently so that it will work with HD2 NAND ROMs. We did have at least one guy who successfully flashed his HD2 with the Android Kitchen. If we can get more people trying it out then it will help towards improving the kitchen
Anyways Shree - if you have any bug reports for the kitchen please report in the kitchen thread.. thanks!
Click to expand...
Click to collapse
this is a great news. I used your kitchen about in november to deodex my build but I had issues with sense hd so I moved to deodex mysefl manually. I will sure try out when I will have time and I will report to your thread for feedback
shree.cse said:
I don't think that's the problem with the kitchen. The updated version is really good. But I feel that the updater-script has some thing to change. I am learning about that. If everything in my script was correct, then it might be your turn to make HD2 compatible with Kitchen. After all, I feel that this kitchen is not completely compatible with Non-native Android devices HD2.
Thanks for your support. You did your best to help me, but its my noobness to be blamed as I failed again and again.
Anyway, I learning to know how things are happening in an Android build
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Download another working cwr rom and compare the scripts to see the differences.
rafpigna said:
Download another working cwr rom and compare the scripts to see the differences.
Click to expand...
Click to collapse
I already did that with imilka's Glacier sense build. As I use the base from RCS team's touch build as Imilka did. Can't find any difference. Thank you for keeping an eye on me!
rafpigna said:
this is a great news. I used your kitchen about in november to deodex my build but I had issues with sense hd so I moved to deodex mysefl manually. I will sure try out when I will have time and I will report to your thread for feedback
Click to expand...
Click to collapse
The kitchen was updated a couple of weeks ago to support fully deodexing the Desire HD ROMs - is that the one you mean?
shree.cse said:
I already did that with imilka's Glacier sense build. As I use the base from RCS team's touch build as Imilka did. Can't find any difference. Thank you for keeping an eye on me!
Click to expand...
Click to collapse
Shree.. look for a program called Beyond Compare to do diffs between the original updater-script and the one that the kitchen generates in the end. The kitchen so far does a pretty good conversion to update-script and back to updater-script.
dsixda said:
Shree.. look for a program called Beyond Compare to do diffs between the original updater-script and the one that the kitchen generates in the end. The kitchen so far does a pretty good conversion to update-script and back to updater-script.
Click to expand...
Click to collapse
I didn't understood anything, what shall I do now. I did PM to the person you suggested earlier, I didn't got any response.from him, I am waiting, can't do anything now.
Thank-you
Sent from my HTC HD2 using XDA App

[ INFO ] Links to Get you Started Working with Android

Ok so I've gotten a few ( quite a few ) PM's about wanting to get started doing some " Dev " type stuff. Since I'm not the even close to the being able to teach . I'll do the next best thing I can. I'll Link you guys to Guides, Tools, and anything I can think of that you may need to get going in the right direction. Just remember READ, READ, and READ some more. Don't be afraid to use the search feature . Oh and BTW this is just the ones I know of, and can think of right now ( It's been a long day ). If anyone else knows of any feel free to post up. I know I'm forgetting stuff. I'll change the OP as it needs to be adjusted.
One last thing. Although by all means I encourage you hitting the THANKS Button for the Links . I would also remind you to hit the THANKS Button for the authors of the Guides Linked. They put a lot of work and Effort into them, and I'm sure they would appreciate it .
Thank you Gentleman for the suggestions and Additions to the Links. It is much Appreciated.
A Chronicled History of Android Operating System
Android Terms, Slang & Definitions
ADB Workshop and Guide for everyone
What Is ClockworkMod Recovery And How To Use It On Android
Noob Guide To Set File Permission's
How To Use Titanium Backup For Android
Noob Guide To Set File Permission's
How To Logcat
Android CPU governors explained
SetCpu guide on how to use
dsixda's Android Kitchen
TUT for NOOB editing updater-script for noobs!
Beginners Guide to Android ROM Development
How to use Apktool Apk manager Baksmali and Adb
Android Utility - [apktool|dex2jar|smali|more][Mac & Linux]
Jar/Apk baksmali smali compiler and decompiler
Better Draw9patch Program
UOT ( Ultimate Online Theme Kitchen )
Building Your First Kernel
APKtool
M10 Tools
M10 Virtuous Ten Studio
APK Manager
Much appreciated. I'm nowhere ready to start on any significant dev work, but i'd like to try my hand at it after the first of the year. I know the basic basic basic basics of programming in general and i can follow logic well enough, its just time consuming to sit down and actually try it out. But i absolutely love the shift and would love to see things continue with it.
nice collection you got going on there prboy, im sure a lot of people will find this very helpful
Just trying to help out .
I would also link to baksmali & dot9 compiler, don't have links handy right now since I'm at work
Sent from my HTC Evo Shift using xda app-developers app
BigSplit said:
I would also link to baksmali & dot9 compiler, don't have links handy right now since I'm at work
Sent from my HTC Evo Shift using xda app-developers app
Click to expand...
Click to collapse
Thanks . Added them to the OP. But if you know of better ones, let me know .
Looks really good prboy!
This should help noobs like myself get started
Sent from my PG06100 using xda premium
prboy1969 said:
Thanks . Added them to the OP. But if you know of better ones, let me know .
Click to expand...
Click to collapse
The best Linux tool I've used is by Tommytomatoe called android-utility and I'm almost sure there is a mac version.
Has adb functions to push and pull,a logcat function uhm will do apks and jar files.
Another Linux tool I've tried was something along the lines of studio android and the last I checked that tool would set ones Linux box up to compile from source in a gui I'm guessing something like lithids.
Maybe a Windows tool to have would be win merge if it let's you compare text files and directory's to see what's different
Sent from my miTouch-4G-Slide using Tapatalk 2
Kool . I was thinking about TT's Android Utility. Will add it to the OP.
EDIT : Added
TEAM MiK
MikROMs Since 3/13/11
Here's a noobs guid to file permissions I've used. http://forum.xda-developers.com/showthread.php?t=1857648 maybe it can be useful.
Sent from my PG06100 using xda premium
Chad The Pathfinder said:
Here's a noobs guid to file permissions I've used. http://forum.xda-developers.com/showthread.php?t=1857648 maybe it can be useful.
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Added . Thanks.
Bumpity bump.
--
If I have helped you in ANY way, feel free NOT to hit the thanks button
Found a good one for n00bs. Like me
http://forum.xda-developers.com/showthread.php?t=1459945
Here's another good one. http://forum.xda-developers.com/showthread.php?t=1931585
Thanks guys . Will add those later tonight.
TEAM MiK
MikROMs Since 3/13/11
Updated links in the OP . Thank you gentleman for the Additions.
Here's another updater-script and Edify guide
http://forum.xda-developers.com/showthread.php?t=1265120
Sent from my PG06100 using xda premium
Thanks cnexus for this. I've been wanting to figure a few things out about updater scripts. I'll be reading this later when I have some time.
Chad The Pathfinder said:
Thanks cnexus for this. I've been wanting to figure a few things out about updater scripts. I'll be reading this later when I have some time.
Click to expand...
Click to collapse
No problem, I found it through xda-university
Sent from my PG06100 using xda premium
CNexus said:
No problem, I found it through xda-university
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Yeah that is a pretty nifty site. I think noobs should have to go through it before posting in the development section lol

[Q] How to compile one of my SGY stock rom?

The thing is I want to create my own custom rom but not such as I want to do is decompile / disassemble a rom, and try not to use linux but I could not, and therefore I am very determined and want to do my rom .
I would like to help me as hacerlo.Tambien try copying system files, as is the sytem folder but when I flash the rom failed.
And I hope you can help me greetings and congratulations to all xda developers above.
end​
1st- learn the basics of android
2nd- if you use windows, search for dxiaxda's kitchen
3rd- follow instructions from there,
pretty much that,
you must learn it yourself since learning is understanding,
and understanding is the beginning of learning
Compiling Is the wrong word mate. I had created a howto long back, search for it
Sent from my HTC Desire X using xda app-developers app
Thanks for answering
deathnotice01 said:
1st- learn the basics of android
2nd- if you use windows, search for dxiaxda's kitchen
3rd- follow instructions from there,
pretty much that,
you must learn it yourself since learning is understanding,
and understanding is the beginning of learning
Click to expand...
Click to collapse
Hello apology, this looks bad things translated. Well friend I want to do is remove the rom are those installed by odin, already the basics but that's what I could do please help me friend want quick learner.
:crying:

Xperia Z3+ Current Root Status for Noobs

Hello All,
With all the chatters about rooting available for both Xperia z3+ dual and single sim, I thought it would be appropriate to start a thread where noobs may be able to get information regarding the root status of the phone.
Can someone please explain to me (and other noobs, if there are any,) what is the current status? I'm particular interested in the E6533 Dual Sim version with Build Number 32.1.A.1.185. since that is the model of my phone. If there is a tutorial I would be forever grateful if someone can be kind enough to link it here. Thank you all so much, this community is awesome!
I have that phon
I have that phon and I try all rooted kernels but mobile hangs and random reboot I return it to factory reset by flashboot and work some time good then make reboot it seems the developers don't work on dual sim phone sorry for my bad English
So essentially no root for the dual sim? :'(
That would be great if someone writes some "How-to..." Root and Backup and wth are those "different partitions", i think you should backup some of them before doing anything else. I am not a beginner with Android and Rooting and so on, but i come from HTC and this is my first Sony Phone and its really different. I know that there are severall Threads about this, but all the informations are split into a dozend threads and if you are a beginner with Sony its really hard to understand what is the "actually" best you can do.
Great topic, I would also like to know how to. Dont want to lose some goodies such as the excellent noise cancelation and the cameras many functions
Guys, that topic we have already had a number of times. Please use the search function and find (also for the Dual-SIM):
http://forum.xda-developers.com/showpost.php?p=66410444&postcount=5
sxtester said:
Guys, that topic we have already had a number of times. Please use the search function and find (also for the Dual-SIM):
http://forum.xda-developers.com/showpost.php?p=66410444&postcount=5
Click to expand...
Click to collapse
That is basically the problem. These "tutorials" are hidden in several threads and not visible to everybody. Of course you can use the search function and it's highly encouraged to do that. But at the same time we need somebody that has successfully rooted this phone to write a proper decently up-to-date "how to" thread so that everybody knows that they can find the necessary steps to root/backup/etc. their device successfully. Although, OP says noob friendly, I think it's also enough if anyone can follow the steps without hassle and getting lost quickly (understandable = decent English). I mean, I don't force anybody to do this, but it would be highly appreciated by many other users if somebody could take the time to create it.
Gesendet von meinem SGP611 mit Tapatalk
ChiDi9901 said:
That is basically the problem. These "tutorials" are hidden in several threads and not visible to everybody. Of course you can use the search function and it's highly encouraged to do that. But at the same time we need somebody that has successfully rooted this phone to write a proper decently up-to-date "how to" thread so that everybody knows that they can find the necessary steps to root/backup/etc. their device successfully. Although, OP says noob friendly, I think it's also enough if anyone can follow the steps without hassle and getting lost quickly (understandable = decent English). I mean, I don't force anybody to do this, but it would be highly appreciated by many other users if somebody could take the time to create it.
Click to expand...
Click to collapse
Again, it does already exist but yes, a little bit of effort is required. Just follow...
Step 1:
http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
Step 2:
http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
Easy enough?
sxtester said:
Again, it does already exist but yes, a little bit of effort is required. Just follow...
Step 1:
http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
Step 2:
http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
Easy enough?
Click to expand...
Click to collapse
So step one doesnt work, it says device not working.
Would appreciate it too if someone could make an easier tutorial. but i guess the support for z3+ is just not there.
ninjaijutsu said:
So step one doesnt work, it says device not working.
Would appreciate it too if someone could make an easier tutorial. but i guess the support for z3+ is just not there.
Click to expand...
Click to collapse
ChiDi9901 said:
That is basically the problem. These "tutorials" are hidden in several threads and not visible to everybody. Of course you can use the search function and it's highly encouraged to do that. But at the same time we need somebody that has successfully rooted this phone to write a proper decently up-to-date "how to" thread so that everybody knows that they can find the necessary steps to root/backup/etc. their device successfully. Although, OP says noob friendly, I think it's also enough if anyone can follow the steps without hassle and getting lost quickly (understandable = decent English). I mean, I don't force anybody to do this, but it would be highly appreciated by many other users if somebody could take the time to create it.
Gesendet von meinem SGP611 mit Tapatalk
Click to expand...
Click to collapse
Trilliard said:
That would be great if someone writes some "How-to..." Root and Backup and wth are those "different partitions", i think you should backup some of them before doing anything else. I am not a beginner with Android and Rooting and so on, but i come from HTC and this is my first Sony Phone and its really different. I know that there are severall Threads about this, but all the informations are split into a dozend threads and if you are a beginner with Sony its really hard to understand what is the "actually" best you can do.
Click to expand...
Click to collapse
hady2010 said:
I have that phon and I try all rooted kernels but mobile hangs and random reboot I return it to factory reset by flashboot and work some time good then make reboot it seems the developers don't work on dual sim phone sorry for my bad English
Click to expand...
Click to collapse
projectseahorse said:
Hello All,
With all the chatters about rooting available for both Xperia z3+ dual and single sim, I thought it would be appropriate to start a thread where noobs may be able to get information regarding the root status of the phone.
Can someone please explain to me (and other noobs, if there are any,) what is the current status? I'm particular interested in the E6533 Dual Sim version with Build Number 32.1.A.1.185. since that is the model of my phone. If there is a tutorial I would be forever grateful if someone can be kind enough to link it here. Thank you all so much, this community is awesome!
Click to expand...
Click to collapse
I have successfully rooted the phone with TA backup, recovery and root for a few weeks now and I have zero problems. I wrote a guide for tablet z4 in its general forum. The procedure is a bit different for z3+. If there is a need for it and I have time today I will do the same for this phone and post it in the general forum.
I posted a complete guide in the general forum.
najoor said:
I have successfully rooted the phone with TA backup, recovery and root for a few weeks now and I have zero problems. I wrote a guide for tablet z4 in its general forum. The procedure is a bit different for z3+. If there is a need for it and I have time today I will do the same for this phone and post it in the general forum.
Click to expand...
Click to collapse
Is it because I have marshmallow? I tried again and it won't work
Sent from my E6553 using XDA-Developers mobile app
ninjaijutsu said:
Is it because I have marshmallow? I tried again and it won't work
Sent from my E6553 using XDA-Developers mobile app
Click to expand...
Click to collapse
That is correct. Please follow my guide exactly as it is outlined in http://forum.xda-developers.com/xperia-z4/general/guide-safe-bootloader-unlock-restore-t3386915
I have "bootloader unlock allowed : No", it's keep "No" even i deactive that "My Xperia" application, do i need remove google account in setting ( i mean android account) ?
p/s : sorry for bad english

Categories

Resources