Questions tagged as 'android'

2
answers

Attach TXT file using Javamail

I'm using Javamail to send email, with attachment, on Android. When attaching a file with a ".txt" extension, it is assigning the content to the email body, not as an attached file. My code for file attachments: public void addAttachment...
asked by 23.07.2014 / 19:43
2
answers

Upload JavaScripts in WebView Android KitKat

I have a native app with WebView where I load a set of pages with a ViewPager . For each page I create an instance with WebView loading an html via loadDataWithBaseURL . As I depend on some javascripts on pages, I then load...
asked by 07.08.2014 / 18:28
1
answer

Java design pattern for code reuse

I'm developing a simple program in Java Desktop using SqLite to store local data, I would like to know which design pattern I can use to reuse Java to develop the same application for Android in my project I'm using t...
asked by 01.04.2014 / 22:12
1
answer

How to modify XML elements with Java?

I've never worked with XML before. I created the following XML configs.xml : <resources> <string name="ip"></string> <string name="username"></string> <string name="password"></string&...
asked by 29.10.2014 / 20:13
2
answers

Which Development Environments (IDE) for Android and IOS using Lua?

I want to know what Development Environment options to develop applications for Android and IOS using the Lua language.     
asked by 14.07.2017 / 21:35
2
answers

Spinner together

I have a Spinner that is responsible for States in Brazil. And another Spinner responsible for Capitals in Brazil. I need to select State another Cities spinner to be unlocked and display their respective Capital tha...
asked by 11.01.2017 / 14:49
2
answers

What's foreground and background on Android?

I would like to know what it means first or background on Android.     
asked by 23.03.2017 / 02:32
1
answer

Html.fromHtml obsolete for Android N +

In the Android 7.0 (API level 24) static method fromHtml() of the public class Html has become obsolete I do not know why, if they can tell me. Here's an example of how it was used: tv.setText(Html.fromHtml("<h3>Título</h3&...
asked by 28.03.2017 / 06:48
1
answer

Problems with Android Studio + Firebase

Well I'm developing this app, to be able to display the information of a user in an arraylist, I execute the code and it simply locks and closes the app, I reviewed the code and did not find anything, does anyone know where find the error? It...
asked by 21.10.2016 / 02:48
1
answer

How do I change the color of the bottom bar, where the "Back", "Home" and "Active" buttons are located?

I'd like to know first the name of the component (bar) where the "Back", "Home" and "Active" buttons on the android are located. On devices that do not have physical buttons for this function, the components come on the screen and stay on top of...
asked by 10.10.2016 / 20:21