[Q] HELP with stupid errors in main.xml! - Android Software Development

I am at my wits end with this and cannot figure out what is wrong.
Its a plain screen with imagebuttons and a BG - any idea why this is giving me error at the top?

what exactly is the error message saying?

Can you highlight the error and screenshot it again so we can see what it says?
Sometimes Eclipse can mess up give you an error for no reason. Go to the 'error' dialog at the bottom, right click the error and delete it. If it reappears then there's problem with your code.

That "error" can still be there even if your XML is ok. Make sure you save the file and then do a "Clean Project". Should fix it.

Hyperbyte,Meltus - sorry i dun goofed - attached is new screen cap - for some reason nothings coming from the error log though
Rootstonian - Thanks for your advice, but after saving and cleaning nothing has changed.
For record I am on latest release as of yesterday of eclipse and Android SDK

Yeah... the error tracking in xml files is less than helpful in eclipse. I think you probably have a typo somewhere. Just cut out tablerows until the error goes away, then youll find it

Lakers16 said:
Yeah... the error tracking in xml files is less than helpful in eclipse. I think you probably have a typo somewhere. Just cut out tablerows until the error goes away, then youll find it
Click to expand...
Click to collapse
I shall let you know how i do - my boss wouldnt let me take my workstation tower home for the weekend seeing i did 30 hours straight on it doin android plus 3DS Max ****. they found me asleep on one of our AVID edit suites this morning....considering i develop personal safety initiatives for Ozzie mining industry you woulda thought i would hav not done over double the national regulated work hours....(im quitting - someone give me a job lol)

I cant see anything wrong with that XML either, these sorts of problems are very annoying. Have you tried copying & pasting the XML into another tool & see it it highlights where it isnt well formed ???

gungh0 said:
I cant see anything wrong with that XML either, these sorts of problems are very annoying. Have you tried copying & pasting the XML into another tool & see it it highlights where it isnt well formed ???
Click to expand...
Click to collapse
Ill have to try it on monday (dont have that computer on me). I haven't pasted into another tool yet, but pasting it into a different xml layout page it doesnt error until i delete the main.xml and rename second xml to main

Yeah, that one's a real PITA. I still say no error is there LOL
Usually the red "X" is AT or NEAR the point of the error from my experience.
I would just copy the whole lot to a text file, then shift-command-down delete what's there and save the empty main.xml. Then copy lines back one by one and see what happens.
I remember a time working on a mainframe COBOL program...wasn't compiling. Worked on it for days! I gave up and just recreated the whole program...it was like some hidden character was in the original code.

ive had some errors like this pop up in eclipse when i copy and paste xml in to eclipse.
i would delete the whole thing and retype each line manually (i know it sucks)
this is the only way i have found to get rid of this error.

Have you tried physically deleting the error message from the error log at the bottom?
It sounds stupid but it can sometimes work.
Eclipse is buggy as hell!
Sent from my Nexus One using XDA App

