yashsingh1/xdaforums huggingface dataset:
[IDEs, Libraries, & Programming Tools] aditya.kamble:
DBXDroid​

Simple ORM Library for Android SQLite Database​

Description

This is android library to simplify Android SQlite Database

It become very tedious to write large Android SQLite Open helper for simple database usage. So I developed this library to create android databases very easily using straight forward functions.

Github Project Link - DBXDroid-Github

Direct Download Link - DBXDroid-Sourceforge

Features

Create Android SQLite Database

Add Tables to database

Insert new entry to tables

Fetch entries from tables

Ability to interact with database directly using getDatabase() function.

Compatibility

DBXDroid library is compatible for Android 2.3+

Installation

To use DBXDroid ,

Download Library

Extract it to DBXDroid directory

Copy it to your Android Project Workspace

Add it as a project to your Android ADT

Edit properties of your project -> Android -> Library -> Add DBXDroid as Library

Library is now ready to use

Use

1. Define Database

DBXDatabase studentDatabase;
studentDatabase = new DBXDatabase("college.db", this);

2. Create ColumnList

DBXColumnList studentColumns = new DBXColumnList();
studentColumns.addColumn(new DBXColumn("student_id",DBXFieldType.INTEGER));
studentColumns.addColumn(new DBXColumn("student_name",DBXFieldType.TEXT));
studentColumns.addColumn(new DBXColumn("student_dept",DBXFieldType.VARCHAR));

3. Add new Table to Database

studentDatabase.addTable(new DBXTable("students", studentColumns));

4. Create Database

try {
studentDatabase.createDatabase();
} catch (Exception e) {
e.printStackTrace();
}

5. Open Database

try {
studentDatabase.openDatabase();
} catch (Exception e) {
e.printStackTrace();
}

6. Inserting new Entry to table

DBXFieldValuePairList studentFieldsList = new DBXFieldValuePairList();
studentFieldsList.addFieldValuePair(new DBXFieldValuePair("student_id", Integer.parseInt(studentID)));
studentFieldsList.addFieldValuePair(new DBXFieldValuePair("student_name", studentName));
studentFieldsList.addFieldValuePair(new DBXFieldValuePair("student_dept", studentDept));

try {
if (studentDatabase.insertEntry("students", studentFieldsList) != -1) {

Toast.makeText(this, "Added", Toast.LENGTH_SHORT).show();
}
} catch (Exception e) {
e.printStackTrace();
}

7. Fetching Entries

DBXResult dbxResult = studentDatabase.getEntries("students");
String[][] result = dbxResult.getResults();

8. Access Database Directly

public SQLiteDatabase getDatabase();

This method returns SQLiteDatabase object reference for your database, So you can interact normally and directly to database

9. Closing Database

try {
studentDatabase.closeDatabase();
} catch (Exception e) {
e.printStackTrace();
}

Refer DBXDroidDemo for Full Demo

License

DBXDroid is under the GNU General Public License v3.0 License.
[IDEs, Libraries, & Programming Tools] 101 dalmatians:
sdk? or jdk

s.o.s so this is a java script object oriented based sql form relational database that has a sdk acting like the LRAD filtering data through normal forms?

If you decide to further inspect the contents of the p32m x 360f512 l.h file (it is a simple

text file that you can open with the MPLAB editor), you will see that it contains an

incredibly long list of definitions for all the names of the internal special-function

registers (often referred to in the documentation as the SFRs ) of the chosen PIC32 model.

If the include file is accurate, those names reflect exactly those being used in the device

datasheet and the PIC32 reference manual.

Here is a segment of the p32m x 360f512 l.h file in which the special-function register that

controls the watchdog module ( WDTCON ) and each of its individual bits are assigned their

conventional names:

...

extern volatile unsigned int WDTCON__attribute__

((section( " sfrs " )));

