do i need to install sqlite? - android

Do i need to install sqlite for android or its already installed while installing all the plugin. I was trying to run the application MJAndroid, example in O'Reilly book but i am getting error in the file where the application is trying to extend SQLiteCursor Class.
EDIT
This is the Error Tree.. I am an absolute beginner to android
EDIT2
#CommonsWare thanks for the links. I tried those links and now its giving a new error ie:
The type R is already defined
Screen shot
aanybody pls explain

SQLite is part of the standard Android library; its classes can be found in android.database.sqlite. You don't need to install it.
What is the error you are getting when extending SQLiteCursor?

Look at:
http://www.javakb.com/Uwe/Forum.aspx/java-tools/2404/Eclipse-cannot-find-java-lang-Enum
and:
http://www.eclipsezone.com/eclipse/forums/t108476.html
for advice on your java.lang.Enum import problem. You might also want to take a closer look at the first error, which suggests your build path is messed up.

Related

I couldn't run my simple android app which I created using Kotlin

I can't build and run my app.. cause when I run my app it shows some weird errors I'm not aware of.. please help me out. What should I do?
I tried implement "optional classes" through the error log
my IDE shows me to create a lot of optional classes in the error log, but it won't stop
'S' in String/enter_a_number is in capital case. Make it small. It should be
string/enter_a_number
Open strings.xml file and search for enter_a_number.
You will found two result. Remove any one of them. And run app.

Android Studio is not accepting new project

I want to start learning Android programming and recently downloaded the Android Studio. Now if I want to start a new project, I can't get past this initial screen. Whenever I click next, the window just jerks, which I guess is indicating that I am doing something wrong. So how can I solve this problem?
Note: I am a total beginner but I am genuinely trying to learn and searching the web for the problem didn't give me any solution.
I guess something is wrong with your Android Studio / JDK installation. In the status bar on the bottom, I can see a NullPointerException. I think this is the cause. Try to open the Android Studio Log and hopefully the error is better explained there.
How to find Android Studio Log
Maybe you have unknown characters in your package name like "ı,ö,ü" ? And you may want to watch a android starter tutorial video which has a part about starting a project to see if you are doing something wrong?
If it couldn't be a good answer sorry for it but that's all i can offer :3

Xamarin Forms Android Error Message Regarding Support Package and other packages

I am a complete newbie who has just about started android app. development using Xamarin Forms and VS2012. Only about 20-21 days of exposure I have got. I am trying to learn along the way through writing an imaginary practice app. But there are some errors I am getting. You can see them in the picture.
http://imagebin.ca/v/29PeHoLhwW1i
Can someone direct me what exactly it is saying and what I need to do in order to rectify them?Is there something wrong with the installation/environment or like some update? Or is it something else? What's with the "unzipping failed" message?
Some one kindly help me out here please. Facing great deal of difficulty in tackling this.
Many Thanks in advance.
As the error message says (see the third error message ), you need to install the "Android Support Repository" from the Android SDK manager.
The errors are telling you that Xamarin is looking for the support library, but that it cannot find the support library and thus the build failed.
#Tanis.7x and #Jason.
Just an update I want to post:
I went about reproducing this scenario: creating a new project, do some primary simple code, add 1,2 layouts et all. When I build the new project, these 9 errors don't appear. This is strange to me. Because: this is exactly what had happened to my main work also. These errors were not there. Something, somewhere happened along the line, due to which they started appearing suddenly; out of the blue. I remember, I had updated Xamarin version, also just added some packages like JSON.Net and it is only after that this error list appeared. Not before that, if I remember correctly. Which is weird to me. If you try to recreate by creating a brand new project these 9 errors won't appear. I tried recreating this twice; no errors.
Yes, I'm manually downloading the zip file. Hopefully this makes the compiler happy. I'll keep posted about the updates.
Thanks All!

SQLite Source in Android SDK

I'm hoping to get coverage of a test I am running that deals with an SQLiteDatabase, and I specifically want to get the coverage of the underlying C code for SQLite when I run this test. However, I don't know where the location of this C code is in the Android SDK. Can anyone tell me?
Thanks.
You should be able to find it in the folder external/sqlite
The code is not in the Android SDK. Sqlite is part of the AOSP. There is a browsable mirror here: https://github.com/android/platform_external_sqlite
EDIT:
Instead of just trying to build SQLite you could build your own emulator image. You can modify platform/external/sqlite/dist/Android.mk to add the gcov flags.

How do I see the core Android classes?

I am trying to look inside a couple of Android core classes to see about overriding some methods. I have looked into getting the Android source code, but the process described on the Android dev site is all about installing and setting up some kind of development environment. This is not necessary to me. I just want to open a class or two in a text editor and look at its contents. Does anyone know if this is possible without going through the multitude of steps described on the Android dev forums?
The easiest way is to use Google Code Search. You just have to try a search like Activity.java android and you can see the source code of that class. It even has an outline inspector:
You can download the entire source with git our just look it up as a reference on the git site. Here is a link to the sdk code:
https://android.googlesource.com/platform/frameworks/base
Another option is to use http://grepcode.com/ and perform a search such as "android ViewGroup". I've really enjoyed the style of using grepcode.

Categories

Resources