i am using eclipse for android programing and now i need to view SQLite database in the emulator.
I followed these step:
Download .jar file
Place the plugin .jar file in your Eclipse plugins folder (e.g. /usr/lib/eclipse/plugins)
Restart Eclipse
Start up an Android Emulator w/ Debugging in Eclipse
Switch to the DDMS Perspective in Eclipse
Go to the 'File Explorer' tab to locate your device's database file
Navigate to: e.g. 'data -> data -> com.myproject -> databases -> myproject
Now when i try to Open the database file in Questoid i can't select it!
(see screen shot)
same advice?
From your screen shot there, the database does not have a "." (read: period) in the file name & extension area.
Improper: mydatabaseDB
Proper: mydatabase.db
Once the database shows the proper extension (and is a proper SQLite database), then Questoid will (I use the plugin all the time in Eclipse (Juno version)) then show the "active" button (not disabled like in your screen shot). When looking for latest database entries (what was just added into the database), I then click once again on the toolbar icon as you show there, in the upper right of the screen. I then go to the Browse Data tab for that view, then choose the table from the database I want to view the fields from.
I hope this helps.
Happy coding...
I had the same problem with "sqlitemanager": only .db-Database files are accepted.
This is the solution:
Download this Questoid SqLiteBrowser: http://www.java2s.com/Code/JarDownload/com.questoid/com.questoid.sqlitebrowser_1.2.0.jar.zip
Unzip and put it into eclipse/dropins (not Plugins)
Try following these steps:
1) Close Eclipe
2) Remove the .jar from /usr/lib/eclipse/plugins.
3) Place the .jar in /eclipse/dropins and let Eclipse try to install it for you.
4) Start Eclipse.
you can always use sqlitebrowser externally . You will have to pull your databse everytime from ddms though .
The file has to end with .db extension, so the answer is to name your database as this sqlite browser expects it to be.
Another way of fixing it is to find a year old version that does not have this constraint.
Please use the extension ".db" in lowercase, please don't try with these extensions .SLQLITE, .BD, .DB, .SQL, or similar or without extensions.
Regards,
Related
I have some files you can say a trained model that I need to get their path in my activity class.
I want to use getFilesDir()but it return "data/user/0/com.example.abc/files/".
I just don't know which folder or directory I have to paste my files exactly in order to be in this path so that these file can be get through getFilesDir().
This is the folder on your device
You can find it by opening "Device File Explorer" (this is a collapsed tab in the bottom right of your Android Studio - written vertically on the right edge, bottom)
There you open the folders data/data/com.yourpackage.name/files
Upload your files to this folder and your app can pick them up.
Hope this helps.
Use this way only to test things. For a production scenario you need to package your files in the project, like in the raw or assets folders of your app's resources, so they are contained in the .apk or .aab app bundle.
You can not access this folder via Windows Explorer. The Device must be in developer mode and adb must be running, so you can only access it through android studio or adb command shell. Keep that in mind.
As I read here: https://github.com/libgdx/libgdx/wiki/Preferences
Preferences files will be saved to ~/.prefs/ (I'm on linux).
When I run desktop app, it works fine, and preferences file is saved to the right place. But with html5, it doesn't save that file! I'm sure it was saved somewhere, because the game still can read it (it contains scores).
My code is really simple, just:
Preferences score = Gdx.app.getPreferences("Highscore");
score.putInteger("score", _points);
score.flush();
I built the game by running
./gradlew html:dist
and run it on localhost created by python
python -m SimpleHTTPServer
then go to http://localhost:8000 on Firefox.
Anyone could help? Thanks for reading, have a nice day.
I found my .prefs in my libgdx html game by running the game in Chrome, right clicking and choosing Inspect Element, clicking on the Resources tab, expanding the Local Storage tab, and examining the entry https://myAppName. This is where the .prefs are kept...
I have tried right clicking on res and adding new folders and fils with -v11 at the end of the name but I don't see the folder in the res directory when I do this?
I have restared android studio and still don't see them? Or sometimes is says thats an invalid character?
I right click on res and this is what I see then I click new directory.
Thanks for the help in advance!!
The version qualifier starts with a "v". In your instance it would be menu-v11. If you don't see it go to Explorer/Finder/whatever and check for the folder presence there.
Also I'm guessing you're trying to provide different icons for the same menu for platforms below and above API 11. You do that by providing drawable-?dpi and drawable-?dpi-v11 resources. Then you have a different icon (with same name) for different platforms and only one menu resource which uses the icon.
EDIT: In Android Studio RC 1.0 everytime I create a layout resource it puts it in the /res folder instead of /res/layout. This is a bug and your problem may be related. I would check the parent folder.
I am trying to install Oracle 11g in my laptop. Im downloading the setup files from here:
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
I have downloaded win64_11gR2_database_1of2.zip and win64_11gR2_database_2of2.zip.
I have put them in the same folder and started the setup file from the 1of2 folder. I go until certain steps and finally during installation i get WFMLRSVCApp.ear file not found popup.
I googled and i see some solutions where 1of2 and 2of2 file should be unzipped to same folder and then start setup. I did the same couple of times but still im getting the same error. Any anyone guess what is missing?
extract win64_11gR2_database_1of2.zip into win64_11gR2_database_1of2 folder first.
Then extract win64_11gR2_database_2of2.zip into win64_11gR2_database_2of2 folder.
copy all 4 files in database/ stage/ components folder in win64_11gR2_database_2of2 folder(unziped) & paste them (no replacement) in database/ stage/ components folder in win64_11gR2_database_1of2 (unziped).
Then run the setup again. I experienced in it. It works..
What you have to do is copy what is inside components folder ( i think four files ) in win64_11gR2_database_2of2.zip and paste it inside the win64_11gR2_database_1of2.zip components folder and re run the setup . it works
If you are installing the Oracle Identity Management 11gR2, you might receive the WFMLRSVCApp.ear file missing during Installation error during the database installation.
The way to resolve this error is:
Make sure you downloaded two disk
win64_11gR2_database_1of2.zip
win64_11gR2_database_2of2.zip
Steps:
Right click the win64_11gR2_database_1of2.zip file and select
Extract Here.
The software will extract in the folder named database as below,
You can see the following folders and files under database\stage, note the Date modifiedfor Components folder.
Do the same for win64_11gR2_database_2of2.zip file and click extract here, the extracted file will be placed in the same database folder
Now check the Date modified
That's it, now you can start by clicking setup.exe under database folder.
Hope it helps to understand easily.!!
I had the same problem but it's an easy one to solve: Download WinMerge and use it to merge the 2 folders that come out of the zip file from Oracle. That will do it.
http://winmerge.org/
1) Normally extract win64_11gR2_database_1of2.zip and win64_11gR2_database_2of2.zip
2) Copy directory
C:\Users\Fatality\Downloads\win64_11gR2_database_2of2\database\stage\Components (from extracted win64_11gR2_database_2of2 directory)
to
C:\Users\Fatality\Downloads\win64_11gR2_database_1of2\database\stage\Components (in extracted win64_11gR2_database_1of2 directory)
I have accidentally deleted a Java file from my Eclipse workspace.
Can i recover that? It's not in the recycle bin.
Check this page: How to restore deleted files in Eclipse
Suppose you have deleted any file by mistake. No need to worry. Deleted files can be restored from the history.
How to Do:
Right click on the project and open the context menu. And go for the menu item "Restore from Local History...".
I think local history can help you.
Just recreate the same file in same location.
Right click >
Replace With > Local History....
Select the appropriate file data
from history.
yes...
Right Click on Project in which u want to restore those files...
Right Click > Restore From Local History > (Select files) > Restore
only "Compare With" --> "Local History" did it for me. shows dates as well. (thank god!)