typedef union {

struct {

unsigned WDTCLR:1;

The Adventure Begins 7

unsigned WDTWEN:1;

unsigned SWDTPS0:1;

unsigned SWDTPS1:1;

unsigned SWDTPS2:1;

unsigned SWDTPS3:1;

unsigned SWDTPS4:1;

unsigned :7;

unsigned FRZ:1;

unsigned ON:1;

};

...

Back to our Hello.c source file; let ’ s add a couple more lines that will introduce you to

the main() function:

main()

{

}

What we have now is already a complete, although still empty and pretty useless, C

language program. In between those two curly brackets is where we will soon put the first

few instructions of our embedded-control application.

Independently of this function position in the file, whether in the first lines on top or

the last few lines in a million-lines file, the main() function is the place where the

microcontroller will go first at power-up or after each subsequent reset. This is actually an

oversimplification. After a reset or at power-up, but before entering the main() function,

the microcontroller will execute a short initialization code segment automatically

inserted by the MPLAB C32 linker. This is known as the Startup code or crt0 code (or

simply c0 in the traditional C language literature). The Startup code will perform basic

housekeeping chores, including the all important initialization of the stack, among many

other things.
[IDEs, Libraries, & Programming Tools] onlyolli:
This is no ORM library. There is no mapping from or to objects in this code. Have a look at http://en.wikipedia.org/wiki/Object-relational_mapping for the differences. As examples for real ORM libraries for android, OrmLite or GreenDAO come to mind.

Furthermore, there are a lot of problems with this code.
[IDEs, Libraries, & Programming Tools] aditya.kamble:
Its ORM Like Library

Yeah it is not fully ORM library but it is ORM like library which provides easier functions can be adopted fast by developer when they dont have time to learn proper ORM library
[IDEs, Libraries, & Programming Tools] onlyolli:
Nope, sorry, it is really not. All it is is a few functions to create a database schema programmatically and a few functions to do some conversion from and to strings. This is nothing anyone should touch if he/she wants to do proper android software development. If you dont have the time to learn some real ORM tool, then you're better of not developing at all. It takes just a few minutes to get started with something like SugarORM (have a look at http://satyan.github.io/sugar/getting-started.html to see what i mean) which provides a real benefit to your application.
[IDEs, Libraries, & Programming Tools] dperiwal:
JDXA ORM for Android

You may want to check out JDXA, a simple yet powerful, and flexible ORM solution for Android. JDXA easily supports inheritance, one-to-one, one-to-many, and many-to-many relationships and offers a POJO (Plain Old Java Objects) friendly non-intrusive programming model, which does not require you to change your Java classes in any way:

No need to subclass your domain classes from any base class

No need to clutter your source code with annotations

No need for DAO classes

No source code generation or pre-processing of your code

Automatic creation of database schema

Get more information including code snippets and a FREE trial download at softwaretree.com
[Wear OS Q&A, Help & Troubleshooting] hidara:
So I picked up the new Oneplus to replace my note 3. Needed something without Knox to work properly with the radio in the car.

So far the Oneplus is great, excellent battery life but some minor touch screen issues.

I'm having a slight issue with the connection with my moto 360.

With the Samsung I used to be able to ask the watch questions like what time it was in a certain country and get the answer in a card straight away. With the Oneplus if I ask the same questions it tries to get me to open a webpage in my phone.

Does anyone have any idea if there is a setting to get this to work?

Cheers for any replies

D
[Wear OS Q&A, Help & Troubleshooting] clintkev251:
Have you made sure to open google now at least once on your phone? Not sure if its the issue but its worth mentioning.
[Wear OS Q&A, Help & Troubleshooting] hidara:
Tried that, also tried a few different settings in google now. I still get redirected to "open on phone"

Cheers for the reply

D
[AOKP Q&A] sundar.raman.r:
I'm on AOKP 4.4.4 Nightly build 2014-10-18 for my Samsung Galaxy Note II - T-Mobile.

I have this problem that whenever my phone dies out of no battery and I connect it to power outlet the phone doesn't charge. However when I connect it to USB it starts charging until the point the OS detects the phone. Upon detection I get the message 'USB Device Not Recognized' and the phone wouldn't charge any further.

This problem is killing me preventing the phone from being charged both from main power or from USB. Has anyone faced this issue before? How would I get rid of this issue?

Thanks,

Sundar.
[Sony Xperia M] muthurmanoj:
please tell me how to dedox my xperia m running stock rom .thanks in advance:confused:
[Sony Xperia M] Nicklas Van Dam:
you want tutorial how to deodex stock rom? or you want only rom that have been deodexed?

if you want rom you can find in here, just select your firmware ok ;)

15.4.A.0.23

Deodexed Files

15.4.A.1.9

Deodexed Files

15.4.A.1.10

Deodexed Files

nah after you download that files, extract that file and copy to your internal storage, after that copy the .apk file into your /system/app with root explorer or es file explorer and replace all app that name is same, and set permission to rw-r-r after that delete all the .odex file on your app folder after that reboot your device and you have deodexed rom

Done :laugh:

nah if you want know how tutorial deodexed rom just give me reply again ok;)

