Posts by Gabriel Souza • 133 points
12 posts
-
2
votes1
answer65
viewsQ: Error of Nullpointerexception
Caused by: java.lang.Nullpointerexception AT dao.Database.verificaSeTemRegistroNaTable(Database.java:184) That error was presented in mine logcat. The method: public boolean…
-
2
votes2
answers499
viewsQ: Error android.database.sqlite.Sqliteexception: no such table: fs_promocoes
public class PromocaoDAO { private static final String DATABASE_NAME = "app_promocoes.db"; private static final int VERSAO_BANCO = 2; private static final String…
-
3
votes1
answer79
viewsQ: Doubt about regex
Have this string and I need to go through it taking only the values that are inside the (). To string is : String estados = “(1, ‘AC', ‘Acre’), (2,’AL', ‘Alagoas’), (3, AM, ‘Amazonas’)… “ I rode the…
-
2
votes1
answer66
viewsQ: How to import a . sql file to an android database?
I have a file. sql that contains multiple Inserts and I needed my application to read that file and make those Inserts into a table that I have created. Is there any way ?
-
1
votes1
answer121
viewsQ: How to recognize the native "back" button of the android device in an app.
I would like to know how I do to detect in an application that user clicked on the device’s native "Back" button. 'Cause I need to take action if that happens.
androidasked Gabriel Souza 133 -
0
votes1
answer1220
viewsQ: Error:(1, 0) Plugin with id 'com.android.application' not found when doing project sync
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "app.teste" minSdkVersion 15 targetSdkVersion 24 versionCode 1…
-
-1
votes1
answer385
viewsQ: Error in build. Gradle
Error:(1, 0) Plugin with id 'com.android.application' not found. Open File Guys I went to open a project, and this mistake came up. Can someone help me, please.…
-
0
votes1
answer139
viewsQ: Nullpointerexception error when calling a method
public void addFormaPagamento() { btnAdd.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { boolean isInsertForma = dbApp.insertFormaPagamento(…
-
1
votes2
answers351
viewsQ: Error returning Android Cursor
public boolean insertData( int id_item, String nome, int quantidade) { String preco_unitario = "0"; String id_pedido = "0"; SQLiteDatabase db = this.getWritableDatabase(); ContentValues…
-
0
votes1
answer333
viewsQ: ERROR : Cursorindexoutofboundsexception
public boolean insertData(int id_pedido, int id_item, String nome, int quantidade) { SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues();…
-
1
votes2
answers1746
viewsQ: Calling an Activity within a Fragment - Android Studio
I need from the click of a button inside my Fragment, it call an Activity. My code is like this: public class ActFoto2 extends Fragment implements View.OnClickListener,…
-
0
votes0
answers247
viewsQ: Error in app emulation in Android Studio
when I will emulate the application by AVD in android studio, it appears this message, as soon as I click on the button to "Initialize the Virtual device" "Cannot Launch AVD in Emulator. Output:…
android-studioasked Gabriel Souza 133