[Q] isolated storage - vb.net - Windows Phone 8 Apps and Games

How can i (Create,Read,Write,Delete) Files and Directories in Isolated Storage on Windows Phone?(VB.Net)(Visual Studio 2012)
------------------------------------------------------
i use this codes but i see some error.
Create file:
Code:
Dim sw As New StreamWriter(New IsolatedStorageFileStream("FirstRun\a.txt", FileMode.Create, file))
sw.WriteLine(Textbox1.text)
read form isolated storage:
Code:
Dim file As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()
file.CreateDirectory("UserTexts")
Dim sw As New StreamReader(New IsolatedStorageFileStream("UserTexts\user.txt", FileMode.Open, file))
read file:
Code:
TXTBlock.Text = sw.ReadToEnd()
sw.Close()
Delete file:
Code:
Dim file As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()
file.DeleteFile("Temp\a.txt")
Delete folder:
Code:
file.DeleteDirectory("Temp")
Create folder:
Code:
Dim file As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()
file.CreateDirectory("FirstRun")
please give me correct codes.

What error do you see?

mcosmin222 said:
What error do you see?
Click to expand...
Click to collapse
Error 1 Value of type 'System.IO.FileAccess' cannot be converted to 'System.IO.IsolatedStorage.IsolatedStorageFile'

Dim sw As New StreamReader(New IsolatedStorageFileStream("UserTexts\user.txt", FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite, file))
Methods have overloads. Check them out. If you don't know what a method overload is, check wikipedia.
http://en.wikipedia.org/wiki/Function_overloading

mcosmin222 said:
Dim sw As New StreamReader(New IsolatedStorageFileStream("UserTexts\user.txt", FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite, file))
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
it geting error.

shayan4shayan said:
it geting error.
Click to expand...
Click to collapse
Replace file with IsolatedStorageFile.getuserStoreForApplication()

Related

[Q] How to make the hardware keyboard on the SK17i work?