i will wait for:o
[Sony Xperia M] gugan subramaniam:
Please give tutorial my rom is 15.5.A.1.5
[Sony Xperia M] Nicklas Van Dam:
you're using dual sim device ya C2005 or C2004?
[Sony Xperia M] gugan subramaniam:
Ya c2004
[Sony Xperia M] Nicklas Van Dam:
ok this tutorial bro

first of all you must prepare this for your pc

Java JDK

Winrar

Smali Baksmali Compiler

and the last prepare your framework files from your /system/framework

- first make sure the application is already installed java jdk extract the files smali_baksmali anywhere if you've copied the files the framework of the folder system / framework folder into smali_baksmali

[IMG="1"]http://2.bp.blogspot.com/-V2LjLw-72mk/U6bQzlay0-I/AAAAAAAABbg/A-nnT42jflg/s1600/capture-20140622-194843.png[/IMG]

- if it is copy the apk file you want to deodex example odexnya SystemUI.odex SystemUI.apk and its file into the folder smali_baksmali

- after that do simultaneously press the shift key by right-clicking on the smali baksmali folder and select open command window here

- if open cmd like this

[IMG="2"]http://2.bp.blogspot.com/-so6xYvtXAlk/U6bSU1EHo3I/AAAAAAAABbs/ZKnMXIY-4qU/s1600/capture-20140622-195523.png[/IMG]

- enter the following command

java -jar baksmali.jar -x SystemUI.odex

if the above process is successful it will be in accordance with the picture below

[IMG="3"]http://1.bp.blogspot.com/-m0N0lJ5ZgWk/U6bUI_hSrXI/AAAAAAAABb4/6uXU-AGTEP8/s1600/capture-20140622-200216.png[/IMG]

- If you already enter this command again to remove the file classses.dex

******* java -Xmx1024m -jar smali.jar out -o classes.dex

- if the above process is successful it will appear classes.dex file in the folder you smali_baksmali

[IMG="4"]http://3.bp.blogspot.com/-4LiUAPq89pM/U6bVF0IW2mI/AAAAAAAABcE/cNJSDZdW9aI/s1600/capture-20140622-200706.png[/IMG]

- if it is open earlier systemui.apk file using winrar right click and open with winrar until the demolition of the file systemui.apk

[IMG="5"]http://2.bp.blogspot.com/-vLMrevXcuHM/U6bVn_7kEQI/AAAAAAAABcM/3-eyNe_jZUI/s1600/capture-20140622-200928.png[/IMG]

- if it drag classes.dex files into winrar to enter into one piece

completed and congratulations you have an application that is already in the file deodex well now just copy the file into the system / app and set permissions rw-r-r

nah may be that's my way, deodex with smali_baksmali compiler, if you have problem with java just tell me ok;)
[Sony Xperia M] gugan subramaniam:
Thanks bro

If possible pls explain Wt is the use of dedox
[Sony Xperia M] Nicklas Van Dam:
deodex your rom, can make your internal storage and system storage more free, because all of your app in your system doesn't need any .odex file again, so that safe more space in your rom, and if your app have been deodex you will be more easyly to do modification your app, like mod the interface, fungtion and manymore, but if your rom is deodex may be the problem is your boot time will take a little longer, only that. yap that's my explain,;) just ask again if you still understand ok;)
[Sony Xperia M] gugan subramaniam:
Thanks bro.the java jdk link given above is not take me. To the download page. Pls give another link or solution
[Sony Xperia M] #divy:
Can you help in porting cyanogenmod -12 for xolo a500s. Thanks in advance.
[Sony Xperia M] Nicklas Van Dam:
ok, what operating system do you use for your pc?;)

Windows or linux? or may be mac?

and tell me the bit too ya

x86 or x64?

---------- Post added at 06:51 PM ---------- Previous post was at 06:49 PM ----------

hmmm? what you mean bro? are make cm 12 for your device:eek:?
[Sony Xperia M] gugan subramaniam:
Windows 8

x86
[Sony Xperia M] Nicklas Van Dam:
http://download.oracle.com/otn-pub/java/jdk/8u25-b18/jdk-8u25-windows-i586.exe?AuthParam=1417003149_e35dd6f5aa10c540914a8e37f47e95a1

this link to download it ok;)
[Sony Xperia M] gugan subramaniam:
Java jdk is not installed. Is necessary to install java jdk
[Sony Xperia M] #divy:
I am currently using stock 4.2.2 rom on my device and want to upgrade to cyanogenmod but my device is not compatible. So what to do??
[Sony Xperia M] Nicklas Van Dam:
yes, java jdk is for execute smali.jar and baksmali.jar, if you don't have java jdk you can't execute that file and you can't do this process :rolleyes:
[Sony Xperia M] gugan subramaniam:
Ok thanks bro.
[Sony Xperia M] Nicklas Van Dam:
are there is not official Cyanogenmod build for your device? or may be unofficial too?:confused:

