all,when i open jumpNote project in eclipse,i encounter some mistakes like the following description.
many variables related with c2dm like
Config.C2DM_ACCOUNT_EXTRA,
Config.C2DM_MESSAGE_SYNC,
Config.C2DM_SENDER etc
****cannot be resolved.****
i uses the latest sdk(2.2).
any one konws the reasons, i think that if i miss some jar files?
any help is grateful.
You need to check out trunk/src.shared and merge it into the src dir of jumpnote. Then clean/build. If it still doesn't work re-import it into eclipse.
Those are just examples of what you can do in your own app, they don't actually exist within the Android API.
There is a Config class if you browse the source code, com.example.jumpnote.android.Config.java
Related
A third party created a unity project for me but they lost their project on their end. A guy had it on his laptop, never backed it up but he did send the integrated unity project for android. The only issue is that we need to change something inside it. So I have the android project, I just need the built unity's source code.
The same situation occurred with our IOS version, luckily Xcode had the Assembly-Csharp accessible and I could find the value I needed to change. The Android's Unity was built with il2cpp. I've managed to re-secure the assets using some tools I've found online. So I can potentially rebuild the project with new scripts. However this may take a rather large amount of time. So I found I can edit the source code through the hex code, but this seems limited/nigh impossible as I need to make a condition on this string instead of simply setting the value. If there is a way to do this with a hex editor on the lib2cpp.so file I would greatly appreciate even a lead. Alternatively I have found some things on hooking a string, but I am unsure of how to go about this and cannot find sources of where to start such a thing.
Any leads or information on how to edit a string on a condition in the unity source code through it's lib2cpp.so file or libunity.so file would be greatly appreciated!
This is more of a general question. I am developing my first relatively large Android application, and I realize the file structure is probably not the "best practice" organization. I feel like I have one folder full with all of my Activities and Java classes, and it is getting a bit messy. Does anyone know what the best option is for making the project structure a bit cleaner?
For organizing your source files take a look at some open source projects to get an idea about organizing your file structure. An example is the Google sample project android-topeka.
This project groups the source code into sub-folders in the following structure:
/source
/activity
/adapter
/fragment
/helper
/model
/persistence
/widget
I found these links very helpful. Link 1, Link 2 and Link 3.
Its a very debatable question. Some IDEs like Android Studio of google, Eclipse IDE for android automatically manage and keep ur source codes clean and compact.
I'm currently using eclipse to build android apps, but according to the tutorial, there will file named main.xml in res>layout to create the design of my apps. However my layout is empty.
I had posted about the same issue with extra information, but it was deleted. However, I found a solution so you can get the layout folder populated with the blank activity.
Instead of using the ADT package, download Eclipse and the SDK separately. Follow the details here, but download and unpack the SDK first. Click the DOWNLOAD FOR OTHER PLATFORMS link.
You will also need the location of your java JRE bin folder.
I hope that helps,
Lee.
Create a new project based on a template and everything will be set up as expected. It sounds like you may be new to Android. I would suggest reading through the documentation for building your first app. It will tell you all you need to know.
https://developer.android.com/training/basics/firstapp/index.html
I was working on an Android app but yesterday my Hard disk got crashed and all the data has been gone. What I'm now left with is a .apk file which I kept as a back up. I somehow managed to get my code back from that .apk file but not sure of how to import the whole project in Eclipse. The source along with other folders like drawables, values, manifest etc are saved in one folder. Any help would be highly appreciated.
I have two methods :
Download APKTool (url) and decompile your apk package. Here you have a tutorial.
After this you should can import your code into Ecplise.
Go to a specialist and try to restore your harddisk.
I hope I helped
ok, first of all, if you tried to decompile an app, I suposed you have used apk-tool or smali/backsmali tools for the code.
AFAIK you can't get your java code back. after decompile, you get smali code, which is some dalvik assembly language. I don't think you want to write apps in that.
If you were the developer of the app, you would've make a backup of your code, not APK. So, are you sure you're not lying to us?
I started some android programming and I am trying to do some animation in my activity. but all references are using interpolators and files from res/anim folder which I can't find in my project. Also, when I am using R.anim I am getting an error that it doesn't exist.
Is there any API to download?
Thank you
You need to import the R file. You should see something like below in the import list of your class file.
import <your.app.package>.R
I had the same problem, and none of the solutions above worked.
In the end, I got it to work by referencing it as android.R.anim as explained here.
Had similiar issue, but could access all other R.* locations but not anim.
Problem was with an anim xml file missing:
xmlns:android="http://schemas.android.com/apk/res/android"
Nothing in IDE detected any error. Hope this helps someone else.
No, R file is not some API. It is a file generated by the Android build system from existing resources. If you can't find some particular references to resources, this means these resources don't exist. You should put them where they belong. Read more about providing resources for your applications.
No api. Your config is wrong in some way. Attach some code, possibly a screenshot of your project browser so we can see the folder/file structure.
In my case there was yet another reason why my R.anim.shake hadn't been recognized. It was because my project is divided into 2 modules (app and library). I placed the animation file (shake.xml) in the app module while I was trying to reference it from the library module. Moving the shake.xml file to library/src/main/res/anim solved the problem.