Questions tagged as 'android'

1
answer

Use a variable in an activity declared in another activity

In my application I have a SharedPreference variable that stores an int value for me. This value has to decrease as the user performs some actions, as if it were a counter. Let's say that each time the user presses a specific button this value s...
asked by 20.03.2015 / 19:41
1
answer

Conversion from site to application [closed]

What is the best way to 'convert' a website (with cakePHP) to an android app. I would like to convert with all the functions and the databases to be 'synchronized' The functions it has are basically those of a normal CRUD, but the CRUD of...
asked by 23.03.2015 / 20:41
1
answer

I'm using openGL on android, at the time of emulating the error

I'm testing an example found on the internet and at the time of execution gives me the following error in LogCat    03-23 09: 43: 22.286: E / AndroidRuntime (1036): FATAL EXCEPTION: GLThread   72 03-23 09: 43: 22.286: E / AndroidRuntime (10...
asked by 23.03.2015 / 14:53
1
answer

Android - Application restarting after minimization [closed]

I have an android application, where I only have one screen that gets a WebView. However, when the user accesses a page of the site, for example: mysite.com.br/contact and minimizes the app. When he reopens the app, instead of returning it on th...
asked by 02.01.2015 / 16:50
1
answer

Iterate a String array inside an object

I built the following object: public class TableHelper { private String TABLE; private String[] COLUMNS; public TableHelper (String name, String[] columns){ this.TABLE = name; this.COLUMNS = columns; }...
asked by 13.01.2015 / 18:34
1
answer

How do I get the main color of an ImageView?

I wanted to know without having to post my code, how to get the main color from a certain point within a ImageView , for example I have a frame and inside that frame has 3 colors, the color on the right is red, the color on the left is blu...
asked by 23.11.2014 / 21:04
1
answer

Sending Json via android GET

Problem in special characters ( keys, parentheses, etc. ) that contains a json that I'm sending via GET . The android generates the following log: > E/AndroidRuntime(1956): java.lang.IllegalArgumentException: Illegal > character in pa...
asked by 20.11.2014 / 12:56
1
answer

Problem with accentuation when entering data in SQLite android

I'm trying to give insert in a table, however it gives syntax error. I believe it's because of the accent, but even researching can not solve. Error log:    11-19 00: 34: 52.959: W / AQuery (21157):   reporting: android.database.sql...
asked by 19.11.2014 / 04:37
1
answer

How to implement generic data in this case?

I'm using ORMlite in my application and I want to implement a generic type in the following: public interface AdminDao extends Dao<T, Integer> { ... } where "T" would be generic. Error:    Can not solve symbol T     
asked by 30.10.2014 / 21:21
2
answers

How do I insert an event into the Navigation Drawer menu item?

How do I insert an event into the Navigation Drawer menu item? I could only do it using the non-Nav option menus. Drawer. LoginActivity.java package com.androidbegin.parselogintutorial; import java.util.ArrayList; import java.util.List; im...
asked by 28.10.2014 / 13:23