Questions tagged as 'android'

1
answer

Any url open in webview?

I have my role: webView.setWebViewClient(new WebViewClient(){ @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.startsWith("http://www.hotelcolonialdosnobres.com/")) {...
asked by 04.11.2016 / 00:02
1
answer

NullPointerException: Attempt to invoke virtual method

I'm trying to pass information from one Activity to another through the position in the list, but it's giving this nullpointer error. Where do I get the information - Main Activity @Override protected void onListItemClick(Li...
asked by 03.11.2016 / 22:27
1
answer

Photos do not line up

I'm developing an app to absorb knowledge and I ended up with a weird half thing, the following is the function of the app is to open a list of photos (parseia an xml, take some photos from the assets folder) and then when it will sample the lis...
asked by 14.11.2016 / 18:04
1
answer

Problems sending notification

I'm using the following code to send notification from the android and not the console public static void pushFCMNotification(String userDeviceIdKey) throws Exception { URL url = new URL("https://fcm.googleapis.com/fcm/send");...
asked by 15.11.2016 / 16:48
1
answer

Insert image in ListView via JSON + SQL

I created a code that perfectly matches the results via JSON from my database and populates my ListView with Strings, but I'd like the database to bring it from the "image" column I created, the image-related address : link ) and the ListView l...
asked by 31.10.2016 / 12:29
1
answer

I can not get some Strings from strings.xml

I want to get a String that is in the strings.xml file, but always gives the following error: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.macave.rastreador/com.macave.rastreador.AjudaActivity}: java.lang.NullP...
asked by 31.12.2016 / 10:40
1
answer

Sending parameters by android url

I have an android application running and I need to send a few URL races quickly and easily. I use this code to execute this function, but it is already obsolete and sometimes it does not work as it should! Thanks in advance for your help....
asked by 31.12.2016 / 02:30
1
answer

JSON parsing with android volley

I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492", "ask":"3.2497"}] I want to use the value of "ask" but I...
asked by 02.01.2017 / 02:48
1
answer

Resize image to screen size

I created a ViewA class where I get two images from the drawable folder and draw on the screen with draw (); public class ViewA extends View { private Bitmap img1; private Bitmap img2; public ViewA(Context context){ super(context); i...
asked by 12.11.2016 / 01:04
1
answer

Pause an AsyncTask until a task is completed

In my AsyncTask I instantiate 4 new objects, but I have to stay in it until all objects are brought. Here is the code: @Override protected Void doInBackground(Void... voids) { new CrtlComentario(contexto).trazer(post.getCodigo(), new Call...
asked by 23.10.2016 / 14:04