Posts by Tiago P Casemiro • 366 points
24 posts
-
2
votes1
answer751
viewsA: How to send an audio file from Android phone to computer?
Asynchronously .... Socket socket = null; BufferedInputStream bufferedInputStream = null; try { socket = new Socket("192.168.198.1", 8901); bufferedInputStream = new…
-
0
votes1
answer213
viewsA: Thread calling method to query a web service always returns null
The problem is in the thread. Since the thread execution is asynchronous, the method responds before the listNotas = notaWS.buscarNotas(matricula,stage) be executed. Look at the code below. public…
-
1
votes1
answer311
viewsA: Click on Loginbutton facebook on android using Xamarin with Facebooksdk nothing happens
You need at least one line of code within the method for breakpoint to enter. Place a log line and place the breakpoint on the log line. private class facebookCallBack : IFacebookCallback { public…
-
0
votes1
answer132
viewsA: How to implement Actionbar and Viewpager as in Tinder
I selected this Lib : Cardstackview Mode of use Declare the layout <com.yuyakaido.android.cardstackview.CardStackView android:id="@+id/activity_main_card_stack"…
-
2
votes2
answers219
viewsA: How to create custom Toolbar like Acmarket
The secret is to put android:layout_margin="8dp" in Toolbar. Will work in any layout.
-
0
votes1
answer114
viewsA: Pass CSV content to an Sqlite table
You have to pass the dice on to the object first. Then you enter the data into the database. There is a framework for working with the Sqlite. To pass the data from . CSV to object you will have to…
-
1
votes1
answer570
viewsA: How to place Edittext next to Edit Text dynamically?
A view cannot be added 2 times within another view. You have to make the creation of layout2 dynamics. To do this you can create this view in a separate xml and inflate each time you want a new…
androidanswered Tiago P Casemiro 366 -
4
votes1
answer1208
viewsA: Keep the field hint visible when typing
Use Textinputlayout is from Google. When the user types something, the hint goes up and turns title. <android.support.design.widget.TextInputLayout android:layout_width="match_parent"…
androidanswered Tiago P Casemiro 366 -
0
votes1
answer47
viewsA: Associate two image
Algorithm Create a matrix Associate each pair (row and column) to an image At each image click - Check if it is click 1, if changing the image - If it is click 2, reset the click counter and check…
-
0
votes1
answer66
viewsA: Questions on In App Purchase Android
In relation to key64 You must leave the public key base64EncodedPublicKey directly into the code being generated at runtime or retrieves it in encrypted form. This is required by security measures…
-
1
votes1
answer1435
viewsA: How to update my application by APK without losing my Sqlite database?
When you update your APK in the playstore your database will NOT be deleted. In your databasehelper class you will have a method onUpgrade(Sqlitedatabase db, int oldVersion, int newVersion) where…
androidanswered Tiago P Casemiro 366 -
0
votes1
answer220
viewsA: Spinner with a call icon
In Layout <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageView android:id="@+id/image3" android:layout_width="wrap_content"…
-
1
votes1
answer78
viewsA: Select items with Longclick, imagebutton
You have to set the time to send. use a button for example. Inside the button click... You will have to save these values when the user clicks long on the item. message = "Mensagem de invite",…
-
0
votes1
answer140
viewsA: Problem in editText inside a Listview
To the setInputType enter the value for the field type. Example: password field, numeric field, text field, etc. EditText edit = new EditTex(context); edit.setEnabled(true);…
-
0
votes1
answer367
viewsA: How can I create a Seekbar
This example is using Android Annotation. This is the Activity of a podcast app player package br.com.podcast.podcast.view; import android.content.ComponentName; import…
-
1
votes1
answer88
viewsA: Position button on top of ad
Use relative layout to group the close bottom and the ad. When the user clicks close you change the relative layout to GONE visibility. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
1
votes2
answers402
viewsA: Recyclerview Images with Problem loading images==null
if (dican.getParseFile("foto") != null) { holder.fotodica.setImageURI(dican.getParseFile("foto").getUrl()); }else{ holder.fotodica.setImageURI("www.url.com/imagem.png");…
-
0
votes2
answers402
viewsA: Recyclerview Images with Problem loading images==null
if (dican.getParseFile("foto") != null) { holder.fotodica.setVisibility(View.VISIBLE); holder.fotodica.setImageURI(dican.getParseFile("foto").getUrl()); }else{ …
-
1
votes2
answers206
viewsA: What is this for? requestWindowFeature(Window.FEATURE_NO_TITLE);
To remove the status bar from android. Some apps like games do this to stay in full screen. Or to make the Slash screen with the logo alone on the screen.
androidanswered Tiago P Casemiro 366 -
1
votes2
answers349
viewsA: Checkbox - how to check if at least 1 cbx has been selected
CheckBox checkBox1 = (CheckBox) findViewById(R.id.checkBox1); checkBox1.isChecked();
-
0
votes1
answer108
viewsA: Activity with background design
Use a . png over an image. To place an image over another image you can use RelativeLayout. Another way is to use the Drawables Vector: https://developer.android.com/training/material/drawables.html…
-
0
votes4
answers1390
viewsA: How to change the dynamically displayed Layout
Another way would be this. <TextView android:id="@+id/text1" android:textSize="16sp" android:textStyle="bold" android:layout_width="match_parent" android:layout_height="wrap_content"/>…
-
0
votes4
answers1390
viewsA: How to change the dynamically displayed Layout
<include id="@+id/layout_1" layout="@layout/lista_categoria" android:visibility="visible" /> <include id="@+id/layout_2" layout="@layout/layout_404" android:visibility="gone" /> View…
-
0
votes1
answer195
viewsA: How to recover the status of a button with Sharedpreferences on Android/Kotlin on multiple screens?
if (v.isSelected) { v.setBackgroundResource(R.drawable.volume_ligado) } else { v.setBackgroundResource(R.drawable.volume_mudo) } val prefs =…