Getting started, inspecting existing code. - Android Studio

Hi, guys.
Android Studio newbie here. I'm a loooong time Linux user/ sys admin, but have just downloaded Android Studio. My motivation for doing so, was to give an existing (neglected) open source app a once over, ideally with a Linter, some code quality checking and maybe refactoring. Essentially, bringing it up to current Android standards. I've installed AS on my Linux Mint box, and have added the GitHub repository. I can see the code, and lint options in the menus, but don't know where to start. Does anyone know of a flowchart, or process I could follow?
Many thanks,
Chris

Related

Learning...

Where should i start first to learn how to code for android, make roms and compile the android tree?
or just a good place to start?
From what starting point?
Building android to make custom builds involves knowing lots of things; java, c, linux, gcc build system, android platform, etc, etc.
To make apps you just need to know java and the android platform.
Start here: http://developer.android.com/
Code for Home screen Pull up Menu
I have a similar request but was unsure if I should start a new thread, If this needs to be moved my apologies (I also searched through Q&A forums as well and came up empty ). Where or how could I get the source code for the Home Screen pull up menu? I checked out the Google Source Code but it requires Linux or Mac OS and I run Windows Vista.
cingall said:
I have a similar request but was unsure if I should start a new thread, If this needs to be moved my apologies (I also searched through Q&A forums as well and came up empty ). Where or how could I get the source code for the Home Screen pull up menu? I checked out the Google Source Code but it requires Linux or Mac OS and I run Windows Vista.
Click to expand...
Click to collapse
i don't think you can compile the source code in windows
david1171 said:
i don't think you can compile the source code in windows
Click to expand...
Click to collapse
Yeah, I'm considering running Linux on my laptop alongside Vista, as I have hit dead-ends on a couple projects simply because you need Linux for different things . All I really need is a place that I could find the source; I had an idea that I proposed to mohsinkhan47 for his Vista theme and he asked me to find the code for the pullup menu. It would be much appreciated if anyone could guide me in the right direction.
i know where you can get the entire source code. grab it from here
Thanks for the link, that was the site that I went too before but says I need either Linux or Mac OS. Still scouring the android sites but coming up with nothing .
Yeah I do not think there is a way to compile the source in windows. I guess like stericson once said "you're going to have to get your hands dirty and use linux" (it was something like that.
Guess I gotta break my cherry sometime, thanks all for the advice.

[DEV] Set up CM in Eclipse

Can someone please explain how to set up CM on my PC so that I can run in an emulator and do some dev? Preferrably using Eclipse IDE.
Thanks!
Nexus One
CM 5.0.5.3
Yeah great post! I'm also looking forward to start dev'ing.
Did you already set up the Android SDK?
Yup. Android SDK is set up.
I just read [source.android.com/download] that you can't compile the Android source on Windows. That basically kills it for me at this time until I get my hands on a non-Windows machine.
Basically, I want to make changes to webkit for adding Arabic support. Can this be done without the above requirement?
daiski said:
Yup. Android SDK is set up.
I just read [source.android.com/download] that you can't compile the Android source on Windows. That basically kills it for me at this time until I get my hands on a non-Windows machine.
Basically, I want to make changes to webkit for adding Arabic support. Can this be done without the above requirement?
Click to expand...
Click to collapse
I'd grab a VMware image for e.g. Ubuntu Server 9.10 (http://www.thoughtpolice.co.uk/vmware/) and use some of the free VMware versions (e.g. Player). Then follow the instructions on Cyanogenmod Wiki to get the source code and build your own system image. There should be plenty of information about how to build it, and support on IRC or the forums. Once you're past that, you can start tinkering with the Webkit code. Webkit is part of the framework (I believe), and probably has a lot of dependencies on it, so you probably cannot build it without the rest.
Maybe you want this thread to be moved to the Development forum.
Thanks for the tips robert I'll get right on that!
This thread was in the Development forum and was moved here by a moderator.
Ah btw, I thought about VMWare Player again. I don't think you can add another disk there, or at least, it's complicated (http://communities.vmware.com/thread/158454). So you might want to use VMWare Server, which is free, too. You will need a couple of gigabytes for the source code, intermediate build files, etc.
robert-qfh said:
Ah btw, I thought about VMWare Player again. I don't think you can add another disk there, or at least, it's complicated (http://communities.vmware.com/thread/158454). So you might want to use VMWare Server, which is free, too. You will need a couple of gigabytes for the source code, intermediate build files, etc.
Click to expand...
Click to collapse
Can you explain why I'd need to add another disk?
Depends on how they set up the disk when they created the image. If they made it large enough, you don't need another disk.

Screen Casting/ScreenSharing updated [6/28]

I have released a screen casting application in the Android Market using SL4A.
It allows the user to mirror their screen on their laptop or desktop over wifi.
I have attached the apk and the python script needed to run the application.
This is an open source project hosted on google code. Feedback and help improving the performance/additional features is WELCOME!!!!
Support for the X10, Atrix, and NexusS is ready out of the box because those are phones I was able to test it with.
The Linux desktop script needs to be downloaded from the project website on google code.
Link to project
http://code.google.com/p/groundwork/
Link to the market apk
https://market.android.com/details?id=com.ground.work&feature=search_result
Ver5 is now out with the ability to stream files, only avi and mp3 appear to work for now
Very goood idea, any chance of a Windows version or is it already compatible
--XDA-App--4--Nexus-S-
Unfortunately I work on a linux Desktop. Since Windows also has ffmpeg it is already compatible all that is needed is to change the linux script GroundWork.py into a batch file.
I am hoping for help or contributors on that end. After I implement all the features I have in my head I will port it to Mac and then Windows.(Unless someone beats me to it )
I may attempt to do that, If i have your permission
--XDA-App--4--Nexus-S-
go ahead. If you can post your changes here I can add it to the project code. and give you credit.Just put your name etc in the code.
any intrest
bump. I need feedback

Building ICS from source

Hey everyone,
I have my dev environment setup on my Linux machine, and am interested in starting an AOSP build of 4.0.4 (remove touchwiz and keep it stock), and have been following the guides for building from source, but I am stuck.
-setup dev environment
-downloaded source
-ensured I have all packages
where do I go from here?
In http://xda-university.com/as-a-developer/getting-started-building-android-from-source it tells me to setup a device target. I have pulled down the Samsung source files from their open source site. Where do I deposit these? Just a bit confused on how to keep rolling on this.
Thanks,
Bluefalcon13

How can I (re)make an old obsolete app to work on the latest Android version?

Greetings to all. I am new to this forum and I have a question for you experts.
There is a very old and abandoned app that I used to like a lot. It is very simple (the size was just 99KB). It is simply creating a floating icon above other apps that initiates screenshots.
When I tried to install and use it on my OnePlus 5, I got the message that this application needs to be updated.
The thing is that there is no update available for this app because the developer for his own reasons abandoned the project.
Could this be because of the modified Android version my device is running? Or is it because the app is no longer compatible for the latest Android versions in general? (My old device was under 4.4 KitKat)
Is there a way to resolve this manually perhaps by decompiling , editing and recompiling the apk?
Is there a way to recreate the same apk to be compatible with the latest bunch of Android versions?
Is there perhaps a way to avoid all the hassle and "trick" the app thinking that everything is O.K.?
Since I am a complete and utter n00b, please explain to me.
I wish to thank you all in advance for your time and effort to answer to me.
The apps' source code needs to be updated.
Do you have a link to the apps' source code?
Would also help to know what app you're talking about.
GameTheory. said:
The apps' source code needs to be updated.
Do you have a link to the apps' source code?
Would also help to know what app you're talking about.
Click to expand...
Click to collapse
I have the apk file if that helps. I tried to private message you but I was not able.
How can I provide the source to you?
The link to the actual apk file is here: https://drive.google.com/open?id=1zImcIf1lret_9XsCRawrj4FLPtbMGe7j
The app is creating a floating button/icon that allows to take screenshots of a specific (designated by the app and fixed) area of your screen. You can take multiple screenshots and evry single screenshot appears in tiny thumbnails on your screen, each one next to the other. All screenshots are getting erased automatically after a few seconds (don't recall how many, maybe 30 secs).
Yeah I have private messaging disabled. I prefer to do any communication on the forums.
As I mentioned, the source code needs to be updated. So if you post the source code I'd be willing to take a look.
No guarantees of course. Lots has changed in android over time. A lot of code has been deprecated. Don't know if it can be updated or if it's just better to start from scratch.
GameTheory. said:
As I mentioned, the source code needs to be updated. So if you post the source code I'd be willing to take a look.
Click to expand...
Click to collapse
I really appreciate your willingness to assist.
As I mentioned I am not very android developing savvy, I have the classes-dex2jar.jar.src.zip here: ------------
Is this what you are looking for???
Let me know if I am mistaken.
I have also extracted all the contents of the apk using apk studio. Let me know if you need anything else.
D4MN4T10N said:
I really appreciate your willingness to assist.
As I mentioned I am not very android developing savvy, I have the classes-dex2jar.jar.src.zip here: https://drive.google.com/open?id=1wYB9STPq70LTc04YL1Yvpf2dY7-T1bZ2
Is this what you are looking for???
Let me know if I am mistaken.
I have also extracted all the contents of the apk using apk studio. Let me know if you need anything else.
Click to expand...
Click to collapse
I did a little digging by decompiling the app so that I can look at the strings.xml to get the official app name. With the app name I did some research and concluded that the developer did not make it open source. This means its original java code is not public and therefore the app cannot be updated.
You'll have to find another app in the play store similar to this one for your use.
GameTheory. said:
I did a little digging by decompiling the app so that I can look at the strings.xml to get the official app name. With the app name I did some research and concluded that the developer did not make it open source. This means its original java code is not public and therefore the app cannot be updated.
You'll have to find another app in the play store similar to this one for your use.
Click to expand...
Click to collapse
OK thank you for your time.

Categories

Resources