Two things to try (after I had a quick look at a main.xml which I know works)
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
1- add the xmlns:android="http://schemas.android.com/apk/res/android" to your first <TableLayout ........./> block. See if that fixes anything.
If not, then go to a .java file so the main.xml re-examines itself in Eclipse, maybe delete the error, maybe fix the project and then see if it all works then.
2- Try deleting the space between the <?xml ...?> and the <Layout> block; sounds stupid, but might actually work
Also, always be in a .java file tab (don't have eclipse show the .xml; go to the .java tab) when you compile. For some strange reason my Eclipse always screws around, pops out errors and does other wierd stuff when I compile if I'm in a .xml tab.

Related

Signing apps help needed!

I got my app ready to go, 99% positive I did everything right so...
I used the jarsigner to sign my app as suggested by google and I get the jar verified message but when I try to upload it to the market it says its not properly signed?!
I googled n read n google n read and cannot find the problem or a solution, I've seen people saying its just a bug, restart, reinstall, try again. Or ppl saying its something wrong with the editing of the manifest and even a icon in the apk causing the error...
I've tried everything n I just can't seem to figure it out so I ask for someone familiar with this issue to please help cus my brain is fried!
I also wanna add that zipalign doesn't work for me either, I use a bat file that someone created on here that does it automatically cus when I try n use command prompt it keeps giving a cannot open .zip or can't find error?!
Again, I would really appreciate the help! I got my app, payed my fee n I'm ready to go, I just need help gettin past this. Thx!
Sent from my SPH-D700 using XDA App
Are you using eclipse to write the app? If so, just use Eclipse's "Export" (File->Export) function to do all the work for you.
I used the app inventor and used all the tutorials that are floatin around everywhere. I have eclipse but dont know how to use it cus its more code based and I havent reached that point yet. Even if there was a way to import the apk to Eclipse just do sign it would be great but I dont think it can be done. Its weird cus now I cant even get me apk to recompile after editing the xml file either! I've tried everything manually and fount programs that do it for you with one click and nothing... Its just one headache after another and I cannot figure it out nomatter how much googlin and searching on here I do! Im also starting to think it has something to do with the way the xml file is edited, I've read the tutorials and watched the videos and it seems to be right so if thats the case then I just done know... Im gonna post my xml file so anybody with this knowledge can take a look at it...
I also wanted to add that I am self taught in all this, besides getting help from others to learn so when editing a xml file I just copy, paste, backspace n enter which is what Im guessing Im suppose to do, I match up everything as others have it but Im not sure if iIm suppose to be using different commands or with xml editing things work different... So if thats the case please "school" me on that lol. Thanks!
This is what my .xml looks like...
This is how it comes up on Internet Explorer, when Im in notepad editing it doesnt show the - symbols though, maybe thats my mess up, I dont know cus it doesnt show them in notepad lol. HEADACHES! lol.
<?xml version="1.0" encoding="UTF-8" ?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
package="appinventor.ai_djykcor1.LOTF" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="3" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-sdk android:minSdkVersion="3" />
- <application android:label="LOTF" android:icon="@drawable/ya">
- <activity android:label="LOTF" android:name=".Screen1">
- <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.devtools.simple.runtime.components.android.ListPickerActivity" android:configChanges="keyboardHidden|orientation" />
- <activity android:name="com.google.devtools.simple.runtime.components.android.WebViewActivity" android:configChanges="keyboardHidden|orientation">
- <intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
</manifest>
I've never used app-inventor so I can't help you with this. I always just export from eclipse.
Well when I try to import it to Eclipse it gives a error and the xml file cant be read properly or somethin, It has a icon on it that seems to make it look as a error...
com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper] Unable to read C:\android-sdk-windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\android-sdk-windows\AndroidManifest.xml (The system cannot find the file specified)
As a long time programmer, I'll use anything that helps me develop code quickly and easily. And, IMO, Eclipse is the tool.
Creating, testing and deploying your app in Eclipse is great. Signing an app via Export (as mentioned above) takes about 30 seconds.
Google for Android Eclipse Hello World app and it will walk you through doing an app in Eclipse.
Then you can create a new project and copy your code and xml into the project.
I have been learning in eclipse now and I finally got things to go except I keep getting force closes now with my app and Im lost from here... I anybody can help id really appreciate it!
Learn how to log messages, put them in your code to trace its logic and then use logcat to see where the program is abending (old COBOL term for force stopped LOL).
ykman1 said:
I got my app ready to go, 99% positive I did everything right so...
I used the jarsigner to sign my app as suggested by google and I get the jar verified message but when I try to upload it to the market it says its not properly signed?!
I googled n read n google n read and cannot find the problem or a solution, I've seen people saying its just a bug, restart, reinstall, try again. Or ppl saying its something wrong with the editing of the manifest and even a icon in the apk causing the error...
I've tried everything n I just can't seem to figure it out so I ask for someone familiar with this issue to please help cus my brain is fried!
I also wanna add that zipalign doesn't work for me either, I use a bat file that someone created on here that does it automatically cus when I try n use command prompt it keeps giving a cannot open .zip or can't find error?!
Again, I would really appreciate the help! I got my app, payed my fee n I'm ready to go, I just need help gettin past this. Thx!
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
There's Two Apps Available On The Market That Sign Apk's, Zip's, & Jar's
"Zipsigner", & "Signapktic"! I Personally Like "Signapktic", But Both Work!!!
Sent from my HERO200 using XDA App
Well now I got everything good to go but now Im getting force closes so it seems to be a debugging issue that Im tryin to figure out... If any of you can help I'd greatly appreciate it. Shoot me a PM with your # or email, I'm completely lost from here and its SSOOO frustrating cus Im right at the end of the process...
ykman1 said:
Well now I got everything good to go but now Im getting force closes so it seems to be a debugging issue that Im tryin to figure out... If any of you can help I'd greatly appreciate it. Shoot me a PM with your # or email, I'm completely lost from here and its SSOOO frustrating cus Im right at the end of the process...
Click to expand...
Click to collapse
What's the app exactly? I might be able to help.
Debugging can be one of the most frustrating or satisfying jobs as a programmer.
As I said earlier, put Log.v or Toast messages before and after every line of code if you have to. Check the logcat. Comment-out chunks of code until it runs. Un-comment one line at a time till it blows up and you should find your problem and be able to fix it.
Rootstonian said:
Debugging can be one of the most frustrating or satisfying jobs as a programmer.
As I said earlier, put Log.v or Toast messages before and after every line of code if you have to. Check the logcat. Comment-out chunks of code until it runs. Un-comment one line at a time till it blows up and you should find your problem and be able to fix it.
Click to expand...
Click to collapse
Programmers life in a nutshell lol.
Yeah buddy, been there, done that. In college, while taking COBOL, learning to debug an ABEND was a nightmare; no help whatsoever to where it was bombing unless you let it print the 500 green bar pages of the dump . Off topic but...
We had this one room for the advanced class...crappy old IBM terminals, but we had our OWN line printer...which meant we didn't have to go and wait at computer center for our output. This printer was on a table in front of the room and when it fired up, it was soooo loud and actually shook all the tables in the room.
We were all intent on our coding, but sometimes, in the back of our heads, we noticed the printer NOT stopping. Once one of us realized it wasn't a lot of back to back job prints, we knew someone had sent a dump to the printer! The pour soul was summoned to go up and cancel the job, head hung in shame ROFL!!
I appreciate the replies everyone, not sure if I said this before but I'm self taught in all this, learning one step at a time so now that it seems to be a debugging thing ima find the logcat n post it when I get to the lab. Thanks!
Sent from my SPH-D700 using XDA App
Newklearx3 said:
What's the app exactly? I might be able to help.
Click to expand...
Click to collapse
The process is I am making the app in app inventor then importing it to eclipse to edit and make any changes, I am not as advanced to work stricly with code so I use the AI as a base to start the project and I'm learning one step at a time when editing or generating code. Ima be taking a class on this soon once I figure out the best thing to go for... thanks
Sent from my SPH-D700 using XDA App

