yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] lolxdfly:
Hi,

I have a problem with my Game App: On my device all is working fine, but at other Devices it crashes at the start. I get these errors: (Pic 1/2 sry for bad pics :S)

My Database Handler looks as following:

//...
public class SQLHandler extends SQLiteOpenHelper
{
// Database Version
private static final int DATABASE_VERSION = 6;

// Database Name
private static final String DATABASE_NAME = "MRPIGDB";

public SQLHandler(Context context)
{
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}

@Override
public void onCreate(SQLiteDatabase db)
{
// SQL statement to create the table

String CREATE_MRPIG_TABLE = "CREATE TABLE IF NOT EXISTS mrpig ( " +
"id INTEGER PRIMARY KEY AUTOINCREMENT, " +
"points INTEGER )"; // +
//"name" DATA-TYPE )";

// create table
db.execSQL(CREATE_MRPIG_TABLE);
}

@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
{
// Drop older table if existed
db.execSQL("DROP TABLE IF EXISTS mrpig");

// create fresh table
this.onCreate(db);

initDB(0);
}

//table name ***
private static final String TABLE_MRPIG = "mrpig";
//Table Columns names ***
private static final String KEY_ID = "id";
private static final String KEY_POINTS = "points";
//private static final String KEY_ = "";
private static final String[] COLUMNS = {KEY_ID, KEY_POINTS /*,KEY_*/};

public void initDB(int points)
{
// 1. get reference to writable DB
SQLiteDatabase db = this.getWritableDatabase();

// 2. create ContentValues to add key "column"/value
ContentValues values = new ContentValues();
values.put(KEY_POINTS, points);

// 3. insert
db.insert(TABLE_MRPIG, // table
null, //nullColumnHack
values); // key/value -> keys = column names/ values = column values

// 4. close
db.close();
}

public int getpoints() //called at start to draw the highstore at screen
{
// 1. get reference to readable DB
SQLiteDatabase db = this.getReadableDatabase();

// 2. build query
Cursor cursor =
db.query(TABLE_MRPIG, // a. table
COLUMNS, // b. column names
" id = ?", // c. selections
new String[] { String.valueOf(1) }, // d. selections args
null, // e. group by
null, // f. having
null, // g. order by
null); // h. limit

// 3. if we got results get the first one
if (cursor != null)
cursor.moveToFirst();

// 4. get points !!!!!!!!!!ERROR HERE!!!!!!!
int points = (Integer.parseInt(cursor.getString(1)));

// 5. return points
return points;
}

public int updatePoints(int points)
{
// 1. get reference to writable DB
SQLiteDatabase db = this.getWritableDatabase();

// 2. create ContentValues to add key "column"/value
ContentValues values = new ContentValues();
values.put(KEY_POINTS, points);

// 3. updating row
int i = db.update(TABLE_MRPIG, //table
values, // column/value
KEY_ID + " = ?", // selections
new String[] { String.valueOf(1) }); //selection args

// 4. close
db.close();

return i;
}
}

I am sorry for so much code and i hOpe someone can help me.

Mfg

Lolxdfly
[Java for Android App Development] Masrepus:
Try that, i hope it helps!

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] lolxdfly:
Thank you.

Now it works on other devices, but that dont fixed really. It dont crash. But there will be always shown 0 points, because getting the points is failing....

Mfg

Lolxdfly
[Java for Android App Development] Masrepus:
Hmm... Well i have no idea about the sqlite stuff in android, but i have done a bit of dbs with microsoft access in sql and i think to remember that one has to explicitely format a specific column as int if you want to handle it as int later on. Do you have to do that in sqlite as well?

Also it would be good if you would debug my part and closely watch if:

1. The if branch or the else branch is being executed

2. If the if branch is being executed, does the try catch block exit via the catch section or runs without errors

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] lolxdfly:
49965255 34

Idk... i am new to do something with db :S

At my device he goes into the 1st if bracket and he excutes the try succesfully. At my friends phone he go also into the if bracket but he dont excutes the try succesfull and then he goes into the catch function...

So it returns 0..
[Java for Android App Development] Masrepus:
Okay. Did you already try flooding the db with some random score data and then checking the output?

Another thing, at the try, the (cursor.getString(1))), what does the 1 mean there?

---------------------------------

