[Q] How to install source code - Android Q&A, Help & Troubleshooting

I downloaded this source code called "Downloading Simple Messaging in Android ( SMS Sending and Receiving) Code" from "sourcecodester.com/download-code" but i can't figure out how to put it in to eclipse can someone help me?

Create a new project in Eclipse, then replace the code in the activity file created by Eclipse with the code of /objects/src/com/test/android/codester/main.java (located in the file you have downloaded).
Surely you'll need to deal with some minor errors.

Related

[REQ] Apply patch(diff) with resources & Compile

Hello everyone,
I am really have difficulties with this one, I have been trying over and over and I just haven't succeeded yet, so I came looking and hoping for some help around here .
Like the title say, I need to:
1) Apply patch(diff) with resources.
2) Compile.
The files:
Diff
Resources
I really hope there are someone out there who can take a few minutes or so to help me out, because I am stuck at this myself, I really need some help!
Thanks in advance.
Goto the root of your source code folder (e.g. cd ~/android/system)
apply patch by using:
- "patch -p1 < "
after ">" has to be a "blank space" (press spacebar),
- now drop your patch file in to the terminal window, (this will add the path to the patch file),
- run the created command
- place recources files to:
/<root of your source code folder>/system/core/res/res/drawable-hdpi
i think this require the ROM source code and Programming tools or Linux OS to run.
it not like windows got GUI to let you click in 1 buttom.
more datails please ??
i really like to port iy to my devcice
hope someone can help-me
:crying::crying:

Open CM10.1 Source in Eclipse

Hello peeps,
I can't build CM10.1 (maguro) in Eclipse, I got an error from packages/apps/apollo/src/com.andew.utils/RefreshableFragment.java. It's about Fragment class.
Here is the error :
The type android.view.View$OnCreateContextMenuListener cannot be resolved. It is indirectly referenced from required .class files.
And naturally project can't be built :
The project was not built since its build path is incomplete. Cannot find the class file for android.view.View$OnCreateContextMenuListener. Fix the build path then try building this project
However, I can build in command line via brunch, mm, mmm, etc.
I have to fix these issues, because anytime I add something in a string.xml file, R.java is not updated as the project can't be built.
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
frapeti said:
u will have to add all the missing .jar files... else you have an option to just build an app after you compiled the whole rom with
Code:
mmm "project"
command
Click to expand...
Click to collapse
Thanks for your answer. Well yes I currently use mm or mmm commands to rebuild the package I am working on.
I wanted to know if there was a more comfortable option. Adding all the jar files is the way to go as you said.
I'll see if I can deal with that, otherwise I'll stay with mm and mmm command lines.

Eclipse setup for a single AOSP-CM java application

Preamble: I am a Java Android developer. I know the standard Android development flow.
I want to start developing for AOSP-CM. I follow the guide for import the whole Java source code in Eclipse, using the .classpath file provided with the source code. So I have a Java Project with all the source code, and I can browse and edit everything.
The next step is try to setup a single Android Project, for example the Phone Application, in order to use the ADT plugin feature like GUI graphical editor.
I want to edit Phone sources, build within Eclipse and above all use Eclipse Debugger.
It is possible? Where I can find a guide or tutorial ?
Sorry but I don't believe that nobody has addressed this problem.
How a CyanongenMod developer develop and build a single application? (please...don't reply with "vim" , "nano" or similar....not in the 21th century )

[Q] Android LatinIME build ?

Hi,
I want to make some changes to LatinIME. I got the code from git repository-
android.googlesource.com/platform/packages/inputmethods/LatinIME
But I don't know how to build the apk file from the code. If anyone has build the LatinIME from the code, can you please share instructions.
Specifically I want to know how to build the dictionary tools (I guess I would need ndk), how to build the native code (again I guess it would required ndk) and finally how to build the java code by using the lib file from native code.
thanks!

How to Add Java codes to Decompiled Files?

I decompiled an Apk file and I want to add some code to the java classes,but it seems that the javaclasses are different from the way they are written,for example those who edit WhatsApp and make WhatsApp plus ,how did they decompile WhatsApp to get dull source code and add some java codes to add features ?really frustrating !
The apk is most likely obfuscated with some program such as proguard because the developers do not want you looking at their source code..

Categories

Resources