Hi all first timer here,
I have a project I've been working on and now I wish to integrate ACRA into it. I downloaded the file from google, created a folder lib and imported the jar file into it. I added the INTERNET permission to the manifest, and created a MyApplication class with the suggested code from http://code.google.com/p/acra/wiki/BasicSetup into my package as stated in the instructions. Now that I have done all that how do i get it to take effect with my application and am I missing anything? Should I have not created a new class and just added the code into the existing main class?
Thanks for the help!
Now that I have done all that how do i get it to take effect with my application and am I missing anything?
If you followed the BasicSetup instructions per your link, then this work is already done.
Ok, so the issues was that firstly, I forgot to add android:name="MyApplication" in the application tag in the manifest. Secondly, for some reason for some systems the lib folder needs to be renamed "libs" and then path rebuilt, the process is detailed here: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17
Cheers
Related
I have two android projects with me. I need to add the first project as a library to the other project.
Now, when I am trying to open the activity of library project from the other application on a button click, i am getting Android.content.ActivityNotFoundException at run time.
Can anyone suggest some pointer on this.
you need to check that you added the new activity to the manifest.xml file
if you are Using ADT(Android Developer Tool).
Thanks for the concern. This issue is resolved for me. Sorry for the late reply. I have created the second application as library project, which is included in first android project.
The point, which fixed the issue is: add the contents of the manifest.xml of library project in main project and the reference provided is the full path for the activity(including package name).
I am looking to use the android sample project 'Bluetooth chat' as a library so that I can use it inside another application.
I have marked the project as a library in its properties and I have referenced the project in my application. I understand I need to update my applications manifest file, however I am totally lost as to what needs to be added/changed(I am a total beginner).
I am just looking to launch the sample from the click of a button within my application.
I have read the documentation about referencing but I am still pretty confused. Any guidance would be much appreciated!
if you access your project you enter your manifest file for entry lie that
<activity
android:name="<Package name>.<java file name>"
/>
Make Sure your lib and your project in same folder.
I've been trying to implement Google In-App Billing into one of my Android apps by following http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample
but I get the error that "IabHelper cannot be resolved to a type" after following the steps for an "Existing Project". I've added a picture as well.
Make sure you have followed step 3:
Add the helper classes from the /util directory of the TrivialDrive sample to your project. Remember to change the package name declarations in those files accordingly so that your project compiles correctly.
You need to copy all the classes under com.example.android.trivialdrivesample.util and put them in your project. IabHelper is one of them and seems to be what you are missing.
so this worked for me:
If you just copied the files, then you need to change the package name of each java file in the util folder...
I have misunderstood where to copy the helper classes to? I am not able to read that from images provided. I have all of them changed accordingly to my app however still struggling on where to copy these files to. Neither able to understand that from https://developer.android.com/training/in-app-billing/preparing-iab-app.html#SetPermission as I do not have util folder in my app.
Hey I know this was asked before, but none of the solutions seem to help.
This is NOT a duplicate
I have used the Facebook SDK before on an earlier project,
now I started a new one and I get this weird error.
I have set a reference to the library
I have set the Facebook SDK project as a library
I have tried deleting it and re-adding it according to the official documentation, and basically tried everything in this question.
Though I still get this error and can't find out why.
Worth to mention, when I tried to use the facebook class, it gave me an error with an option of "fix project", which I did and still didn't work, might be related?
This is common error. Just remove FacebookSDK project from Properties->Java Build Path->Projects . This project should be referenced from Properties->Android
For more information, see this answer: Could not find Library.apk!
Well, after alot of searches the only thing that worked for me is just creating a new project and copying all the files to it.
I tried avoiding it but that seems like the only thing that works =/
As there is no answer on this topic whatsoever, so if someone could find out a better solution - it will be very helpfull to the community
Hmm.. I just want to ask whether did you import the Facebook SDK into Eclipse itself? Because I had did a project using Facebook and the thing is that besides referencing, the guide I followed actually instructed that the SDK must be imported into the Eclipse.
You might probably want to have a look at this. Else, the other way is just like what you did, copying all the files.
Try deleting the Facebook application for Android (if you have one installed on your phone). This worked for me.
i dont know how this is happened but it works :
first : i have added all facebook3.0 related sample + facebookSDk projects in one workspace .
second : i have run a sample project . in which i found a .jar file :
androiddependencies->facebooksdk.jar (note this exact path )
third :
1.) i created my project .
2.) inside this i have removed errors by :- FixProjectSetup (atLast position )
3.) i have added facebooksdk.jar by right_clicking at project->properties->android->by checking android 4.2 + reference the Facebooksdk -> done .
now i am able to create and run programs easily .
i have an android project which has a lot of classes I've built.
i want to organize it to sub folders and my package in eclipse.
when i'm adding a folder and move files over there, what changes should i do in the code so the file which need this classes can reference to it?
is it something in the:
import android.app_name.folder_name.class_name
help will be appreciated, my project is beginning to be a big mass..
if its not possible i will be glad to hear about other solution
Eclipse has a rename/refactor method you can use. The only issue I'm familiar with is the fact that it seems to break the manifest.xml
Yes you can import project into Eclipse...
Then you should create a Package to manage related classes. (FYI, package is ultimately creates folder hierarchy on your drive).
Note: Make sure you provide a correct reference of the particular class in AndroidManifest.xml file.