Phone : Nexus 4

OS:

Pure KitKat 4.4.2 stock, no root, no mods

---------------------------------

4d 61 73 72 65 70 75 73 20 66 74 77

Gesendet von Tapatalk
[Java for Android App Development] lolxdfly:
Something crasy happend: i removed the try/catch. And i put initDB(0); at onCreate. He always inserts a 0 at start. But my friend said itvis working fine. It saves the right points and it works now. O.o

Thank you for your ideas

Mfg

lolxdfly
[Sony Xperia Z Ultra] Sebring5:
as the title says
[Sony Xperia Z Ultra] LordManhattan:
4.4? You mean 4.4.3? The current GPe build is 4.4.2, and 4.4.3 hasn't been released yet, so that's a negative.
[Galaxy Note II Q&A, Help & Troubleshooting] DarkScorpion21:
Best rom pls
[Galaxy Note II Q&A, Help & Troubleshooting] McLaren__F1:
There is no "Best" ROM, try whatever works for you.

ibtl
[Galaxy Note II Q&A, Help & Troubleshooting] cyberboob:
As stated... also this type of question is not allowed here. Answers can be subjective. It's up to you to read the threads and try roms out yourself... see which you like best.

**I will give a tip though... the best roms are usually all on the first page of the rom threads (as have the most users and support). So look there.
[Galaxy Note II Q&A, Help & Troubleshooting] zain.quraishi:
Try JellyKat V5. Its superb. Solid, stable, good battery life, comes in 240DP as well, N3 features, themes etc
[Xperia Z1 General] Geoffxx:
I can now say with some degree of certainty that I have fixed the KK battery drain heating issue and it does make sense and my thoughts on google profiling seem to be correct just that I didn't realise this particular issue could be disabled in settings.

Symptoms of problem

1. Phone not sleeping (staying warm on standby)

2. Not Charging correctly (longe time or not able to charge)

3. Media Server staying active (scanning SD card worse if you have large external SF loaded with files)

4. Sluggish performance

Simple cure

Go to settings/accounts/google/Ads and tick box for "opt out of interest based Ads"

also note that the long named folder on your internal and external sd similar to this .hgsdgfasfueuedhfyjei is your ads id that google uses to profile your content - this process requires that google scans your files and if you have nearly 80gb then it causes obvious problems, this folder only appeared after upgrade to KK
[Xperia Z1 General] jancarlos1597:
Let me test and I'll let you know if it work.

Thanks for the tip.
[Xperia Z1 General] Geoffxx:
please do
[Xperia Z1 General] masterv1:
I have to say that this isnt a fix, i have had this setting since it is there and since I upgraded to kk the heat problem.

Gesendet von meinem C6903
[Xperia Z1 General] Geoffxx:
yes there may be other causes which I may also have mentioned here, google has admitted there is an issue with the camera module and apps that call it like Skype - to be fixed in 4.4.3

I have worked with this problem now for weeks and this is the first major step in finding a complete solution for my Z1 - give it a while before you denounce it, you may have apps that are not written for KK that can cause issues - I have already ruled them out and was still left with a serious problem - the Ads setting fixed it 100%, I am now gradually installing apps again

This is a complex problem
[Xperia Z1 General] masterv1:
I found out that deactivating wifi optimization will help a bit with heat and battery.

Gesendet von meinem C6903
[Xperia Z1 General] Destroyedbeauty:
Isn't this one going to reduce battery usage when being on a Wifi connection?
[Xperia Z1 General] del1701:
Thanks Geoffxx you are right that this is a very complex problem and Google should have issued a fix long before now but when they do how long will it be before Sony release it? Also why have Google bought these new security measures in knowing that a lot of the apps on their app store are not compatible and it will cripple a lot of their users phones?

I'm a hundred percent behind you in what your saying and for me Google are leaving a very bitter taste in my mouth and apple or wp are looking very attractive at the moment unfortunately [emoji20]
[Xperia Z1 General] thaicom:
At the moment it helps...
[Xperia Z1 General] mokuni:
Will try myself and report back.
[Xperia Z1 General] juliospinoza:
My problem was solved when I used wakelock terminator on Google Play services. I think I'd related with ads and location services. So far so good not issues with Google now.
[Xperia Z1 General] masterv1:
Yeah it should lower the battery usage, but for me it does the opposite.

