Questions tagged as 'android'

1
answer

Recyrcleview Android [duplicate]

In my case I will need to put several buttons in a recyrcleview how can I recognize which button was clicked or only the position of an item in the list? <TableRow android:id="@+id/tableRow1" android:layout_width="match_parent"...
asked by 13.12.2017 / 18:25
1
answer

Android - How to call a method from another class from onCreate ()?

I'm pretty new to Android. So if you can explain the logic behind the problem I would appreciate it. This would help me understand the problem and see how I could solve it if it happens again. In activity one I have a method that is executed...
asked by 11.01.2018 / 11:53
1
answer

Positioning an Image View by the mobile accelerometer

I want to create a game using android studio where my image view is positioned according to the movement I make in the mobile. For example: When you start the application, the image appears in the center of the phone, and when you move the de...
asked by 18.01.2018 / 17:19
1
answer

Syntax error when using SQLite android "DROP TABLE IF EXISTS"

packagecom.example.wesley.bancodedadossqlite;importandroid.database.sqlite.SQLiteDatabase;importandroid.database.sqlite.SQLiteOpenHelper;/***CreatedbyWesleyon17/01/2018.*/publicclassCriaBancoextendsSQLiteOpenHelper{privatestaticfinalStringNOME_...
asked by 17.01.2018 / 23:35
1
answer

SQLite error: foreign key mismatch (fk incompativeis) when trying to do an INSERT

I'm trying to create a Associative Entity (N: N) in SQLite like this:    [Pet --- < VaccinePet> Vaccine] And, here is my Associative Entity code CREATE TABLE VACINAPET ( vp_data TEXT NOT NULL, vp_is_aplicada INTEGE...
asked by 18.01.2018 / 00:48
1
answer

Link color declared in string.xml (Versions below N)

I have the following declared text in string.xml : <string name="TITLE_EXAMPLE"><![CDATA[ <p>Para entrar em contato com nossa Central:</p> <p><b>Brasil: Capitais</b></p> <p> <a...
asked by 14.12.2017 / 20:35
1
answer

How to print a webview on a bluetooth printer?

I am making an application that it needs to print the contents of a webview, however the printer is bluetooth, could they help me?     
asked by 14.12.2017 / 20:44
2
answers

Why can not I use OnbackPressed Listener within fragment

I have a navigation drawer that opens several fragments, I want to click and go back, check the visibility of a layout and do something with it, and instead of closing the app, but I can not override the backpressed inside the fragment, I tried...
asked by 08.12.2017 / 12:37
1
answer

Fragment not being loaded inside FrameLayout

I created a NavigationView with 3 items, when clicking on one of them, a specific fragment should be loaded inside the FrameLayout, but this is not happening. I believe the error is in the XML, because when I select a menu item the onNavigationI...
asked by 07.12.2017 / 19:28
1
answer

Compile app for ios done in react in windows environment

I'm studying react native and need to compile an app for android and ios. I would like to know if I can develop everything in the windows environment and then just copy the files to a virtual machine running OS X to compile and publish the app...
asked by 07.12.2017 / 20:37