Questions tagged as 'android-fragment'

1
answer

Add marker on map ANDROID

Good evening, I have an application with a map on a swipe tab, but I want the map to mark a point on the map and start at that point. Thank you in advance. JAVA submission: public class Mapa extends Fragment { @Override public View onCr...
asked by 30.07.2014 / 23:45
1
answer

Get click id in the listview of the previous fragment

I have a FragmentA that loads a listview. This listview is populated with a hashmap getting the values from bd. When I click on item 1,2,3 ... from the list, it opens a FragmentB (details). How do I get the item id clicked on fragmentA with data...
asked by 11.06.2014 / 13:36
1
answer

How to create ListView with SQLite data in Fragment

How do I insert the SQLite data into this listview of my code: @Override public void onActivityCreated(Bundle savedInstanceState) { String[] sCheeseStrings = {"Emerson","Simone","Samara"}; super.onActivityCreated(savedInsta...
asked by 10.06.2014 / 01:27
1
answer

Android: How to update title and ActionBar and DrawerLayout items at runtime?

I need to update the ActionBar title and each of the Drawer menu items with the language change at runtime. I use the following code to change the language of my application but I can not change the title and items of the actionbar (their names)...
asked by 27.05.2014 / 23:05
1
answer

ERROR findViewById ListView fragment

Hello, I have a problem that I can not solve, I created a list view but when I call it in Java (it has an arrow below) it results in an error when testing the application, this is the error: 08-04 19:59:25.765: D/skia(23307): GFXPNG PNG bitmap...
asked by 04.08.2014 / 21:05
1
answer

Fragment context error

I have a problem, I found a tutorial to create a ListView but it is implemented with extends Activity and I am with extend Fragment and so I have an error in the place marked with an arrow: package com.sapires.Joes; import a...
asked by 05.08.2014 / 00:22
1
answer

How to open an actitivity from a java fragment

How to open an activity after clicking on a Listview that is in Fragment, I am using: public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onActivityCreated(savedInstanceState);...
asked by 01.07.2014 / 01:08
0
answers

How to use TabLayout with Fragment and Navigation Drawer?

I'm trying to develop an application with a Navigation Drawer and Fragments, where each one represents a specific screen (Start, Events, Participations, Library & About), I initially thought of using an activity for each "theme", but after a res...
asked by 03.01.2019 / 03:33
1
answer

Problem when updating ListActivity using a custom adapter

I'm working on an application where populo a ListActivity using data of a SQLite created by the program itself. When you add items to the database, the list is updated automatically, but when you remove it, the list is not updated....
asked by 01.06.2014 / 06:42
1
answer

Using Fragments

I'm a beginner on android. I'm learning using Neri's video lessons, but in his video lessons (android 2.2) I did not use fragments, but in my projects I'm creating it always creates with fragment, so much so that the layout I draw in fragment_ma...
asked by 17.07.2014 / 17:42