Posts by Fabiano Araujo • 559 points
18 posts
-
0
votes1
answer88
viewsA: Sqlite no longer runs android - app
This occurred because you changed the name of the bank and did not change the version, try to change this part: static final int DB_VERSION = 1; To static final int DB_VERSION = 2; Be careful…
-
1
votes1
answer587
viewsA: Add image to a collapsingtoolbarlayout
Use that: <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android"…
-
5
votes2
answers4969
viewsA: Android: read JSON data
You have to pass the answer from the site to json, not the url. To get the answer use this class: public class HttpConnections { //método get public static String get(String urlString){…
-
3
votes1
answer342
viewsA: Change Httpparams code to httpurlconnection
Guy the httpURLConnection for me works great. Check out my class that has the get and the post: public class HttpConnections { //método get public static String get(String urlString){…
-
17
votes3
answers2390
viewsQ: Find the center of each circle in the image
I have this image and wanted to catch the x and y of the center of each circle. I have tried several ways, but in none have I succeeded. My question is if there is any java lib to do this or any…
-
4
votes1
answer853
viewsQ: Creating doc or docx file
I was wondering if there is any lib able to create a doc or docx file directly from an android app. I’ve tried using apache poi, but it doesn’t work. I’m using android studio. I’ve tried several…
-
1
votes1
answer149
viewsA: Customizing themes for Android API 9 and 10
I advise using a Toobar, because it is much more practical and easy. In your layouts put: <android.support.v7.widget.Toolbar android:id="@+id/toobar" android:layout_width="match_parent"…
-
0
votes3
answers4197
viewsA: Select from two tables without repeating data
use the select distinct. $sql = "SELECT DISTINCT u.id, u.username, u.genero, u.idade, u.local,u.descricao, p.user_id, p.location FROM user AS u INNER JOIN photos AS p ON u.id=p.user_id ";…
-
3
votes1
answer1525
viewsA: Cardview Android
Create an Activity that has a recyclerView: <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"…
-
1
votes1
answer610
viewsA: how to style the selected text Jtextpane?
I solved my problem with this method: public void styleFont(boolean bold, boolean under, boolean italic,String fontFamaly,Color color, int size,int tipo){ String textSelected = null; int count = 0;…
-
0
votes1
answer293
viewsQ: How to create a Datepickerdialog pre Lollipop
I’ve done everything and I couldn’t make a Datepickerdialog like this... for pre Lollipop versions. The code I’m using for now: DatePickerDialog dlg = new…
-
1
votes0
answers90
viewsQ: Classnotfoundexception error in Recyclerview$Savedstate
When I go a while without touching the app and go back to it, it makes that mistake: E/Parcel: Class not found when unmarshalling: android.support.v7.widget.RecyclerView$SavedState, e:…
-
3
votes2
answers3258
viewsQ: Add dependency on android studio
I wondered where exactly I put a dependency like this in android studio: <dependency> <groupId>com.code-troopers.betterpickers</groupId>…
-
0
votes1
answer1868
viewsA: How to add an Actionbar/Toolbar to an Android 2.2 project?
the Toobar code in your xml: <android.support.v7.widget.Toolbar android:id="@+id/toobar" android:layout_width="match_parent" android:layout_height="wrap_content"…
androidanswered Fabiano Araujo 559 -
3
votes1
answer610
viewsQ: how to style the selected text Jtextpane?
what I want is to take the selected text from Jtextpane and edit it, for example: change the font color, size and family. The problem is that after I change the selected text once, it doesn’t change…
-
-1
votes3
answers1127
viewsA: How to add Toolbar in Activity without inheriting Appcompatactivity - Android Studio 1.4
Just set up the toobar title. Toolbar toobar = (Toolbar)findViewById(R.id.toobar); setSupportActionBar(toolbar); toolbar.setTitle("seu título");
-
1
votes1
answer845
viewsQ: Reduce the size of a Bitmap
How do I reduce the size of a Bitmap.For example, take a photo of 600kB and reduce to 50KB. Obs:In the java.
-
2
votes1
answer92
viewsQ: Why is Floatingactionbutton transparent?
I’m having a problem after I updated lib support.design:22.2.0 to 23.0.1, the floatingActionButton is transparent when executed in API 10. Here is the code:…