Gesendet von meinem C6903
[Xperia Z1 General] nalab1:
If I tick the "opt out of interest based Ads" from settings can I delete the file named like .hgsdgfasfueuedhfyjei ?

Regards,

Alan
[Xperia Z1 General] zigory:
Never ending story...

Tell me why do I not have those problems with battery?
[Xperia Z1 General] pehkblui:
I don't really have a battery drain issues, and occasionally the phone gets quite warm after I have used it for a while.

I do have a 64G external SD which is nearly full, and I do suffer from sluggishness sometimes. It was like in the 2.2 days where you get occasional jerkiness while scrolling. Never had these problems before 4.4.

Also, it takes a long time for the call screen to go off after I terminate a call - don't think this has anything to do with this ads stuff, but ...
[Xperia Z1 General] Geoffxx:
everyone has different configurations apps setting attachments etc - in my case I had SW2 (with it's apps) apps that I had installed over the years from XZ which I like to use - 64gn Ext SD installed

I worked for weeks to try and cure this issue since KK release, hours of deleting/disabling apps processes - wiping my phone completely - removing the ext sd card and reformatting, then scanning all the files with various tools and putting them back on the SD

sometimes I got a result and the phone would calm down for a day but then returned with a vengeance, it reached a point were the only way I could charge the phone in the dock was to turn it off as the charger didn't have enough to compensate for the drain

the issue always seemed related to the ext SD if I unmounted the card it vastly improved but still wasn't just quite right, the clear indication that a problem existed was the heat and the mediaserver using 40% of battery

I am very protective of my data and my privacy and opt out of everything possible - no clouds - no syncs - don't use FB or twitter - all google/sony social stuff is disabled as much as possible but the one I missed was the Ads setting in accounts/google not sure if it existed in 4.3 - once I ticked that box my phone is 100% normal, I have installed my apps back again and everything is still running smooth and cold, my phone can now go 2+ days without needing recharged which is much better than <6 hours

It is fixed 100% and I can say that with complete confidence

If you still have an issue then here are the steps I would advise

remove all installed hardware - check

Remove all user installed apps - check

if still have a problem do a repair update with PCC

return device to sony to check for hardware fault

PS forgot to mention - no need to delete those long folders .hhfdhfhsysyfghshsusd they will keep coming back
[Xperia Z1 General] Geoffxx:
I saw symptoms like this when I inadvertently enabled some double tap/magnification option in accessibility settings, it went away once I disabled it
[Xperia Z1 General] alighilzai:
Battery drains, no matter what you do, processor eats energy and so do other sensors :( ... :cyclops:
[Xperia Z1 General] Geoffxx:
now there's a man with all the answers lol

I expect my Z1 to last more than 5 hours on standby in my pocket

it is now lasting over 3 days without charge
[Xperia Z1 General] Jonas740:
i think

Sorry to hear about battery draining issues.

This is actually something that works on my phone, but i have however noticed a decrease in batterylife and i havent changed anything.

But fully charged 5 in the morning and modest use to 15:00(some msg, music and so on). after that i use it like nonstop with the screen on and at about 21:00 the battery says about 10%. i think that is pretty good.
[Verizon HTC One (M8)] Quadrider10:
So I've been playing with some kernels and have been deciding between stock and checkm8. One thing that I noticed tho is that you can force all cores at 2.3ghz, but after about 50% load it automatically drops to 2ghz. And at 100% cpu load it drops again at 1.5ghz. is there anyway to stop this so it runs at 2.3 even at 100% load until a certain temp?

I noticed this on both stock and checkm8
[Verizon HTC One (M8)] richii0207:
What game are you trying to run that would need all cores at 100% so it doesn't lag?
[Verizon HTC One (M8)] Quadrider10:
Benches and such... Like I just don't want the cpu and gpu to throttle to a lower frequency just because of high load. I only want that to happen because of temps.
[Xperia Z2 Q&A, Help & Troubleshooting] lewis-brooks:
Anybody got a good app for turning notifications off at night but allow certain contracts to ring? Also looking to disable the LED light and sound etc

So far only app I have on my Z2 is Quiet Sleep which does the phone calls and sound.
[Xperia Z2 Q&A, Help & Troubleshooting] pauley:
Check out Nights Keeper. I've been using it for several months now on a few different HTC phones & love it. There isn't an option to disable the LED, unless via stamina mode perhaps, but otherwise it should be what you're looking for.

https://play.google.com/store/apps/details?id=com.nightskeeper

Edit: Sorry, you've already accomplished the same thing with Quiet Sleep that Nights Keeper does I think. I'll leave in case someone else could use it & stumbles onto this thread.
[Xperia Z2 Q&A, Help & Troubleshooting] hillbicks:
I'm using tasker for that. As soon as the phone is docked and in my Wifi I turn off all the sounds and the LED notification. Turn on all the sounds as soon as I undock the phone. Works just fine. You can also define either a single contact or all your favorite contacts to ring regardless of that setting. Same goes for received texts.
[Xperia Z2 Q&A, Help & Troubleshooting] Tomo1971:
Another vote for nights keeper. I was working night shift where I had finished my work allocated I would go back home to bed. I'd set it up so only certain people could get through (ie the boss and office) whether that be bus sms or call.

It's got a handy feature whereby, if anyone calls more than a predetermined number of times (you choose) there call will get through after x amount of tries.
[JAM, MDA Compact, S100 General] DJ Chase:
Hi,

I was wondering if the battery of HTC Magician is the same as the battery of the HTC Prophet?

Reason for asking is that the 2 PPCs have the same measurements and the original battery of both is 1200mAh.

But, for the S100 I found a 2500mAh battery, where there are no other opportunities for the S200.

Does it fit? Do they have the same contacts? Can anyone check it?

Thanks in advance.

Regards,

DJ Chase
[JAM, MDA Compact, S100 General] Chatty:
According to this thread, yes.
[Galaxy Note 3 Exynos Android Development] nani35:
where the original page http://sxtpdevelopers.com/samsung-note-3-knox-fix-qualcomm/

Due to thank you very much

Hi friends, you know that the popular device samsung knox security application brought to my own devices here now that I've tried N9000Q and positive results will tell you the details of my topic

Knox Warranty Void title in two models: one is the original if you can make this counter resets your phone. HA3GZS code for it using a device with a file of the bootloader reset process is done behind the original bootloader still installing the old bootloader is installed and turned into download mode image is a little different. This differentiation removed all you have to do to return to the original after installing the original ROM wipe out the original recovery data / factory and wipe cache operation enforcing what's on the device to erase everything. If the image does not improve even though you do not do this again to install the original ROM again apply the wipe process.

Custom parts to wipe process that will be corrected after the official form. Making data unavailable without deleting the original exactly. The counter can be reset using Custom ROM but not exactly the picture of all of the operations necessary to make

After reset, re-install custom ROM or cwm recovery, If root counters again with official status increases again as custom changes.

Ago

Mod Edit – Some content removed

After

Mod Edit – Some content removed

Result

Mod Edit – Some content removed

DOWNLOAD

Mod Edit – Some content removed

Miror

Mod Edit – Some content removed

İnstallation

You are responsible for all the transactions you can do

Open Odin

Get your device to download mode

Download the tar. file extension

Odin pda start the installation part of the show

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] rockadz9:
download BOOTLOADER_HA3GZS link error

please your link fix:(
[Galaxy Note 3 Exynos Android Development] cocomeoo:
Cannot download it

Broken link
[Galaxy Note 3 Exynos Android Development] maNiaoH:
Link is dead. Please fix. Thanks!
[Galaxy Note 3 Exynos Android Development] murat25750:
Link here

http://d-h.st/APr
[Galaxy Note 3 Exynos Android Development] nani35:
Teşekkürler murat kardeşim

Links renewed

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] tuannghia1985:
Someone even tried that? Cuz i dont risk my life to brick my phone yet. #_#
[Galaxy Note 3 Exynos Android Development] AndroidNoob22:
Hasn't all this been copied from here : http://xdaforums.com/showthread.php?t=2642207&page=8, without their credits, link to original thread/download link and permissions? you can clearly read on the page here : http://sxtpdevelopers.com/samsung-no...-fix-qualcomm/ "though they haven't created anything or anyone has created it rather it just got leaked from Samsung officials", that mirroring these files is not allowed, hence you guys have done it without permissions, this violates rules of XDA and others related to their hard work and specially people from Developers Only section ie, Xclub, E:V.A, RuchRha, surge12, ryanbg and many more who are working/testing and spending their quality time to help the community without expecting any money but certain respect of their hardwork, if you really want to help others at this Knox reset rather than copying and writing in your own way and show you've done it re-edit this thread with only linking them to appropriate thread or wait for the devs from there to themselves post it, or rather get it closed, Thank you.
[Galaxy Note 3 Exynos Android Development] Ancientsthe:
What do you mean by "Hello friends samsung s3-s4-s5 as known and Note 3..." does the knox reset also work for the Samsung Galaxy S5 (SM-G00F) ?
[Galaxy Note 3 Exynos Android Development] maNiaoH:
Work Great! Thanks for share
[Galaxy Note 3 Exynos Android Development] nani35:
I found only a general description bi samsung did I mention that Knox brought to popular devices, and the result was positive only use N9000Q

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] nani35:
See the intention of anyone's labor not steal me this way thieves to position your'm so sick, I give you this link you have no one I've never seen I just try my make 'Cause his is positive to indicate that this issue was hungry he be contested if the issue closing I would ask, and only 3-5 people know information is not knowledge in my eyes, I did try my device was positive in other people know about it believe that the rights

