Posts by Jabs • 303 points
11 posts
-
-2
votes1
answer40
viewsQ: Error while creating a file
For some reason you can’t create a file. W/System.err: java.io.IOException: No such file or directory Follow the code below: public class MainActivity extends AppCompatActivity { ImageView…
-
0
votes4
answers460
viewsQ: How do you separate word into letters in php?
I want to separate a string that has no separation in an array example $s = "123"; $array=["1","2","3"]; I tried to use it as follows valores = (array) explode("",$IdNota); but he gives Warning:…
-
1
votes1
answer70
viewsQ: How do I use @font-face for gmail signatures?
I tried to use <style type="text/css"> @font-face { font-family: 'Myriad Pro Semibold'; font-style: normal; font-weight: normal; src: local('Myriad Pro Semibold'),…
-
7
votes2
answers190
viewsA: Restart the layout
use instead of swapAdapter(adapter, true) the setAdapter(adapter)
-
5
votes2
answers190
viewsQ: Restart the layout
I made two buttons that set Adapter in recyclerview, each arrow button a different layout, but only doing so findViewById(R.id.layout2).setOnClickListener(new View.OnClickListener() { @Override…
-
-1
votes1
answer746
viewsQ: Sqlite giving "near "CREATE" error: syntax error (code 1):"
Does anyone know what’s wrong to be making that mistake? I/System.out: ERRO 1 :android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while compiling: CREATE TABLE…
-
0
votes1
answer157
viewsA: Error while loading JSON
What you have there is a json inside a json. You have to do something similar with that: JSONObject cli = new JSONObject(); cli = (JSONObject) clientes.get(0); JSONArray client =…
-
2
votes1
answer79
viewsA: Change Textview from one tab to another in Tabbedlayout
I found the solution, I’ll leave it here for anyone who wants to see how it was private ViewPager mViewPager; private static Thread t; private static TextView total,subTotal; private static EditText…
-
0
votes1
answer79
viewsQ: Change Textview from one tab to another in Tabbedlayout
I am using Tabbed Layout ("activity_carrinho"), and have three separate Ragments for each screen, fragment_product, fragment_client and fragment_payment. As it needed the screens to remain intact…
-
0
votes1
answer195
viewsA: Call a new screen using a button (Scene Builder, Javafx)
findViewById(R.id.botao).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent variavel = new Intent(context, classeSegundaTela.class); …
-
0
votes2
answers40
viewsQ: How to avoid layout destroyer in Tabbed Layout when changed tab?
I am making a system with tabbed layout and with Recycler view, in the first tab are the products, I click on a place the quantity and it marks the product. When I go to the third tab, the marking…