Questions tagged as 'android'

1
answer

Create Button to return to the Android studio application

I have 2 Activities: Mainactivity.xml and Messages_predet.xml I have a button that directs me to the second activity without problem and it will send other activities, but in each one I have to place a button (imagebutton) that will bring me...
asked by 17.08.2017 / 20:49
2
answers

Avoid screen lock on Android and VR

I am programming a VR apk with Unity but the following problem arises. Being a VR application, I do not have any contact with the touch screen of my mobile phone, so after 10 seconds the screen dims and 5 seconds later it crashes. I would...
asked by 26.07.2017 / 12:53
1
answer

Firebase push in textview

I have a query ... How can I capture a push notification in a textview or in a list ... here is my code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...
asked by 08.08.2017 / 18:34
1
answer

How to debug a service on Android? does not start Service

What I want is to debugge my background service from my android application, but it never runs and I do not know what is due. This is in the manifest <service android:name=".utils.MyService" android:enabled="true"></service>...
asked by 31.10.2017 / 01:16
1
answer

Pass a value to a Textview that is in another Layout that is not loaded in the setContentView ()?

I have a problem sending text to a TextView, the problem is that the TextView to which I want to send the text is in a Layout that is not loaded in the setContentView (). This is the nav_header_main from where I try to take the TextView:...
asked by 15.01.2018 / 20:00
1
answer

Incorporate svg in android

I have an arrangement like this: ImageView img0; int [] f1={R.drawable.ic_butterfly, R.drawable.ic_butterfly, R.drawable.ic_butterfly, R.drawable.ic_butterfly}; Random r1=new Random(); int a1=r1.nextInt(4); img0.setImage...
asked by 17.01.2018 / 16:59
1
answer

Does not access the Internet from WebView on some devices

I have an application which plays videos that I have on a multimedia server, recently I realized that in several devices it does not play for lack of internet access or so it shows, I have a method to verify the connection to the internet and if...
asked by 27.07.2017 / 00:21
1
answer

No permission to write APN settings

Greetings, I am developing an Android application to create an apn, the problem persists in that it generates an exception of type Java.Lang.SecurityException In my manifesto I have a permission uses-permission android:name="android.permi...
asked by 14.08.2017 / 19:31
1
answer

How to change the input method of an Edit text in java?

Hi, I am programming in android studio and I need to know how to change the input method (inputType) of an Edit text with java code, not from xml. public void button (View view){ TableLayout table = (TableLayout) findViewById(R.id.table);...
asked by 15.08.2017 / 20:19
2
answers

Retry loading image in Glide with 2 URL's

I am uploading an image with Glide, as follows. Glide.with(myActivity.this).load(url1).diskCacheStrategy(DiskCacheStrategy.ALL).into(avatarImageView); It turns out that sometimes fails me, since sometimes the url1 does not exist, and I ha...
asked by 14.08.2017 / 20:02