Posts by Arthur Stapassoli • 116 points
6 posts
-
2
votes1
answer818
viewsA: Save an Arraylist<> to an SQLITE table
Using the new Android persistence file, Room : First you need to import dependencies: build.Gradle allprojects { repositories { jcenter() maven { url 'https://maven.google.com' } } } compile…
-
1
votes1
answer459
viewsA: Spinner.setadapter on a null Object Reference
@Ultrasenven vc need to assign the spinnerGood1 the Spinner component you put in the view, so try: sua_view.xml <Spinner android:id="@+id/id_do_seu_spinner" android:layout_width="match_parent"…
-
1
votes2
answers120
viewsA: Problem catching latitude and longitude android 5
Try this way: public void pegaLocalizacao() { LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); LocationListener locationListener = new…
androidanswered Arthur Stapassoli 116 -
1
votes1
answer438
viewsA: Screen "loading" on Activity
Good morning Artur, you probably use the async class to make this connection, try using the code below. When you call the class it shows a Dialog for the user, I hope I’ve helped. public abstract…
androidanswered Arthur Stapassoli 116 -
2
votes4
answers3938
viewsA: How to open another Activity from a Navigation Drawer?
Try so Marcos, in the example below you try to check if there is the app, passing the package name: this.getPackageManager().getPackageInfo("com.twitter.android", 0); intent = new…
-
0
votes4
answers3938
viewsA: How to open another Activity from a Navigation Drawer?
Create a method and call the Activitys you want: private void callActivity(Class c){ Intent it = new Intent(this, c); startActivity(it); }