• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. K

    Am I Going Insane?

    You would tell me if I was crazy right? I started a project with an sqlite database, made some really good progress, but when I went to build it out, the database was not created and it crashed after pushing one of the buttons. So I started over and didn't copy anything, but typed it out. The...
  2. K

    onBindViewHolder Trouble

    I'm going through a tutorial and adapting it to my own project. I ran into an issue and because this is new to me, I'm stumped as to how to fix this. I'm working with a recyclerView saving and loading from an sqlite database. In the Adapter class: @Override public void...
  3. K

    Add multiple columns to arraylist

    I'm working on a CRUD system for my app. I want to use a listview to show all the items from the tables. When it comes to adding the items to the arraylist, I don't know if I need multiple lines or a single. public void ViewCar() { Cursor result= db.ViewCar()...
  4. K

    Unable to create an instance of a class

    I'm following( or trying to) a tutorial showing how to work with a listview. 1. Created a new class with getters/setters and contructor with the elements in the database table. When it came to the view function in the database helper class, the example initialized a list(arraylist) and a new...
  5. K

    Fragment causes crash

    I have my navigation drawer all working except for one fragment that causes a crash. I have deleted it several times and added a new one several times, only for whatever reason it crashes when that fragment is selected. I am getting endless spinning (waiting for build to finish) on the...
  6. K

    Strange error with fragments

    I had just finished getting all the fragments together for the drawer and I was trying to get them going to the right fragment locations. When I defined the fragment, it gave me a strange error. public boolean onNavigationItemSelected(MenuItem item) { Fragment fragment=null...
  7. K

    Using Intent to load a Navigation Drawer from the Main Activity?

    How do I call a Navigation Drawer Activity from the Main Activity? When loaded on a Android device, the button doesn't work. public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {...
  8. K

    Can data be captured from a string buffer?

    I've been working on my first Android app. I wanted a slicker way to delete an entry from an sqlite database than having the user type in the entry they want to delete. Currently all the information is displayed in a stringbuffer. Is this even possible or would I need some other way to display...
  9. K

    Help Data directory not created- Please help

    I've been using Unity3d and c# to make a couple of apps. Both work on PC, but when I port them to Android, the app runs, but the data directory with the com.company.appname is not created. So anything I try to save(JSON) or create(database) will not work. So far I've tried SQLite and JSON. I was...