Posts by FelipeJM • 269 points
12 posts
-
0
votes1
answer56
viewsA: Doesn’t List View exclude the first time?
You have to control the transaction when doing some operation that modifies the database. Try something like that: public void Excluir(ListDesp pValue) { long id = pValue.getId();…
-
3
votes1
answer662
viewsA: Change application title in Xamarin Android
You can put the label on top of the Activity, like this: [Activity (Label="Awesome Demo App")] For more information:…
-
2
votes2
answers114
viewsA: Map variable only gets null value
The problem seems to be because the 'Googlemap' object has not yet been inserted into the 'map' variable. Try something like that: public class MapaFragment extends SupportMapFragment { private…
-
0
votes2
answers380
viewsA: Error in getWritableDatabase()
Try to change that line: dbHelper.getWritableDatabase(); That’s why: dgHelper = new CriaDespesas(this); database = dbHelper.getWritableDatabase();…
-
1
votes3
answers627
viewsA: Optimize Java method using the Scopes concept
Approach 2 and 3 have no difference, in both you have divided the code into separate blocks to decrease the scope of objects. On approach 1, if you still have a lot of processing to run below the…
-
2
votes2
answers588
views -
2
votes1
answer613
viewsA: How to know which page is responding to the JSP request
You can try using the return method HttpServletRequest.getRequestURI().
-
1
votes1
answer121
viewsA: How to use a list in Listview Footer?
Have you tried modifying the code as shown below: Before: View viewFooter = LayoutInflater.from(getActivity()).inflate(R.layout.listview_footer, null, false); Afterward: View viewFooter =…
-
0
votes3
answers140
viewsA: Menu as of facebook
Try to take a look at the library below: https://github.com/jfeinstein10/SlidingMenu And there’s the tutorial below too:…
-
0
votes1
answer1222
viewsA: Get item data in Listview
Try it this way. On your Activity you put: listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int position,…
-
2
votes3
answers422
viewsA: Doubt about extends Application
Yes, there is that. You can create a class like this: public class ClasseApplication extends Application{ @Override public void onCreate() { super.onCreate(); //Código a ser executado quando o…
-
0
votes2
answers1734
viewsA: How to pass data from a Pager/Fragment to another Activity?
Have you tried with Intent? Intent intent = new Intent(fragment.getActivity(),ActivityQueRecebeOsDados.class); intent.putExtra("dados",objetoComOsDados(String,Int... *Tem que implementar…