Questions tagged as 'android'

1
answer

How do I make a switch with two floating buttons that come from two fragments?

Currently I have two fragments that each in their respective layouts have a floating button that redirects me to another activity. How do I get the id of those two floating buttons in a third fragment and make a switch with them?     
asked by 03.08.2018 / 20:52
1
answer

Turn on Flashlight with google vision?

I'm doing an application to detect words through the camera with the api google vision and I would like to know how to turn on the flash while in the application. here I leave the main activity code where the camera instance and the permissio...
asked by 12.08.2018 / 22:38
0
answers

Why is not my BroadcastReceiver capturing events?

I try to restart a servicio in case it is destroyed. First I create my servicio : public class MyIntentService extends Service { WebSocketClient mWebSocketClient; URI uri; @Override public void onCreate() {...
asked by 07.08.2018 / 15:55
0
answers

Work safely AES, SSL, Android

Although I've been programming for a while I've never faced security issues before, and when I read about what I need for my app, it's not clear to me why they apply those techniques. Basic functions: From Android: → I encrypt files that I...
asked by 06.08.2018 / 15:36
0
answers

I'm doing an exercise but to move on to the registry I'm left as please wait I share the code of the activity main

public class MainActivity extends AppCompatActivity { private static final int REQUEST_CODE = 1000; Button btn_continue; IDrinkShopAPI mService; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSt...
asked by 03.08.2018 / 01:46
0
answers

I am trying to put one listView inside another, or that it comes out in an AlertDialog

The thing is that I'm trying to make an application that asks some questions, and you have to answer, the answers are of two types "yes and no" and "1,2,3,4,5" What I do not know very well is how to focus it, a listview within another wou...
asked by 03.08.2018 / 11:13
0
answers

How to pass image and text to an onclick listview

I am trying to pass infromation to a listview when the user clicks on a botton. Until now the written information is passed to the listview, but I would like to have a default image for each text and look something like: [[[ Imagen ]]] Texto a...
asked by 31.07.2018 / 18:26
0
answers

Use localstorage or appcache on android with webview for a webapp exported from Construct2

Hello everyone! The truth is that I am new here, at least putting questions. The issue is that I have made a small webapp with Construct 2 and said webapp is able to read and write in localstorage, but when I run it as if it were a webapp on...
asked by 02.08.2018 / 11:53
0
answers

App crashing in the portrait, null pointer exception in a Texview

In a project for Udacity, my app crashed upon reaching this line in my ui / ArticleDetailFragment class The app just crashes in portrait mode, a null pointer exception jumps. As you can see the reviewer leaves me a hint but I do not know h...
asked by 25.08.2018 / 16:05
0
answers

plugin camera android black image

I'm doing a plugin with cordova and ionic and I have the problem that the image looks very tight or very stretched depends on how you put the phone. One of the solutions with which I have given is that in the surfaceChanged if I change previewSi...
asked by 01.08.2018 / 11:15