Posts by João Vitor • 382 points
21 posts
-
1
votes2
answers112
viewsA: How to put video inside a view
You will need to Utilize some Mports to do it with better perfection then see right what each one can do for you. import UIKit import MediaPlayer import AVKit import AVFoundation Now it will be…
-
1
votes1
answer125
viewsA: Error calling another Viewcontroller per button [IOS 13]
Hello I saw some errors in your code you are using the viewDidLoad to call another screen is not quite so see my code: class HomeViewController: UIViewController { var newBtn: UIButton = { var btn =…
-
0
votes1
answer192
viewsA: Exception in thread "main" java.lang.Illegalargumentexception: Type without superclass: module-info
I went through the same problem You can use the cruncherEnabled. In the build.Gradle file android { aaptOptions { cruncherEnabled = false } } I hope it helps you.…
-
-2
votes3
answers420
viewsA: Build does not appear for Ubmit, but appears in activity
Hello Friend Good afternoon this behavior is common I imagine that in the activity area you can notice that the app has a gray tone after a few minutes usually 30 min(there are cases that take…
-
1
votes3
answers138
viewsA: How to treat a reponse.result.value that returns as log optional([])?
I found the solution to my problem I don’t know if it’s the right way but it worked. let json = response.result.value print(json?.toJSONString())//retorna Optional("[]") if json?.toJSONString() !=…
-
1
votes3
answers138
viewsQ: How to treat a reponse.result.value that returns as log optional([])?
I am in the following situation I have a request in the Alamofire that returns me a json that may or may not have data (usually has but may not). I want to treat when Response.result.value returns…
-
0
votes2
answers48
viewsA: DAO SQLITE MVP Android
There’s a way to create a context I’ll write an example public class DAO extends SQLiteOpenHelper { public DAO (Context context){ super(context,DB_NAME,null,VERSAO); } } If it’s in Dbcontroller…
androidanswered João Vitor 382 -
2
votes1
answer34
viewsA: Is there a setBackgroud on Appwigetprovider?
The answer to my question is yes there is a way using the following code is possible to set the background of the widget.…
androidanswered João Vitor 382 -
1
votes1
answer34
viewsQ: Is there a setBackgroud on Appwigetprovider?
My question is whether the method exists setBackground in the class of AppWidgetProvider? If it is possible to use the method in the class have some path I can follow? I’m developing a native…
-
1
votes1
answer442
viewsQ: How to work with Alamofire Sponse on Swift 4?
I have the following request that returns me a json I cannot catch the live ulrs Alamofire.request(urlRequest).validate().responseJSON { response in print(response.data) do { if let data =…
-
1
votes1
answer37
viewsA: Is it possible to have native content(layouts, classes) in a hybrid application?
Yes, it is possible and not difficult to do with my project to Android I did it in a very simple way without the need for a plugin. What I did I created mine Appwidget in Android Studio modified the…
-
0
votes1
answer14
viewsQ: How to have appwidgets in apphibrium?
I have a hybrid application as I can put native widgets in it ?
-
2
votes1
answer161
viewsA: Custom mask
There are several ways to do this I have a class in my only mask project: public abstract class Mask { public enum MaskType { CNPJ("##.###.###/####-##"), CPF("###.###.###-##"), CEP("#####-###"),…
-
2
votes1
answer27
viewsA: How to get the Appwidget id when clicking it?
I got a way this way @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { System.out.println("onUpdate"); final int N = appWidgetIds.length;…
-
3
votes1
answer37
viewsQ: Is it possible to have native content(layouts, classes) in a hybrid application?
I need to run some native Android layouts and classes in my Ionic project there are some plugin?
-
1
votes1
answer27
viewsQ: How to get the Appwidget id when clicking it?
I need the ID of an Appwidget in specific to do certain action, example: widget 1- sair widget 2- entrar widget 3- nao faz nada Suppose the login was selected I will use the WIDGET LOGIN ID to do…
-
-1
votes1
answer52
viewsQ: Is it possible to create a Widget with multiple configuration screens?
I have a Widget that there is only one configuration screen but want to add one more how can I do it? I know that the first screen that appears is a Activity try to open with Intent normal but not…
-
2
votes1
answer31
viewsA: Is action confirmation widget possible?
I found the solution to my problem to all who have the msm problem here this a solution.…
-
3
votes1
answer31
viewsQ: Is action confirmation widget possible?
I have to put a Alertdialog to confirm if the user really wants to perform certain action, it is simple to do this in an Activity or Fragment only I’m having problems to do this in the widget, I…
-
0
votes1
answer528
viewsQ: How to click items from a list in Android Studio?
For now my code is like this ? how do I implement the click of the list items the click would open a new screen ListView lista_teste = (ListView)findViewById(R.id.lista_teste); String[] dados = new…
-
-1
votes1
answer119
viewsQ: How to get JSON values that Okhttp generated?
This is my code public void loginRequestAsync() { OkHttpClient client = new OkHttpClient(); HttpUrl.Builder urlBuilder = HttpUrl.parse("xxx.xxxx.xx.x.xx.xxx.x").newBuilder(); String url =…