---------- Post added at 07:20 PM ---------- Previous post was at 07:20 PM ----------

ya you're welcome;)
[Sony Xperia M] #divy:
Nope can't find any.. :(
[Sony Xperia M] Nicklas Van Dam:
may be you can propose suggestions in xda for make or build cyanogenmod for your device?

may be only that, just search your device on xda-developers after that open general and make thread to propose suggestion

i hope it will be work, because i do the same way to suggest cm 12 for my device, and now it's happen;)
[Sony Xperia M] #divy:
I am very new to xda (i have used it) but never suggested or wrote post.. Can you help in this... It will be a great help..
[Sony Xperia M] Nicklas Van Dam:
ok, just open the general tab in your device link xda-developers, after that just click new thread and write your suggest and submit your thread, and just wait for next respons ok;)
[Sony Xperia M] gamer649:
That actually isn't true I'm afraid. Deodexing files repackages the apk or jar file in a way so that the application or framework file isn't split into two files. You save about 2-3kb every so often but not often enough to be a considerable space save, you may get a total of about 20mb back if you are lucky.

The purpose of deodexing is to either theme apps or framework files or make your own modifications to the files. The initial boot time will take the longest but after that there is no difference. Also, the first launch of the deodexed app will take a little longer but again, after the initial launch there will be no difference.

---------- Post added at 12:47 PM ---------- Previous post was at 12:43 PM ----------

Here is the link to the thread where the deodexed files for the Dual SIM are. In that thread you can find a link on how to push the files to your device.
[Sony Xperia M] Nicklas Van Dam:
i'm sorry before, can i ask something ? yap you're right, there is no split file, but i'm just say this will be more free space, not say the size of apk file will be split :rolleyes:, and for the size after the deodex for it's better i've been try for all devices and all save almost 40mb - 50mb free storage of my device? deodex depending on the level of compression right? if you use low level the apk file size will change not much after deodex process and if you use high level the apk file size will change much after deodex process. but to high level compression will be make app easly to crash, i use level 1024m for the compression and there is more stable for me.

and that's all so what you think?
[Sony Xperia M] gugan subramaniam:
If I install this dedox and app. What are the original files I have to backup from my device

---------- Post added at 06:35 PM ---------- Previous post was at 06:32 PM ----------

Where did I place that dedox files and it in necessary to install services..apk
[Sony Xperia M] Nicklas Van Dam:
you can backup all of your original app on your external storage, and the deodex files, you can place in the directory /system/app

copy all .apk file in that folder, after that set permission to rw-r-r and after that delete all of .odex files except .odex file doesn't contain with the deodex file, after that you can reboot your device and after boot up

welcome to deodex rom:)
[Sony Xperia M] gamer649:
40-50MB isn't a considerable saving in all fairness. But deodexing isn't done to save space, it is done to give the ability to theme and mod apps. I have always used the Kamome tool to deodex the system partition, it has always been reliable and I have never had any crashes.

All the original files you have to back up are the ones in the /system/app and /system/framework directories. It is best to perform an adb pull of the system directory so you can have all the files backed up.

To do so do the following;

adb pull /system [LOCATION ON YOUR HARD DRIVE]

The services.jar gets installed to /system/framework AFTER you have deodexed.
[Sony Xperia M] Nicklas Van Dam:
yes you're right, deodex it's to give the ability to theme and mod apps. i usually try to mod the script inside the apk, like theming and many more :D
[Sony Xperia M] gugan subramaniam:
Give some example path for (location on your hard drive ).

---------- Post added at 07:05 PM ---------- Previous post was at 07:01 PM ----------

Pls helping me how to set permission as rw-r-r-. I am using es file explorer. If possible please attach a screen shot to make that permission
[Sony Xperia M] Nicklas Van Dam:
may be you can hold your file that you want to set your permission and after that, you choose permission and set the permission to

R W X

R W X

R W X

and you choose like this

R W

R

R

just like that, i use root explorer so it's more easy than es i think:D
[Sony Xperia M] gamer649:
If I was running the adb pull command I would do this;

adb pull /system C:\Users\Used\Desktop\XM4.3R3

The location on your hard drive can be anywhere you can write to.

Press and hold on the file you want to change the permissions to and then there should be a pop up what will allow you to select from many actions, one of them being to change the permissions.
[Sony Xperia M] gugan subramaniam:
help me to install

