Questions tagged as 'android'

1
answer

Use application made in VB6 in a smartwatch

Is it possible to create an application for the smartwatch in which the application is already made in Visual Basic and has the BDA in SQL Server? The purpose is for the user to be able to see the data in smartwatch such as a normal dashboar...
asked by 09.10.2016 / 12:50
1
answer

How can I put a variable inside a resource string?

How can I put a variable within a resource string? I have the following string: <resources> <string name="card_closed">O cartão Nº _var_ está fechado! </string> </resources> How can I put my variable _var_...
asked by 27.06.2016 / 16:21
1
answer

How to change the Activity inside a fragment with Button?

I have a simple App, it has two areas, one with the Fragment and the other with a Button Group How to do so that by clicking the buttons I can change which Activity will be loaded in Fragment? And how to keep save the state of the las...
asked by 27.06.2016 / 09:28
1
answer

How to download WebView files to the SDCard if available

The App is a simple browser that works like WebView. This code causes the files to be downloaded to a custom folder and works perfectly. mWebView.setDownloadListener(new DownloadListener() { @SuppressLint("InlinedApi") public void...
asked by 29.07.2016 / 21:17
1
answer

WebView does not open the requested link

I was looking to open links related to my domain as I did in my previous question and got an answer.    # I put this code in AndroidManifest.xml: <intent-filter> <action android:name="android.intent.action.VIEW" /> <...
asked by 28.07.2016 / 22:44
2
answers

Welcome Cardview

I have a welcome cardview. I would like to after the first preview the user pressed the Ok button, understood and the card quit and no longer appears. I'vealreadyputXMLonClick:<android.support.v7.widget.CardViewxmlns:card_view="http://schema...
asked by 20.07.2016 / 20:57
1
answer

File Upload to Rest Web Service via Android

I have a Webservice Rest using the Jersey libraries that are working properly. It turns out that I need to add the functionality of uploading the photos of the items that the user photographs in the field. I added the following code to the WebSe...
asked by 14.06.2016 / 19:57
1
answer

What's the difference between these two means of getting the PackageName?

I have these two code snippets, the two display the same result, so I would like to know what the difference is between them. 1 jclass cls = (*env)->FindClass(env, "android/content/ContextWrapper"); jmethodID mid = (*env)->GetMethodID...
asked by 15.08.2016 / 23:51
1
answer

Error in ListActivity, probably related to OnItemClickListener

I'm having a problem understanding what's going wrong in this code, I feel the problem may be related to the OnItemClickListener. When I try to emulate it it responds with a message like this: "Unfortunately, MyAplication has stopped.". pu...
asked by 13.08.2016 / 01:01
1
answer

What ideal network protocol to communicate an Application with Arduino?

I've done creating an app through Android Studio. I have an Arduino Mega, Shild Ethernet and infrared sensors. I would like to communicate my arduino with my application over the internet. Ex: I was traveling, when the infrared sensor trig...
asked by 13.08.2016 / 00:47