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

First advanced app

Hello everyone!

I am trying to start make my first app. I am not the best programmer, I am not asking you about "how to programming" but for diagram where to start.
My application seems to be quite easy, (but not too easy like WebView option) .

I can pay for any person who want to help me. I need to information what I need to do, Like Step By Step.

Thanks

no such table SQLITE

Hi, I'm a noob in programming android apps. When using SQLite Database I got following problem:
Logcat tells me: "no such table: table1", when I run both methods. Where is my mistake?
I use an existing database, placed in assets/databases folder.
MainActivity
Java:
package com.dplusk.example_sql;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    DataBaseHelper dataBaseHelper;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onClickSearch(View view) {

        dataBaseHelper = new DataBaseHelper(MainActivity.this);
        try {
            String post = dataBaseHelper.getPost("table1","Moser");
            Toast.makeText(this,String.format("%s",post),Toast.LENGTH_SHORT).show();
        }catch (Exception e){
            Toast.makeText(this,"Error",Toast.LENGTH_SHORT).show();
        }
    }

    public void onClickUpdate(View view) {
        //Toast.makeText(MainActivity.this,"Saving successful",Toast.LENGTH_LONG).show();
    }

    public void onClickRows(View view) {
        dataBaseHelper = new DataBaseHelper(MainActivity.this);
        try {
            long count = dataBaseHelper.numberOfRows("table1");
            String message = String.format("%s",count);
            Toast.makeText(MainActivity.this,message,Toast.LENGTH_LONG).show();
        }catch (Exception e){
            Toast.makeText(this,"Error",Toast.LENGTH_SHORT).show();
        }
    }
}
DataBaseHelper
Java:
package com.dplusk.example_sql;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class DataBaseHelper extends SQLiteOpenHelper {

    public DataBaseHelper(@Nullable Context context) {
        super(context, "database.db", null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }

    public String getPost(String table, String nameIn){
        String queryString = "SELECT post FROM "+ table +" WHERE name = "+nameIn;
        SQLiteDatabase db = this.getReadableDatabase();
        Cursor cursor = db.rawQuery(queryString,null);
        StringBuffer buffer = new StringBuffer();
        while(cursor.moveToNext()){
            String post = cursor.getString(0);
            buffer.append(""+post);
        }
        cursor.close();
        db.close();
        return buffer.toString();
    }

    public long numberOfRows(String table){
        String queryString = "SELECT * FROM " + table;
        SQLiteDatabase db = this.getReadableDatabase();
        Cursor cursor = db.rawQuery(queryString,null);
        long count = cursor.getCount();
        cursor.close();
        db.close();
        return count;
    }
}
Please help me.

Help Two OS on one phone?

I'm running GrapheneOS on a pixel 3a. I found an app called Setup Wizard also labelled as org.lineageos.setupwizard

I bought the phone second hand so I'm not sure if lineageOS was previously installed but I've factory reset several times plus changing the ROM from stock to GrapheneOS.

Why would there be a setup wizard for one ROM when I have another one installed?

Help What the heck is "nobody"

Hey so I'm running GrapheneOS on a Pixel 3a, just installed Netguard and saw a suspect app, its called "nobody" and it only shows up in netguard. Doesn't show up in the apps list including system apps.

[GALLERY=media, 1125]Screenshot_20210317-010651 by dimethyltryptamine posted Mar 17, 2021 at 1:14 AM[/GALLERY]

Long shoe buy any idea what this could be? What does the 9999 mean? I blocked all connections but it seems very out of place

Root Root guides just disappeared. So how do I?

Keeping it short and sweet as possible...

Us996 model. Already unlocked bootloader through lg officially. Been wanting to root for a while. Granted, i still meed to figure out how to get around Pokemon go's blocking measures but I've already completed the main dex in let's go eevee, so, if i have to take an extended break from the game i guess i can.

The thing that irks me is all the time leading up to when i bought the phone, the "holy grail" that is XDA said over and over "get the us996 or you won't be able to root at all". But now that i have one, i can't find how to root it anywhere on their site anymore. To say this is frustrating, is an understatement. And part of me is tired of retrying.

New Android Game Developer

Hello Everyone,

My name is Chris and I am a struggling independent game developer. My first Android game (Chicken with Dynamites) will be launched this spring. Hope the community likes it.

A test version of the game is now available in the Google Play Store (Early Access).

I've also posted the game trailer and info on this thread.

Any kind of feedback is welcome and appreciated.

Update: My phone is an LG Q6 by the way. Yeah, an old and cheap phone. :(

Thank you!

Chicken with Dynamites

Hello Everyone,

I'm releasing my first Android game soon. A test build is now available in the Google Play Store (Early Access). Would love to get your feedback.



About the Game

Chicken with Dynamites is a game that allows you to control our chicken protagonist to:

1. Save the peeps
2. Eat the corns
3. Avoid the snipers and bad entities

It seems easy to do all 3 at first try but you will find otherwise as the level progresses.

Free the imprisoned chicks by blowing up their cages with dynamites to complete a level. Don't forget to eat all the corns too and keep your health at 100% for a perfect game score. Avoid all the snipers and entities that can send you to chicken heaven (or someone's dinner plate).

The game looks easy to play but you will notice your strategy skills put into use in order to achieve a perfect level score as you progress. Although you can complete the game without them, helper items are available through in-app purchases that can make your gaming experience easier.

Target release date is Spring 2021.

Thanks!

Chris

Filter

Back
Top Bottom