Questions tagged as 'android-studio'

1
answer

Assign an intent to each item of a spinner

Good, I have a spinner with the following values: Teacher and Student, my question is, how do I do it so that if the person chose Professor of the spinner direct him to a activity , but if you chose Student from spinner add...
asked by 14.11.2017 / 06:04
2
answers

enter abstract parameter in interfaces

Good evening, I have a question. How do I add an abstract class in a method done in an interface as parameter? this in order to call implementing the interface can add any type of abstract class. My interface is this public interface DBM { St...
asked by 26.12.2017 / 01:59
1
answer

I can not find the android folder emulated / 0 /

I am creating a public file in an android route, I have followed the steps of the android developer web. I try to create a folder in pictures, I have refined and everything works fine, but when I see the cell phone I can not find the folder....
asked by 04.11.2017 / 18:36
3
answers

Java, I have a problem creating a new instance of a class

Good first I have this class User package com.example.leaftime.rocketdefender; /** * Created by Leaftime on 04/11/2017. */ public class User { private Integer id; private String name; private Integer score; public User(Int...
asked by 06.11.2017 / 07:41
1
answer

Error compiling Android Studio

Good afternoon everyone! I have an error trying to compile my app, but I can not understand what the error is, if someone can guide me. I leave images. /* Licensed to the Apache Software Foundation (ASF) under one or...
asked by 05.11.2017 / 21:24
2
answers

How can I change that instead of showing a menu, just show me another layout

I charge the menu the onCreateMenu that contains in a ListView are some telephone contacts , that when you press them (Item) they take me to a activity called Details. public class MainActivity extends Activity implements...
asked by 09.11.2017 / 03:26
1
answer

Manifest Merger failed with multiple errors

Good afternoon! I am receiving this error and I do not know why it is, I hope you can help me. Error:Execution failed for task ':app:processDebugManifest'.    Manifest merger failed with multiple errors, see logs AndroidManifest: <...
asked by 13.11.2017 / 19:20
1
answer

Call database with (this) in fragment

I am trying to make a catalog by linking to a database that is in the folder assets, so that it is displayed in a recycleview. This activity already works on its own but now that I want to embed it in a fragment I can not (I'm new to this). Does...
asked by 17.10.2017 / 06:56
2
answers

Swipe Element Switch instead of clicking on Android Studio

Good afternoon, my question is quite simple but I can not find how to make this element work in Android Studio: Switch activar; Boolean switchState; activar.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View...
asked by 25.10.2017 / 03:01
1
answer

How to define a different title for each screen in Android Studio 2.3.3?

I recently bought an application, and I am still modifying it, but I can not change the title of the action bar (not for the main one, but for each screen). I am trying to change the title of the action bar for each activity (facebook, video,...
asked by 06.01.2018 / 15:35