Questions tagged as 'android-studio'

1
answer

Show the first text of the ViewPager in Android Studio obtained from an array

I am doing a project that consists of the following: When the application starts, a list of countries is displayed, the code of that activity ... public class MainActivity extends AppCompatActivity { ListView listView; Arrays arrays;...
asked by 16.09.2018 / 17:38
1
answer

Fail Android studio compatibility

I have a problem with my application. I currently program it in api 23 marshmallow android and I was running it on a Moto G5 plus physical device from api24 and it worked perfectly, but, try to test it on a Samsum j5 prime of api 23 and not it w...
asked by 16.09.2018 / 22:20
1
answer

Error with notifyItemInserted () when sending an Android Studio message: Error inflating class android.support.v4.widget.CircleImageView

I am making a simple chat app, when I write a message and show it on the screen the app stops, I suspect that the error is in notifyItemInserted () and I would like to know if I am misusing the function or if it exists another way to make messag...
asked by 06.09.2018 / 17:12
1
answer

Problems with Context in BroadcastReceiver: "Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase openOrCreateDatabase"

I have a problem I think with the context when trying to run a BroadcastReceiver, what I try is to connect to an internal sqlite database and read the data. This through an Alarm that runs repeatedly every x minutes. The code works in MainAct...
asked by 11.09.2018 / 16:24
0
answers

Error calling an Activity from an AAR Android Studio file

Good by the StackOverflow community, today I have the sig. problem, I try to call an Activity that is inside an AAR file, but when it calls it, it appears in the middle of the screen and the other half is the Activity of the project where it is...
asked by 03.10.2018 / 07:55
1
answer

Android Error No matching client found for package name 'company.payname.packagename'

Hello it turns out that I do not have any compilation errors in my android studio, but when I try to run the app, I get this Gradle error:    No matching client found for package name   'company.packagename.packagename' Does anyone know h...
asked by 25.04.2018 / 15:08
0
answers

How to add data to a TableLayout by means of a Scaner?

I am new to the development of Android applications I am trying to add data to a table by means of a Scaner, the problem is that when I start the scaner it reads the barcode but I can not add that value to my table. However if I add data without...
asked by 19.09.2018 / 20:48
2
answers

how to make a copy of sqlite file to external memory

I'm trying to create a copy of the sd memory, but the procedure I do does not do anything or I get an error, I have the write permissions, this is the code I'm implementing public static boolean copyFile(String from, String to) { bool...
asked by 04.10.2018 / 23:02
0
answers

AS no bookstore matters, not even AppCompat

Format the PC and after installing Android Studio and uploading projects that were already on this PC, they appear in the following way and I can not find the solution. Things I've done trying to solve: - Clean Project - Rebuild Proje...
asked by 29.08.2018 / 09:18
0
answers

how not to lose the focus gridview android studio

<GridView android:id="@+id/grid_view" android:layout_width="match_parent" android:layout_height="160dp" android:columnWidth="70dp" android:gravity="center" android:drawSe...
asked by 27.08.2018 / 17:13