Thank you

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] dreamnej:
I did it yesterday. My phone was originally. have incomplete information. I worked 6 hours. only works with xxudnc1 base. Why not write it.

SM-N9000Q cihazımdan Tapatalk 2 ile gönderildi
[Galaxy Note 3 Exynos Android Development] Rainico:
Very good news !!! :)

But for the N9005 any solutions for reset knox in 0x0 ? :)

Thank you a lot for your help.
[Galaxy Note 3 Exynos Android Development] nani35:
Deneme yapabildin mi orjinal rom olarak türkiye romunu dene bende bu şekilde oldu

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] nani35:
I do not know how to say anything for N9005 b :( but of course if I'm still here, let's

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] AndroidNoob22:
I don't understand what you're even trying to say (your bad english not my fault) but if you're trying to say you have created this file to reset Knox you're way too wrong, I have no personal issues with you, but if you're trying to show you've done something about which you don't even know it's a violation to all devs hard work and testers who risk their device for our benefits and you show you've done it all without giving proper credits/links n taking permissions that's very wrong, anyways reported the thread let XDA themselves decide.
[Galaxy Note 3 Exynos Android Development] Rainico:
No solution for reset knox in N9005 ? :)
[Galaxy Note 3 Exynos Android Development] dreamnej:
Xxudnc1 kurmadan olmuyor. Biz çok uğraştık. Nc1 base kurunca 5 dk da oldu. Sonra zaten hangi ülke cihazı ise o rom kurulacak

