Questions tagged as 'android'

1
answer

Run sql file with SQLiteDatabase Android

I am implementing in an Activiy the download of an sql file from a web server. The Download I already managed to do and it is working without problems. However, catching this downloaded file and having it executed with the execSQL () command is...
asked by 26.04.2018 / 02:14
1
answer

Method invocation 'notify' may produce 'java.lang.NullPointException'

NotificationCompat.Builder builder = new NotificationCompat.Builder(getActivity(),"M_CH_ID"); builder.setAutoCancel( true ) .setSmallIcon( R.drawable.icon_notificacao ) .setContentTitle( "RPfm 105.3" ) .set...
asked by 24.04.2018 / 02:04
1
answer

Pass data from Firebase Database by Intent and retrieve in another activity [duplicate]

This is the fragment of my Fragment code in which I need to pass a parameter (Firebase DB id) through an Intent generated by Adapter.setOnClickListener : ... viewHolder.eventoCardView.setOnClickListener(new View.OnClickListener() {...
asked by 22.03.2018 / 00:30
1
answer

Is there a setBackgroud in AppWigetProvider?

My question is whether the setBackground method exists in the AppWidgetProvider class? If it is possible to use the method in class do you have any path that I can follow? I'm developing a native widget.     
asked by 19.03.2018 / 15:42
1
answer

Shared Preferences with Radio Button

I have a set of RadioGroup with 3 radios buttons, and I need to save it in a shared preferences. XML: <RadioGroup android:id="@+id/radioGroupOpcoes" android:layout_width="wrap_content" android:layout_height="wrap_content"...
asked by 17.04.2018 / 17:07
1
answer

Toolbar hiding a piece of textview

Follow the code below: <?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="...
asked by 23.03.2018 / 20:21
1
answer

How do I retrieve a result from within the "onActivityResult" in my activity

I'm trying to use my cell phone camera as a bar code reader. I can recover the bar code, and see the result within the "onActivityResult", however, I need to get the result I got, for my main function, and I'm not getting it. Follow the co...
asked by 23.03.2018 / 17:20
1
answer

Create objects after external server response via API

It is the following, I created an API in php that generates a Json. LINK is this for anyone who wants to view. I was able to access the link and retrieve the information, as I used a Toast to show them. But for some reason, which I do not k...
asked by 15.03.2018 / 21:38
1
answer

Result AsyncTask

I have rephrased the question again to try to better clarify the need for my situation: I need to run between the following activity's activityaa, by clicking the button, the application sends an information to a php page, which from this inf...
asked by 16.03.2018 / 01:28
1
answer

Application closes when opening activity

The application simply closes when I press TextView . It should move to another Activity . I've tried it in many ways and it keeps crashing. package com.example.evellyn.auris; import android.content.Intent; import android.su...
asked by 02.04.2018 / 21:03