Guys I have downloaded the dedox file and service.jar by the link given by Gamer. I have extracted them all. Pls give the steps were to place system, framework, etc...given below the attached photos (IF POSSIBLE pls explain brefiely ). Thanks to gamer and nicklas for helping.

Again thank for nicklas for suggesting root explorer it's really gud. And gamer for dedox link :angel:

How's did I conform that my rom is dedoxed?
[Sony Xperia M] Nicklas Van Dam:
Are you unlocked bootloader? If yoiu unlocked bootloader you just only get to recovery mode and flash that zip Ok, and if your phone boot up check in /system/app and /system/framework if on that folder doesn't have .odex file you successfully deodex

---------- Post added at 12:33 PM ---------- Previous post was at 12:29 PM ----------

And if you lock bootloader, copy all file that include in /system/app folder that have you downloaded it and copy to your /system/app replace all files and after that set permission to rw-r-r do after that delete .odex file in your /system/app folder after that do the same thing with folder /system/framework copy,replace,set and delete after that reboot your phone

Done:thumbup:
[Sony Xperia M] gugan subramaniam:
I have unlocked bootloader bro after flash. I have to place the service.jar in system /framework.

Am I correct?
[Sony Xperia M] Nicklas Van Dam:
yap you're right, have you saw any .odex file on your /system/app and /system/framework folder? if isn't you succesfully deodex bro:D
[Sony Xperia M] gugan subramaniam:
Ya bro. there is no .Odex file in app and framework folder

Thanks bro
[Sony Xperia M] Nicklas Van Dam:
Ya you're welcome
[Sony Xperia M] gamer649:
Can I just say you should NEVER modify framework files on the device like you have said. It should always be done in either recovery or when you are using ADB shell and have used the stop command. Doing so while the device is still active can cause a lot of problems, including but not limited to; corrupted framework files (leading to bootloops), and bootloops due to the device restarting while replacing the file and you not setting the permissions.
[Sony Xperia M] Nicklas Van Dam:
But is that he is unlock bootloader, and he flash with recovery mode? I've been try it everytime and it's fully working bro?
[Sony Xperia M] gugan subramaniam:
Bro I found framework.apk file in framework. It is necessary to install it

---------- Post added at 08:30 PM ---------- Previous post was at 08:26 PM ----------

]Bro I found framework.apk and SemcGenericUxpRes.apk in framework folder. It is necessary to install it
[Sony Xperia M] muthurmanoj:
Guys if the possible to change in long press power button settings with current stock rom [Xperia m dula][jb 4.3] please help me....... And advance thanks
[Sony Xperia M] gugan subramaniam:
it's possible to customize power menu

Bro it is possible to add reboot(including reboot recovery,soft reboot etc...) option in power menu. Running stock rom jb 4.3 with unlocked bootloader. Thanks in advance

---------- Post added at 11:35 PM ---------- Previous post was at 11:23 PM ----------

And I have another question super su ask for update and I have update it's and it asked for binary update and it give two options update in NORMAL/TWRP,CWM. I have used CWM recovery. What options should include choose to update
[Sony Xperia M] Nicklas Van Dam:
may be you can choose TWRP/CWM bro, it's better than normal if you unlocked bootloader and you have custom recovery mode :)
[Sony Xperia M] debaxish:
shall i have to paste the whole folder after unzip (deodex_install) into internal storage or contents of the folder (META-INF, SYSTEM, del_odex.sh). reading previous posts in this thread makes me more confused. you guys are familiar with all those stuffs.

i have locked bootloader.

all i understood delow steps ..

1. unzip > internal storage < 0\deodex_install>

2. unzip/system/app/* into device/system/app/<replace with permission, delete .odex>

3. zip/system/framework into device/system/framework <replace with permission, delete .odex>

4. reboot

did i missed anything above or shall i proceed.
[Nexus 6 Q&A, Help & Troubleshooting] gogol:
Hi,

I am going to get Nexus 6 in few weeks, I ordered with delivery estimation end of December.

My question: Can I setup everything without sim card?

Things like: unlocking boot loader, turning off encryption, rooting, installing all apps and so on. To the same stage as my current Nexus 5.

Because it might took a few days for me to get the "nano" sim card. I know, I can cut the micro sim to make nano sim. But, I am thinking to just wait to get the real nano sim. Hence my question above :)

Thank you.
[Nexus 6 Q&A, Help & Troubleshooting] f1ip:
yup, just boot it up, then just hit the Skip button all the way.

no need to even connect to Wifi.

Which is what I did.