Questions tagged as 'android-fragment'

2
answers

Upload Map in Fragment - Android

I'm creating an app with 2 tabs in swipe, loading Fragments. Since the first one is a ListFragment (which is ok), the second should load a map, but after I tried to insert, it crashes the application and displays the error: 06-10 16:16:47....
asked by 10.06.2015 / 21:42
0
answers

Android Fragment with TextWatcher - does not work

Good morning! With the help of the staff, I made a calculation scheme that when typing the value in one editText1, another editText2 is updated automatically, and vice versa .. it's just a test converting units. Initially I was trying to integra...
asked by 22.07.2015 / 16:50
0
answers

Error executing query Sql Server with jtds [closed]

I'm like a strange situation, my code works perfectly in my environment. On the client tablet does not work ... The only difference is that my tablet has the developer option enabled. I created the application for version 3, the client tablet is...
asked by 06.07.2015 / 18:51
1
answer

When to use onCreateView () vs onActivityCreated ()?

I wanted to know the questions below: - When to use onCreateView () vs onActivityCreated ()? - Which of these two methods should I use to populate a listView with adapter?     
asked by 19.10.2014 / 20:09
2
answers

How to pass data from a Pager / Fragment to another Activity?

I'm creating an activity that has Swipe Views (ViewPager) and would like to know how to pass data from the fragment to another activity, since static methods are always required. For example, pass the position from a listView to another...
asked by 09.06.2014 / 08:55
1
answer

call a main activity method from a Fragment button

I'm using a standard android activity, the "Navigation Drawer Activity", and there's a button in the navigation bar public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true;...
asked by 15.08.2014 / 17:01
1
answer

Do I use Activities or Fragments? [closed]

I'm with a project to develop a game guide app that will show images through a server and the tabs will be pdf files downloaded and opened by the app. The stream would be: List of consoles (Listview) - > Game List (GridView) - > Scre...
asked by 09.01.2018 / 02:16
1
answer

Navigation drawer - back button

I'm trying to make the back or back button of android keep the sequence of fragments that I'm rendering according to the option chosen in my navigation menu (Navigation Drawer), however I can not, it always closes the app when I click on it ba...
asked by 12.04.2016 / 07:40
1
answer

How do I adjust my application to the screen size of multiple devices? [duplicate]

Good afternoon, I'm developing an application in Android Studio and it fits well in my Motorola Moto X 2nd Generation. But in my Samsung Galaxy Note 3, Motorola Moto E and Motorola Moto G, it gets all messy, it's a mess! I would like to know h...
asked by 23.05.2015 / 20:21
2
answers

What are the stages of the life cycle of an activity and fragment?

What are the steps in the lifecycle of an activity and fragment? What are the differences between these steps? And how can I identify in which step an activity or fragment of an application is currently in the process?     
asked by 02.10.2014 / 01:12