Posts by Júnior • 509 points
18 posts
-
1
votes2
answers351
viewsQ: Problem with string comparison
I need to compare if the name typed in textField is equal to the "root" user. At the time of comparing even typing root the Eclipse informs that it is invalid. Unfortunately I don’t understand the…
-
1
votes1
answer10500
viewsQ: Create script to run program by passing only part of the name
I created a small script (.bat) for the installation of several programs silently. Over time the programs keep updating requiring me to edit the code to put the version number of the program. Doubt:…
-
3
votes2
answers394
viewsQ: Spinner together
I have a Spinner who is responsible for the States of Brazil. And another Spinner responsible for Capitals of Brazil. I need you when you go selected the State another spinner of Cities be unlocked…
-
1
votes1
answer1104
viewsQ: Android - Generate Apk
How do I generate apk in Android Studio? 1.0 - I went to Build -> Build APK. 1.1 - When finishing I put it on the smartphone and gave the following error: There is a package analysis problem. 2.0…
-
0
votes2
answers3867
viewsQ: Add Item to Spinner
I need to use Spinner in my app... I’m having trouble adding elements to the list. I found it very complicated. Link: https://www.mkyong.com/android/android-spinner-drop-down-list-example/ I’d have…
-
0
votes1
answer53
viewsQ: Manifest Merger failed with Multiple errors
I’m with Androidmanifest.xml accusing error. Other than that on line 17 you’re wrong: Top level element is not completed <action android:name="android.intent.action.MAIN" />…
-
0
votes1
answer2042
viewsQ: Activity not found
I deleted the MainActivity and created 2 Layouts. One by the name of activity_acessar and activity_menu. But when I run it displays the following message. Error running app: Default Activity not…
-
1
votes2
answers1205
viewsQ: Call Another Layout
When entering email and password the app should call another layout. I just can’t seem to do it... Intent intent = new Intent(this, R.layout.activity_estado); startActivity(intent); Informs the…
-
2
votes1
answer42
viewsQ: Error using Lock Screen
I am trying to Block the Screen with the following code: protected void onBloquear(View view) { DevicePolicyManager mDPM = null; mDPM.lockNow(); } Source:…
-
2
votes1
answer574
viewsQ: Android - Error with setContentView(R.layout.Home);
Good afternoon, I’m having trouble with setContent it reports the following error: Cannot solves Symbol 'Main' This is happening in the -> protected void onCreate(Bundle savedInstanceState) {…
-
3
votes3
answers62
viewsQ: Error with "Method"
I am trying to run a button and it accuses of the following error: java.lang.Illegalstateexception: Could not find method java.view.Tools (call_Desligar)(View) in a Parent or Ancestor Context for…
-
1
votes1
answer60
viewsQ: Return focus to a Jformatedtextfield after clicking button
I need to click on Wipe Button on the Login screen the CPF and Password the cursor goes back to the CPF field. JFormattedTextField ftUsuario = new JFormattedTextField(); try { MaskFormatter…
-
-1
votes1
answer104
viewsQ: Add scroll in window
I created a window that was Width 360 x Height 800. Only 800 height can not be seen on the monitor. How do I add a scroll in the window?
-
1
votes2
answers970
viewsQ: How to connect Virtual Android with Postgresql on Local Machine?
Good morning, I’m trying to make a connection to Android Virtual servant in the Eclipse ADT with JDBC do PostGreSQL 9.1. To my knowledge in Android it’s little I spent a lot of time trying to…
-
0
votes1
answer403
viewsQ: Android - Connection to Postgresql
I’m trying to connect the Android directly with PostgreSQL. Include in the project package: postgresql-9.1-903.jdbc4.jar and I’m using PostgreSQL 9.1. But I can’t successfully make the connection. I…
-
2
votes1
answer343
viewsQ: Sqlite being accessed remotely
Would it be possible to create an App connection on Android with the Sqlite service with PC Local? I’m not talking about a database inside the Android itself, but communicating with the same PC.…
-
-1
votes1
answer124
viewsQ: Doubt - Google Drive + Sqlite
Good night, You could use the Google Drive service as Sqlite HOST? Thank you!
-
15
votes3
answers5035
viewsQ: When to use Sqlite?
When I should and should not use Sqlite? I have a project that I intend to do I have no idea how many tables will be, but I believe that more than 15 with about a thousand lines in some tables. It…