Okay, so I have a funny and strange a problem. This problem exists in several ROMs. I can not change the hardware layout of my keyboard to qwerty-no-dk (I'm narveejun). So I tried to cat the qwerty-no-dk file in the console. It looked fine. Except for... at key id 2.10 instead of saying, as it does on my linux console on my ubuntu laptop,
<Key id="C2.10" data="å" />
Click to expand...
Click to collapse
it instead said:
<Key id="C2.10" data="" />
Click to expand...
Click to collapse
.
Notice that small but oh so important missing letter there? So none of the letters are remapped. They are all US English. :crying:
Soooo... Looking at four simple files in the console with the letters:
UTF-8/UTF-16/ANSII ASCII/Unicode (depending on which format I had saved it in)
øæå
ÆØÅ
Click to expand...
Click to collapse
I cat each of the four files in the console and none of the non-English letters shows up. File1 (UTF-8 formatted one, same format as the qwerty-no-dk.xml-keyremap-file is saved in) makes the console throw a fit even and end up at the top of the screen. So this is what a screenshot looks like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Isn't that strange? The console can't even cat the letters! Not so strange then that the phone doesn't remap the keys. So help? How to fix this? This is just after install, nothing has been fiddled with, no program install, nothing. So... help?

[TOO] [SHARE] APK Java Viewer

Note : I am Sharing the work of forumber2.All the credits goes to him A little intoduction by him
forumber2 said:
APK to Java Viewer​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi all!
As you know, we can view and save java classes in classes.dex via some tools. And we have enough guides (like this; http://goo.gl/QkK6P7 ) but it requires effort so, I made this small tool for lazy people
This script will show the java files in your apk/jar (framework). Instructions as below:
1. Download the zip in Attachments.
2. Extract Java-Viewer.zip anywhere on your PC.
3. Put your an apk or jar (framework) in "Input".
4. Execute "Run_me_first.bat"
5. Follow Instructions (in tool)
**JRE is required
**IMPORTANT: DO NOT leave spaces when you name your apk files, e.g. "123 abc.zip" is a no go, "123abc.zip" is the correct way,
Bugs;
-After converting dex to jar, the script ends suddenly. Thats why you need execute View_Java.bat after finish Run_me_first.bat script
-jd-gui can't decompile all smali files.
Applications are used;
-JD-GUI 0.3.6
-7zip
-dex2jar-0.0.9.15
Credits;
@Ryuinferno for his "Sign-em!" thread style
@lickarock for his guide and his screenshot
Click to expand...
Click to collapse
Downloads Here
Orginal Threads

[TOOL] GetDump system dumper

Intro:
Today I present you with GetDump, a Windows batch file that is the simplest way to get a system dump from your phone. All its takes is 2 clicks. I might add Linux and Mac OS 10 support in the future, but if anybody wants to do it for me that would be great. The ADB files are included in the zip so you don't need to install them. I hope I posted this is the right place....
Requirements:
Your device drivers (The drivers from the manufacture)
Windows
Should have ADB installed
How to use:
Unzip the GetDump.zip file then once its unzipped double click on the GetDump.bat file. After that follow the onscreen instructions. Once its done a window will pop up with your system dump inside of it.
Download:
http://www.mediafire.com/download/sa7jy5s2frtzve1/GetDump.zip
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Credits:
Andy Huynh - For teaching me MS-DOS
My cat Chibbs - For testing
Hey cool, gonna DL for my Windows! Someone already beat ya to it in Linux tho
http://forum.xda-developers.com/showthread.php?p=62845957
Gratefully sent from my Rooted JollyRoger_B13
bcrichster said:
Hey cool, gonna DL for my Windows! Someone already beat ya to it in Linux tho
http://forum.xda-developers.com/showthread.php?p=62845957
Gratefully sent from my Rooted JollyRoger_B13
Click to expand...
Click to collapse
Tell Me how you like it. SuperRs does more then just a system dump, but I might make one that just does a system dump.

New Phone - Mysterious Files in Download Folder

Hi everyone, I just got a new XZ1 today (purchased from recommended Sony retailer as new), but I noticed some unknown files in the downloads folder I'm worried about, has anybody else noticed these or know what they are?
File list:
rce_plugin_string_resource_pt_BR.json.min
rce_plugin_string_resource_fr_FR.json.min
rce_plugin_string_resource_de_DE.json.min
rce_plugin_string_resource_en_US.test.json.min
rce_plugin_string_resource_it_IT.json.min
rce_plugin_string_resource_es_ES.json.min
rce_plugin_string_resource_cz_CZ.json.min
rce_plugin_string_resource_ja_JP.json.min
rce_plugin_string_resource_v2_TYPO_TEST.json.min
rce_plugin_string_resource_zh_CN.json.min
rce_plugin_string_resource_nl_NL.json.min
CS_JIT_Animation.mp4
jit_cs_positive_preview.png
Opening one of the files in VSCode, this is what the file looks like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm worried about "rce" since that seems eerily close to remote code execution.
Any advice very much appreciated.
I just found the exact same files in the download directory of an old Verizon Ellipsis tablet I just reset and renewed a few days ago. It is running 5.1.1 Lollipop
Did you find any info on this? Thx!
Bump! Found this on a phone that was purchased/reset a few days ago. BB Key2 on android 8.1.0
Files only show up when i insert a USB drive and open the file copy android native UI. Does not show up on ghostcommander unless i move the files to a new directory (but then stupid android UI deletes and recreates the file, losing all original metadata such as permission, owner etc... and the useless android UI where i can see/copy the files, do not show permission/owner)

[Windows 11 w/ WSA][TOOL][ADB] GMS Installer

Hi all
I present you my Windows CMD script
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
what I wrote to add GMS apps to WSA.
If you're intetested in this script then feel free to download it from here
Usage:
1. Extract the downloaded .ZIP to any location of your Windows computer
2. Within the extracted package run WSA-GMS-Installer.bat
Disclaimer:
This software is "AS IS". It may contain bugs. If any noticed then please let me know it here.
Side remark:
The software provided here ( my Windows CMD script ) has a top-down approach, means it's broken down into smaller fragments, better known as modules:
check_internet_is_available
verify_wsa_installation
check_wsa_is_running
do_sanity_checks
setup_gapps_arrays
setup_workspaces
setup_gapps_distro
check_for_enough_diskspace_on_pc
download_gapps_distro
unpack_downloaded_gapps_distro
verify_download
make_room
extract_apk_files_from_gapps_distro
connect_with_wsa
copy_files_onto_wsa
set_android_cmdlets
verify_gms_core_already_installed
check_for_enough_available_disk_space_on_wsa
install_apk_files_on_wsa
clean_up
That link isn't workign for me.. it just takes me to a blank page labeled "here."
jwoegerbauer said:
Hi all
I present you my Windows CMD script
View attachment 5463597
what I wrote to add GMS apps to WSA.
If you're intetested in this script then feel free to download it from here
Usage:
1. Extract the downloaded .ZIP to any location of your Windows computer
2. Within the extracted package run WSA-GMS-Installer.bat
Disclaimer:
This software is "AS IS". It may contain bugs. If any noticed then please let me know it here.
Click to expand...
Click to collapse
non disponibile il download

Categories

Resources