Questions tagged as 'java'

1
answer

Problems with Android Manifest

I get the following error: android.content.ActivityNotFoundException: Unable to find explicit activity class {montsemkd.eac1_activity/montsemkd.eac1_activity.Acitivty2}; have you declared this activity in your AndroidManifest.xml? I'm tryi...
asked by 20.09.2018 / 22:55
1
answer

error loading APK on device

This having the following error when I install the apk on my device the log throws this error: Logcat error 09-11 11:59:11.218 16688-16688/com.example.g_talent.myapplication E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.g_tal...
asked by 11.09.2018 / 17:03
2
answers

How to validate so that there is no Na in a field?

I have the following function that is sent to call when I enter the page, but at that time I still do not have the variables full with values, since they load up to fill a few combos and reload the page. The first time you enter, the field...
asked by 12.09.2018 / 06:27
1
answer

How to walk a Json with Array

Good I am having problems to travel a json with array or that I think, I leave you the code json: { "username": "Pepiko", "platform": "pc", "stats": { "kills_solo": 1, "placetop1_solo": 0, "placetop10_solo"...
asked by 29.09.2018 / 21:24
1
answer

Error to instantiate! Help with that error

What I want to do is have a vector and in each position of the vector (cell) have a queue (array type queue) The error gives me in the sentence: Vector [0] .meter (111); But I get the error of the image.     
asked by 28.04.2018 / 17:32
1
answer

How to resize background image in Android programmatically?

I am placing a background image in an Activity obtained from the drawable folder, this is the code I implemented for that action: ConstraintLayout constraintLayout = (ConstraintLayout)findViewById(R.id.principal); // Obtener la imagen d...
asked by 27.04.2018 / 21:10
2
answers

Why does not the Scanner read the variables and sometimes send an exception?

I have the following problem: when running the program the menu is shown with all its options but when choosing the options, it only takes the number 1 and the 5 that ask for data, after entering these data, two pass things: It does not do a...
asked by 19.03.2018 / 16:24
1
answer

ImageView with Android Java Notification Counter

I would like to know if there is any control, library or if I have to do it by hand, to be able to implement a counter in an imageview, what I mean is, I need to replicate something like this I refer to the image with a red circle that...
asked by 19.02.2018 / 20:44
2
answers

I have a question about Android Studio

Why when I put num2 = calificacion.getText().toString() and num3 =Double.parseDouble(num2) where it is shown in the code gives me error; but when I put it before the If the program works for me without problems? Thanks for y...
asked by 26.10.2018 / 12:26
1
answer

Delete the characters in two strings if the character matches the string

I have a problem with Java and it is as follows: I have these two String : String string1 = "aabcdef"; String string2 = "abcghi"; And I need to get this "adefghi" . public static String regenerate(String a, String b) { S...
asked by 28.03.2018 / 22:02