Questions tagged as 'android'

2
answers

Open ImageView in Fragment by clicking on ImageView

How can I do so that every time I click on an image it opens in a Fragment ? I have done the following, I do not know if it will be the right method but it is what has occurred to me. My main class: Here I have the three ImageView...
asked by 28.05.2017 / 19:58
1
answer

Android. Perform independent process to the activity

In the MainActivity my APP has a button to open a Google Maps activity and show you some coordinates that you receive from a Raspberry Pi. The problem is that I do not know how to make the coordinates update while the app is still working. Th...
asked by 25.05.2017 / 08:32
2
answers

Search engine on android

I'm trying to make a search engine in my android app. It would be something like this. I get the data in a json: { "naturaleza": [ { "especie": "flores", "array_tipo": [ { "tipo": "rosa", "texto":...
asked by 24.05.2017 / 16:43
1
answer

How can I pass several items in another activity

I have a list full of items, and I wanted to pass 3 of the items in another activity, then I go back to the list to go through 3 other items more ... so on (the chosen items should appear as a list). This is my code: @Override public void o...
asked by 22.06.2017 / 15:04
1
answer

Get DaoSession in library project

Good morning Greetings to all, I am currently using learning to use greendao 3, I have read several tutorials and in all examples use greendao within an app, instead I am implementing it in a library project, my question is how to get the DaoSes...
asked by 18.05.2017 / 16:33
2
answers

The app stops when trying to enter data into a database [closed]

I'm new to programming in android studio, I try to make an application that manages a database of SQLite however at the time of trying to record data the app stops. These are my codes: NOTE: I am working with fragments. XML fragment: <...
asked by 27.05.2017 / 00:49
1
answer

Put linearlayout at the end of the screen in a map activity

I want to set a layout on the screen, at the end of the whole. The activity is a map. This is my code of layout <LinearLayout android:layout_width="match_parent" android:layout_height="75sp" android:backgroun...
asked by 15.05.2017 / 09:14
1
answer

Upload image to Firebase using the camera phone

I have an onActivityResult, with two Case, one to choose an image from the Gallery, show it in the activity and then upload it to Firebase, all right here, then the other Case is to be able to take a photo with the camera and the sample, I tried...
asked by 15.05.2017 / 08:15
1
answer

Audio channels available in Android AudioManager

I'm looking at the channels available on Android that are obtained from the AudioManager I have some doubt so that they serve or that affect AudioManager.STREAM_MUSIC AudioManager.STREAM_RING AudioManager.STREAM_ALARM AudioManager.ST...
asked by 13.05.2017 / 22:02
1
answer

Insert Layout's in ViewPager

I have an activity that in the lower part of the same position a ViewPager where I intend to add an edit-text and a couple of buttons. public class MyFragmentPagerAdapter extends FragmentPagerAdapter { // List of fragments which are going to...
asked by 05.05.2017 / 10:01