Questions tagged as 'android'

1
answer

Pick selected image and send to another Activity

I wonder if it's possible to grab a selected image and send it to another activity. I'm using fragments and wanted the layout to look like the image below. I would like that when the user selects the image, pick this one and send it to ano...
asked by 25.10.2016 / 20:11
2
answers

When should I create a class? [closed]

I know it sounds like a pretty silly question, but I'm starting now in the programming world (focused on mobile). When I create an app it gets all the functions within the Activities, so I never know when I should take methods and attributes...
asked by 11.10.2016 / 23:25
1
answer

I can not fix this error java.lang.NullPointerException

I'm creating a simple app to show the images in a kind of gallery but I am not able to show the images in the view by the adapter. Always give this error NullPointerException Class Adapter: public class AdapterGaleriaFragment extends BaseAd...
asked by 12.10.2016 / 22:37
1
answer

Create themes in the Android app

People, it is possible to customize the color of the action bar on Android, because I am developing an application and I wanted the users to choose the color of the application that they like. Does anyone know if it is possible to do this with a...
asked by 11.10.2016 / 16:17
1
answer

How to modify a ListView present in another activity without using Intent?

I created a listView in the initial activity of a project, and would like to know how to modify it from other activities, without having to use intent.putExtras . Activity01 (where the listView is): package genesysgeneration.lvatt;...
asked by 25.02.2017 / 23:56
1
answer

Only prints the first element of the ArrayList

My problem right now is in printing the various elements that are inside an ArrayList that I created. The workings of my app are as follows: I use a Cursor, and I fetch the information from the table to the database. Then I pass in an Arra...
asked by 26.02.2017 / 04:12
1
answer

Close ad when you click the close button

I would like to know how to close the adview of the layout if the user clicks the "X" of the ad. My ad code is below and I use it in the main activity_main layout: MobileAds.initialize(getApplicationContext(), getString(R.string.ID_AP...
asked by 10.11.2016 / 03:32
1
answer

Pass data from api volley to another screen

I have an app that gets given via api using volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela1); ImageView m...
asked by 03.01.2017 / 19:32
1
answer

Error making GET of image url on Json Android

I have the following code: private class DownloadJsonAsyncTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() {...} @Override protected Void doInBackground(Void... voids) { p =...
asked by 25.09.2016 / 16:51
1
answer

Create a marker at the current location of Maps with Fragment

Hello, I need to put a marker in my current position and show it in Google Maps, but as I'm using Fragment the setMyLocationEnabled method does not work, I already went behind the internet on several sites and I did not find the solution, so I de...
asked by 26.09.2016 / 17:40