1- bootloader install

2- XXUDNC1 base rom ( rusia 4.4.2 rom)

3- stock recovery .... Wipe data factory and wipe cache

4- originally stock rom

SM-N9000Q cihazımdan Tapatalk 2 ile gönderildi
[Galaxy Note 3 Exynos Android Development] nani35:
Ok. En azından bu durumdan kurtulduk ;)

Thank you

SM-N900 cihazımdan Tapatalk kullanılarak gönderildi
[Galaxy Note 3 Exynos Android Development] A.S._id:
Stock bootloader for restore to standart state

sboot.bin

param.bin
[Galaxy Note 3 Exynos Android Development] vuralemre:
this solution is short and skimp.

we solved this problem but we dont start a new thread because of copyfight. thanks to sxtpdevelopers

ve

i can help who can not solve.

turkish explain

Konu: Samsung Galaxy Note 3 KNOX Sayaç sıfırlama ve orjinal yapma
[Galaxy Note 3 Exynos Android Development] ronnie498:
Mod Edit

As there is already a thread started on this topic A few things on knox / rooting and bootloaders that need more testing / development

Thread Closed

ronnie498

Forum Moderator
[Nexus 5 Q&A, Help & Troubleshooting] juwttt:
I loved the fact that the thinking bridge ROM had the color changing status bar. Any one ported the feature to another ROM? I know liquid ported it but it was too buggy so they removed it. I appreciate any comments.

I also tried tinted status bar but chameleon engine was more accurate. Thanks!