Posts by Victor Gomes • 171 points
9 posts
-
1
votes2
answers1497
viewsA: How to open the Calculator using Intent?
Hurrah, the following code ensures that your app opens the calculator on any device. ArrayList<HashMap<String,Object>> items =new ArrayList<HashMap<String,Object>>(); final…
androidanswered Victor Gomes 171 -
0
votes1
answer722
viewsA: Error while running an app in Android Studio
Try the following: in your project’s Gradle within the dependencies add: dependencies { compile 'com.android.support:multidex:1.0.1' } inside android makes android { dexOptions { preDexLibraries =…
-
7
votes2
answers9825
viewsA: 3-point menu in all Activities with standard Navigation Drawer
If I understand correctly, you want to make the Navigationdrawer and the corresponding icon (3-line icon) accessible in all your activities. If you really want to do this you have to replicate the…
-
3
votes2
answers3769
viewsA: Select theme in Android Studio
You are just changing the preview theme of Android Studio. to change the theme of the app you need to go to your Androidmanifest.xml file and on the tag application changes the Theme parameter.…
-
1
votes1
answer183
viewsA: How to move an enlarged image with finger in Imageview?
You can try using Cropview from the Lyft scissors library. <com.lyft.android.scissors.CropView android:id="@+id/crop_view" android:layout_width="match_parent" android:layout_height="match_parent"…
-
0
votes3
answers96
viewsA: Android how to remove "Photos" option from the options selector and leave only "Camera" and "Gallery" options
This way the camera does not appear: Intent galleryIntent = new Intent( Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); galleryIntent.setType("image/*"); final Intent…
-
1
votes1
answer53
viewsA: Date and Time update to check if you are online
For everything to work as you want, the device that receives the date must be synchronized with the machine where the server is. There’s no turning back this situation. The…
androidanswered Victor Gomes 171 -
0
votes2
answers1753
viewsA: How to pass images between Activities?
If you know which image is associated with the item you click on then you can do so: Passing by... Intent intent=new Intent(getActivity(), Detalhes.class); int imageId = R.drawable.slide1; // Aqui…
androidanswered Victor Gomes 171 -
1
votes1
answer111
viewsA: Android Dev. Null Pointer when accessing a button of a Fragment by main Activity using set contentview
To solve this problem does so: Within your Placeholderfragment fragment, create the following method: public void setSalvarButtonListener(View.OnClickListener listener) { Button salvar = (Button)…