[Q] Debugging help needed

I have a user of my app who is having a problem running it. My code launches another activity in the same app, and he is saying it is stopping before it should & returning to the previous activity, and he doesn't see any Force Close warnings.
I have run my code in the emulator & on my phone, I can't reproduce the error. We both run Android 2.2 on our phones, his is an HTC EVO & mine is a HTC Wildfire, as far as I can tell his specs are better than mine so shouldn't cause an issue - I deliberately chose a low spec for for my dev work so the code ought to run on anything.
As a bit of an Andoid dev noob (but been coding for years), is there any easy way I can make a special build of the app to send to him that would log any errors that happen ? I'd like to get a stack dump as well if possible, as I'm not sure exactly what routine in the activity its crashing out in. The activity that crashes is Gallery with 9 images in it, he can't flick through them or select one. I'm stumped as to whats causing it, any assistance would be gratefully received.
Thanks.
Why not point to your app and let others here try it on their phones? It could simply be other apps installed on his phone interfering with your app.
Long time programmer here too and when I get to where you're at (and I"m sure you've put some hours into this LOL), I go back to STEP 1.
I comment-out any and all code but the bare minimum; break it down to the Intent, startActivity and maybe a Toast message in the second activity. Even parse down your XML files to bare minimum.
See if that works. Then, ADD BACK ONE LINE OF CODE AT A TIME Run program and make sure it works. Yeah, it's painful, but in my 20 years of coding, I've learned to put my pride aside and to not "pretend" all the code I've written is correct.
Sometimes on bigger projects, I"ll change or add a couple of lines of code, run a back up and test. Rinse and repeat LOL. That way, I know I"m only a couple of lines of code from what "used" to work.
Good Luck!
Thanks both of you.
old_dude - Its a paid app. Only £0.99 but I don't think people would pay to help me. There is a free version of the same app (with less functionality) that this guy can get to work. If your really interested the 2 versions are -
Plink Log - Free Version
Plink Log Pro - Paid version
Rootstonian - agreed thats the approach I'd normally take if I was having problems on my dev phone or the emulator. The problem is that its OK on my HTC Wildfire/Android2.2 but on this guys HTC EVO/Android2.2 its having problems. I dont really want to keep sending him .apks with 1 or 2 lines extra enabled just to see if that fixes his specific issue. I was hoping there was something I could code to catch whatever crashes the activity & log it somewhere for me to analyse. When I do PC dev work, I have a global exception handler that catches anything I dont explicitly handle, and dumps the full call stack into a Log File I can read later.
I think I'll just have to take the existing app & put loads of debug code into it to save messages into a log file & see what bits of code are being called & what isn't & then get him to email me the results.
Thanks for the ideas guys, its always useful to get input from another perspective.
Dave
Hmmmm, just discovered setDefaultUncaughtExceptionHandler - might be able to use that with printStackTrace. Sounds interesting.

