Questions tagged as 'android'

1
answer

How to know which image was clicked in java

I have 4 images in my layout, how do I know which one was clicked and do conditionals? my escript: OnCreate: ImageView bancada_tv = (ImageView)findViewById(R.id.main_bancada); ImageView aguarda_tv = (ImageView)findViewById(R.id.main_aguarda...
asked by 18.06.2014 / 00:55
1
answer

Insert into two tables in SQLite Android

How do I add data in two tables on Android in a single transaction? I have two Client and Address tables, the latter with a foreign key referencing the client table, and it must be registered in a single transaction. I know that MySQL has the...
asked by 29.06.2014 / 08:08
3
answers

Menu as facebook

I want to create a menu like the one in the image (similar to facebook) below would anyone know how to develop? how should I look, example tutorials. Thanks!     
asked by 12.06.2014 / 15:14
2
answers

How do I get data from a node inside another node in Firebase with android?

Ineedtogetthedataofthenode"usrCategoriaUsuario" that is in the tb_user. The normal data I get, but this usrCategoryUsuario, I can not get. Code that looks up User data in Firebase: DatabaseReference fb = ConfiguracaoFirebase.getFirebase()....
asked by 12.10.2018 / 01:12
2
answers

Recover Spinner position to use in another Spinner of another Acitivity

I have a note registration activity that has 1 spinner. In this Spinner contains card registration with IDCartão, title and description (Except in a "Card" table in the database). When you save this record from Notes in the "Notes" table, only t...
asked by 20.12.2018 / 01:07
1
answer

HttpResponse java

How to handle the json response from the server? HttpResponse responsePOST = client.execute(post); String responseBody = EntityUtils.toString(responsePOST.getEntity()); The String "responseBody" comes from php so {"product":[{"id":"21...
asked by 29.08.2014 / 05:14
2
answers

How to run database on Android?

I'm doing an application that connects to a database that is in São Paulo, it serves as a ratchet, checking for QRCODE of users' card whether they are registered or not. Except that the company I'm working for travels a lot and controls e...
asked by 20.08.2014 / 15:26
1
answer

How to call an Interstitial by clicking on an item in the list that goes through an Adapter?

I need to call an Interstitial in this Activity by clicking on an item in the list that comes from my Adapter : public class ListOfTemplates extends AppCompatActivity { private Template template; private ViewHolder view; priv...
asked by 12.08.2018 / 23:42
1
answer

Change TextView from one tab to another in TabbedLayout

I'm using Tabbed Layout ("activity_carrinho"), and I have three separate fragments for each screen, product_product, client_clip, and fragment_payment. Since you needed the screens to remain intact as they passed between them, the total of the l...
asked by 27.11.2018 / 18:53
1
answer

I changed the background of the button and stopped the action effect

I changed the background of my button to #000000 (black) and stopped performing the click demonstration (it turned blue when clicked) <Button android:id="@+id/btNext2" android:layout_width="0dp" android:layout_height="match_...
asked by 22.10.2014 / 15:49