getting data off of broken G1/Dream [rooted]

I have a broken G1, the screen is shot, and something else is screwed up, because it won't process anything. Once it boots it shows the background for a moment, then the lock screen comes on, but without a background. Then it looses all functionality. I can't get it to do anything. However, what's interesting, is that if I get an incoming call, I can answer using the button (not screen), and talk normally. Anyway, I want to know if there is a way, probably using ADB to get all my contacts minimally (since they're not all sync'd w/ Google), but ideally I would like to make a system image from it and run it in one of the emulators (Eclipse, Spring Source or Android SDK is what I have installed now). Any help would be awesome. There are also a few nandroid backups that I could use somehow, but they are a little old.
As far as I know, contacts data is stored in a sqlite-database which is located on /data. As long as you can connect with adb to your phone, you can copy that database to your pc and analyze it using sqlite3.
In this article you can find some additional information. It's a bit old, but still valid and at least it can give you a hint.
If you cannot access to your phone using adb, you can also extract the contacts.db from your latest nandroid backup. You can use unyaffs or mount your image on a linux system as yaffs file system and extract the file(s) you want. Then you can use again sqlite3 to extract the contacts data.
The same way, you can extract other data. It's enough to concentrate on the /data partition of the G1. As long as adb is running, you can copy them to your local PC, if not, you need to extract them from your latest nandroid backup in the same way I described above.
there is an awesome application called droid explorer (i forget the developers name) that you can download free to your pc (probably mac too) if you have usb debugging turned on then all you have to do is plug your phone into pc via usb.
when your phone comes up you have all the options you need here plus more!
seriously i recommend it to everyone. i use it at work sometimes to access my phone without getting caught, it has a great screen-cast function (a bit laggy)
if you dont have usb debugging turned on then look in the forum how to do it via adb. if you cant find droid explorer let me know and i can put it in my dropbox.
another option is get a used g1 from ebay and swap motherboards. or just fix your screen or whatever the problem is
Ok... So I did a little snooping via adb, and fortunately I did leave usb debugging on, so that's a plus. Now there were 2 things that I've tried pulling:
/data/data/com.android.contacts
and
/data/data/com.android.providers.contacts
Unfortunately, these both just gave me .xml files that only had a few lines of code, none of which included contacts or any kind of useful info.
@AndDiSa: I'm going to read the linked article now, but currently I don't have anything useful from /data. Any tips on how I would go about extracting the contacts.db? Articles or links are always great!
@demkantor: I will check that out. Since I don't really know how messed up the phone is, I don't know how useful droid explorer will be, but it sounds like a good utility anyway.
I don't really feel like getting parts for my phone. It's already waaaay behind the curve, and while it's a super fun phone to mess around with, I think it's time to move to something new (like the Droid 1 that I got as a toy phone/media player since I don't have verizon).
Anyway, further help appreciated!
(Oh, and I have to replace the digitizer for my Droid. LOL)
I am not on my PC at the moment, but try to look for
/data/com.android.providers.contacts/databases/contacts2.db
at least in GB this should be the right file or do a
find /data -name "cont*db" -print
in adb shell to look for it.
Sent from my Gingerbread on Dream using XDA App
I'll check it out tomorrow and let you know how it goes. Thanks!
OK! Good news. I found the contacts2.db and was able to pull it. I got SQLite3.exe and started messing around with it. Now what I tried from the link didn't work, as I couldn't get the .db file imported, and don't really know how to declare that as the target of commands. Using the .tables or .databases commands didn't get any results either. .databases just said something like 0-Main and 9-local or something. Do you know how to pull this part off? Hope to hear back soon.
Thanks,
kyle_engineer
Didn't try to use sqlite3 on windows yet, on the phone, you need to do
sqlite3 contacts2.db
> .dump
and you will get all content of the database dumped as sql statements.
Sent from my Gingerbread on Dream using XDA App
Awesome man!!! the .dump worked and I was able to actually get a table output on the screen. Now I just need ot know how to make that something printable (ideally), and I need to try it with my actual G1, not my Droid1... I'll thank you tomorrow when it's done.
Ugh!
So I've been able to correctly import a .db from my droid 1 and get it properly printed on the screen using sqlite3. That worked fine. Now I've pulled the .db from my G1 (which has the needed contacts), and I can't get it to print correctly. Here is what I'm dealing with...
Code:
SQLite3 version 3.7.20
Enter ".help? for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
_sync_state settings
_sync_state_metadata status_updates
accounts v1_settings
activities view_contacts
agg_exceptions view_contacts_restricted
android_metadata view_data
calls view_data_restricted
contact_entities_view view_groups
contact_entities_view_restricted view_raw_contacts
contacts view_raw_contacts_restricted
data view_v1_contact_methods
groups view_v1_extensions
mimetypes view_v1_group_membership
name_lookup view_v1_groups
nickname_lookup view_v1_organizations
packages view_v1_people
phone_lookup view_v1_phones
properties view_v1_photos
raw_contacts
sqlite>
From here, no matter what I try to use the .schema and "select * from XXXX" on, I don't get any user friendly table like I did with the other .db file... could something be messed up with this .db?
Please let me know when you get a chance.
Thanks in advance!
-kyle_engineer

Stock Reader page turn refresh rate

Some people might want to change how often a page turn in the stock Reader app does a full refresh.
This is neither documented or given a user setting, but it can be changed.
Edit the file /data/data/com.bn.nook.reader.activities/shared_prefs/ReaderPreferences.xml
Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<float name="font_size" value="8.5" />
<string name="font_style">Caecilia</string>
<int name="periodical_margin_size" value="1" />
<int name="margin_size" value="1" />
<int name="bgcolor" value="1" />
<int name="line_spacing" value="150" />
<int name="page_forward_mapping" value="1" />
[b]<int name="fullscreen_refresh_count" value="6" />[/b]
</map>
The default without a setting is 6.
I'd love to make that one because of the odd ghosting issue with mine. Can I edit that while it's running?
Yes, you can edit that at any time.
It may not notice it immediately, certainly rebooting will work though.
This no longer works with Glowlight. There is no "fullscreen_refresh_count" tag anymore and if you add one, it just gets wiped out.
The file on NST with 1.1.2 firmware don't contains this strucutre of xml.
Edit refresh count is not possible from this file.
dxcore35 said:
The file on NST with 1.1.2 firmware don't contains this structure of xml.
Edit refresh count is not possible from this file.
Click to expand...
Click to collapse
No, the entry is not in the XML file by default.
Yes, you can put it in there and it gets read.
@GlowWorm owners, the exact same code is in 1.1.5
Hmm, this parameter works when it's in there, but the Nook wipes it any time you change any user reader preference.
Renate NST said:
No, the entry is not in the XML file by default.
Yes, you can put it in there and it gets read.
@GlowWorm owners, the exact same code is in 1.1.5
Hmm, this parameter works when it's in there, but the Nook wipes it any time you change any user reader preference.
Click to expand...
Click to collapse
I was not able to get it to register at all on my GlowLight. I still had a 6 page refresh. I did not update any settings. I also made sure the app was killed before I edited the XML file.
What can I say?
The Reader app has so much broken stuff in it.
I'm getting sick of patching things.
Renate NST said:
What can I say?
The Reader app has so much broken stuff in it.
I'm getting sick of patching things.
Click to expand...
Click to collapse
You can report a bug on B&N forums.
Admin might forward it to dev. team.
They don't even have any web pages for users to enter suggestions/bugs and track progress...
Looking at how they deal with other bugs, like lost bookmarks, I doubt anything will be fixed.
IMO, is B&N makes source available, community will help them.
But again, looks like they are not interested in bug fixing at all...
Could someone please give a quick explanation of how to get to the ReaderPreferences file and how to edit it?
The inability to do a page refresh, and the ghosting on the screen because of that, is what caused me to return my Simple Touch. If I could just get it to refresh every page turn I'd be happy. I do't want to root the device and turn it into a Android tablet, I just want a more frequent page refresh.
Renate NST said:
What can I say?
The Reader app has so much broken stuff in it.
I'm getting sick of patching things.
Click to expand...
Click to collapse
Renate. Somebody on the B&N forums is looking for this fix. I'd think a startup script could re-insert that line into the file on each boot. Is there an equivalent to an init script on a stock NST that could be tweaked?
Just realized you're in Boston. I'm flying out of Logan today!
bobstro said:
Is there an equivalent to an init script on a stock NST that could be tweaked?
Click to expand...
Click to collapse
There are init.rc & init.goldfish.rc in uRamdisk. The instructions on how to [un]pack are in "Nook Touch Android Development" forums.
bobstro said:
Renate. Somebody on the B&N forums is looking for this fix. I'd think a startup script could re-insert that line into the file on each boot. Is there an equivalent to an init script on a stock NST that could be tweaked?
Just realized you're in Boston. I'm flying out of Logan today!
Click to expand...
Click to collapse
You can always make the file read-only. (i.e. take away write permissions.) That kept the line from being eliminated.
Unfortunately, it does not help me and my 1.1.5 woes. The read-only file would not parse, and I was not able to get a refresh rate faster than 6 pages.
IBNobody said:
You can always make the file read-only. (i.e. take away write permissions.) That kept the line from being eliminated.
Unfortunately, it does not help me and my 1.1.5 woes. The read-only file would not parse, and I was not able to get a refresh rate faster than 6 pages.
Click to expand...
Click to collapse
I'm sure they program to open file in read-write more and it throws. :good:
Take a look on ddms messages.
I'm mostly almost finished with my smali patcher and I'll be getting around to stuff like this.
Using the patcher will allow people to get a subset of whichever patches they want.
For instance, I don't need the Last Read Page to be uplinked to the (B&N) cloud.
Some people might want that. Tastes differ.
Renate NST said:
I'm mostly almost finished with my smali patcher and I'll be getting around to stuff like this.
Using the patcher will allow people to get a subset of whichever patches they want.
For instance, I don't need the Last Read Page to be uplinked to the (B&N) cloud.
Some people might want that. Tastes differ.
Click to expand...
Click to collapse
Renate,
Could you open new “Patching Reader”, “Patching stuff” or something thread, so it won’t get buried into another one.
Will be interesting to see whole approach.
How to patch, un-patch (to apply new B&N update)
And how to deal with installation errors (certificate errors, etc.)
You know this stuff better than anyone else, anyway.
I know it's been a month since anyone said anything in this thread, but is there an easy way to do this? I just got a refurb NST and the leftover image when it doesn't do a full page refresh is annoying, it messes up text and in bright light I can still read the characters in the empty space that wasn't empty in the page before. It doesn't make reading hard or impossible, just annoying.
I really need something easy or at least well explained. It took me hours and searching to get adb to work with my NST last night and even rooting wasn't all that easy as the first program for flashing the boot img to the sd card didn't work for me, and then I completely failed at getting gapps to work with it because of poor instructions. I've rooted and rommed plenty of phones, so I'm comfortable with android. There just doesn't seem to be enough popularity for this device to get easy hacks, and I don't know how to do technical stuff like editing an xml.
Thinking about it, if there isn't an easy fix, can I just sideload a root browser app and manually navigate to and edit that xml file?
EDIT: Tried manually editing the xml file, the reader app just rewrites it every time I try to read something, and deletes root browser's .bak backup file. Quite annoying.
I looked into this stuff a bit.
It's spread all over the place.
B&N has a section that deletes a bunch of preferences before writing.
Personally, I've never noticed shadowing.
The contrast seems to get to be a little bit less each time though.
The dictionary stuff was a higher priority last month.
Realize that on any Nook mod only a handful of people will ever use it.
Renate NST said:
I looked into this stuff a bit.
It's spread all over the place.
B&N has a section that deletes a bunch of preferences before writing.
Personally, I've never noticed shadowing.
The contrast seems to get to be a little bit less each time though.
The dictionary stuff was a higher priority last month.
Realize that on any Nook mod only a handful of people will ever use it.
Click to expand...
Click to collapse
True, I'm sure that most people are just using a different app. After realizing from this thread that just editing the xml won't work and making it read only just makes things worse, I decided to try cool reader 3. It isn't as elegant as the nook software by any means, but at least it does a page refresh every page. It does make me wonder if it would be hard to make a universal ereader app that works well on all android based e-ink devices though.
Either way if someone is working on any sort of patch, I still think that would be great. Today was my first full day with the nook and reading definitely got annoying from time to time when I was a couple pages from the full refresh and the letters looked dull in spots and stuff. Since mine is a refurb it is possible it is a bit worse than others on refreshing the screen, and maybe was returned for that. It's not unusable, just annoying to a perfectionist like me.
I went back to look at this again.
I modified /data/data/com.bn.nook.reader.activities/shared_prefs/ReaderPreferences.xml
I added in:
Code:
<int name="fullscreen_refresh_count" value="1" />
I did everything that I could think of and it never disappeared.
I switched books, changed fonts, changed page buttons, it's still there.
(And it was refreshing every page.)
Could somebody tell me under what circumstance it disappears?

[Q] Windows 8 file coding

I was looking through some files and i found alot of files that had coding like this :¤¢±–§nLée˜»=“5ê{i!¿èb5n)–~
åðZá
¸cYœúÌ*pa%êÁR "çÓ+©qhÿ˜î™)ZÎmðxŒ)8`Íše*PD×Ú±#jMˆ’Zž1ú}(ñe4Ô*šùØÕÖf[9A‰c
K6lZ®s^ô¢N€é-…BÄ~žÎäÃ6™® ̉ÐhxËòùQç6,mØFŠ,ÈFìoã¢‹™E¹ÆƍlóS–ñÇøÙ¿DR¶ä:TZKFl/öô§q
s1x„ö÷Ùç½ÓšÃsäá!˜ˆ•Ä <:} @Óv˜£+×_ãOÉžéd—b#ùƒ
/EJàã$Ĺ2¸²Æ*Þ„œRbÜïÏ|W’]‹[П6Ðh‰’I»½FýšNÖBJ]tßüŸš!‰Óp 2’aåÖïS¢ ;´-N(’ÅHºuà§' åu£s°·#
•Ë÷¦ÒywÄ•˜š‚
Could someone help me with this!
FIle address
C:\Users\dasd\AppData\Local\Packages\GluGamesInc.SamuraivsZombiesDefense_2mkdfttccc4r6\LocalState
There is a file there called localsave_offline_Save.data it aroused my attention so i looked through it and im no wizard at decoding so help please!
That is because the file is not stored as plain text and is raw binary data. Notepad then attempts to try to load it as plain text and as you can see fails miserably to make anything of it.
SixSixSevenSeven said:
That is because the file is not stored as plain text and is raw binary data. Notepad then attempts to try to load it as plain text and as you can see fails miserably to make anything of it.
Click to expand...
Click to collapse
Then how could i turn it into plain text
Realistically you can't so I suggest learning how to play the game properly rather than editing your save state
SixSixSevenSeven said:
Realistically you can't so I suggest learning how to play the game properly rather than editing your save state
Click to expand...
Click to collapse
Eh im done with the game was just wondering thanks for the help though would've wasted unnecessary time
Yeah... the file could be anything from a binary representation of in-memory data structures to encrypted plain text. Without decompiling the app, I probably couldn't tell you which. Totally not worth the effort.
RE:
GoodDayToDie said:
Yeah... the file could be anything from a binary representation of in-memory data structures to encrypted plain text. Without decompiling the app, I probably couldn't tell you which. Totally not worth the effort.
Click to expand...
Click to collapse
How would one decompile the app?
Also if it was encrypted plain text how could i decrypt this .
P.s
Im using word pad if it makes any difference here it is in notepad : ꊤ넘阞溧䰎早뮘錽楻뼡㕢⥮纖嫰ċ掸鱙Ǻ⫌慰勁*⯓熩罨飿駮娩淎磰⦌怸髍攑傠Ʉ???⎱䵪銈鹚僧⡽旱퐴骭???훕学㦏襁੣腋氶媏玮亢蔭쑂縎캞쏤餶ޮ觌棐쭸鱗ⰶ???䘔Ⲋ䛈᫬๯订䖙욹跆匎뿙剄吺䭚汆ꟴᥱ猋ᄆ砱Ⴝ髓珃頡閈߄㨼紁䀇盓ꎘ휫쥏靤⍢菹ጋ䔯ⓣໄ뤞렲욲???鲄劁???쿯坼嶒謕嬚퀓㚟棐銉뭉뵿﵆亚䋖嵊璏???ﰝ骟褡팔쉰㈠憒ᇥꉓ㬉ⶴ亏鈨䣅疺➧輠痥ꌛ猈뀄⎷ଜ쮕꛷秒遷闄骘ஂ???歿ᙊᱲ֪柗錥햑愙╨ꉜ鬀폿벹휵ኩ뾳閥巵숹争퍨逞ꬡ滱ⴡꎣᆵ㉭छ홐曩䝅ꖁ•淴疊苧ᾼ겒溂ꬳ켥ꄕ妕傮ⅼ䪙汵ᙜ???螑䓥坙뛋䟹䷭蘰꟝윾텩뵼㊵⎦⦙椏Ჷꝱ癫୦◴桨???﨏裇鲕ﯬ빍???䌎歹ꍂ歆濌꼂㵢ᙳ㇆䙩敇트???簲䜅ࡦ穚շ浑냗彌㩎㼷鏉׆䳰綔᚝䠡ᄓ콊肨֍碱啷???㥯ܩ栭牄׏઻Ȅ咢䪏马킀၌㗂⬃뻝週ᬓ倱㋲㭀ᆱ???㏰շ↚䴊濭൳鳛襉꜌덺铸㡯ᵑ쭷肳牨쁠鵡⏼鿈䭚咔綜眕Ꮮ萿࿢躄ɬ隲윃㵔ᘭ琢ꙝ炙놕뜥묞⬴힒৖ओᦑㄦߊ䜈䗐⚬쥝묕蝪旭愔薻필勞???萯貿Ȍퟡ慩ꆟ瑠꽴瓼???菙뿮㱶즓馁៛৺娿糗讬睢峿剟w쓘鬐轻㞱齹糗ꞩ쩪勯淒䃴木ᚿ楨봴ꁜ쎋恮䧑◴毝佻雑ⵋⴙ鄅㯨ﴣ察閸必狴醷㕁???隸ᷙഌ쮨竕ᛲᦥ왽充疒咔塐???鏀叁።渵끴쀡뢦蝬뵬䜜Ხᴐᶻ
The file is attached incase you can decrypt if it is plain text
It is not necessarily a straight forward process.
Decompiling the app can be a hit and miss procedure, not really legal either. You would have to attempt to fully reverse engineer the file format from what may be partially broken code and then write your own code in order to load and edit the files.
Not a process which can be done by a newcomer in under half an hour (or insert any other time period), or one that you can easily write a straight up tutorial for.
If it was encrypted plaintext (unlikely) not raw binary structures (very very common), the point of encrypting it is that a person cant decrypt it. There are numerous encryption methods available and they could have used any one. Brute forcing encryption can be very very slow with times to decode ranging from minutes to months, and not knowing what encryption method is used your probably looking at years as you try each method separately. Again, not really something a tutorial can be done for, Cryptography is a fine art, reverse engineering encryption is perhaps the finest part of Cryptography, its an experts field.
Eh... depending on the encryption used, and the way the app is compiled, it may be easy to reverse. You'd be amazed how many apps (mobile or otherwise) use something stupid like AES-ECB with a hardcoded key of something like MD5("THESECRETKEY"), or even just XORing with a constant string. That said, Microsoft does make it easy to do better than that, with their incredibly-simple-to-use-but-hard-to-reverse Data Protection API for apps.

Categories

Resources