w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Error from inside the Android tools, check the console - in processing 2.0 , Android Mode
I solved it ! Thanks to the abbas.aniefa who's post is located here All what has to be done is deleting the debug keystore file which is located at C:Users<UserName>.androiddebug.keystore where is the name of the computer user Hopefully others will find it useful as much as I do.

Categories : Android

create-android-project.sh:line 103:/home/laschweinski/android/android-sdk-linux_86/tools/android:No such file or directory
Open create-android-project.sh file, you should see two line codes like this: NDK_ROOT_LOCAL="/home/laschweinski/android/android-ndk-r5" ANDROID_SDK_ROOT_LOCAL="/home/laschweinski/android/android-sdk-linux_86" Then what you just need replace these paths with yourself's paths, as mentioned in your post NDK_ROOT_LOCAL="D:AndroidGameToolAndroid-ndk" ANDROID_SDK_ROOT_LOCAL="D:Softwareadt-bundle-windows-x86_64-20130522sdk"

Categories : Java

android hide folder to sd card and share the image inside the hidden folder
If you want to hide folder in Android or any Linux based system just add . as prefix to folder or file name. However if you mount your SD card on Windows machine then these folders will be visible, with the . in front of the folder name, as a normal folder.

Categories : Android

create zip file inside a folder but without folder inside that zip
@hek2mgl I have 'files.txt' inside 'images' folder, that's why it's happening Then your code will not work at all as the path to $File is wrong. Use this: $File = "images/files.txt"; $zip = new ZipArchive(); $filename = "./images/files.zip"; if ($zip->open($filename, ZipArchive::CREATE)!==TRUE) { exit("cannot open <$filename> "); } // use the second parameter of addFile(). It will give the file // a new name inside the archive. basename() returns the filename // from a given path $zip->addFile("$File", basename($File)); if(!$zip->close()) { die('failed to create archive'); }

Categories : PHP

How to write into a text file inside web content folder from a servlet inside a project in java
This is not a very good approach. Apart from relying on the fact that the web application is exploded by the container (as opposed to being served from the WAR file directly), it makes it tricky to deploy new versions of the app (you have to make sure not to clobber those generated files). If you must do something like this, choose a different directory outside of the web application, set the path to that directory as configuration to your app and write the files there. You can then configure the web server to mount that directory into your URL space (so that it will look the same to browsers).

Categories : Java

jsr305_annotations Folder inside apk file
I'd seen those files included in an app as a result of including the library GoogleAdMobAdsSdk in a project (as available from here https://developers.google.com/mobile-ads-sdk/) If you open that JAR file you can see those annotations folders and XML files are present. If you don't include that library directly, you may be including another JAR which has those files. I'd suggest checking the JAR files you include in your project (by opening them in a file that can open APK/Zip files) to find which one(s) include the file and look for an alternative library.

Categories : Java

Opening a file from specified folder inside dir. where .exe is
You can use dirent.h to obtain an array of all the files inside the Edit Data folder, afterwards you just open the *.dat ones. Or you could open a file in X place with a list of the files you want to edit and their filepath, keep in mind that the path either is complete ("C:Program FilesEdit Data") or variable such as ("..Edit Data").

Categories : C++

Add file to a folder that is inside a zip file java
(edit to give the actual answer) Do: fs.getPath("res").resolve("prefs.txt") instead of: fs.getPath("res/prefs.txt") The .resolve() method will do the correct thing with regards to file separators etc.

Categories : Java

Not able to create text file inside the folder in phonegap
You can try the following code: window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fs) { var fullPathtowrite = fs.root.fullPath; //this is the "working" directory for saving files }

Categories : Cordova

File being downloaded is saved inside data folder
DownloadManager.Request.setDestinationUri(Uri uri) should fit your requirement, remember to call allowScanningByMediaScanner() if you want the MP3 to be scanned by MediaScanner.

Categories : Android

Listing the files inside a folder using batch file
Shouldn't have worked from the prompt. In a batch file, you need to change any % for the metavariable (%F in this case) to %%. Having said that however, (or, from the prompt, %F and %f) are two different animals. It's virtually the only situation where batch is case-sensitive. Your command attempts to rename files using their NAME only (~nF) so if it was to encounter fred.txt it would attempt to rename Fred.xml to -er, 1.xml (I think, maybe %~nf.xml) Best to say what you're trying to do. We're reasonably slick at crufting up solutions...

Categories : Shell

what to do after registering and enqueing a css file inside a plugin folder to use it
You don't need to register the style, you can just enqueue it. Also, you mentioned that you've put the code in the file where you'd like it to display, you should put it in the index file of your plugin, so in /your-plugin/index.php or whatever the main file is called, add this code: function rw_add_style() { wp_enqueue_style( 'testili', plugins_url( 'kawaleb/style.css' ) ); } add_action( 'wp_enqueue_scripts', 'rw_add_style' ); If you need it only on a certain page then you should add your conditional within the function, so you could do this for example: function rw_add_style() { global $post; if ( $post->post_name == 'post_name' ) { wp_enqueue_style( 'testili', plugins_url( 'kawaleb/style.css' ) ); } } add_action( 'wp_enqueue_scripts', 'rw_add_style' ); A

Categories : Wordpress

Place folder inside apk and install in the sd card of the installed mobile- android
As you need to place video audio and images in folder along with apk. Then first you need to know that Google Play does not allow us to uplaod apk more than 50MB However you can create APK expansion files and place your all media there. That APK expansion file will automatically install in sdcard. This is the best solution google play has provided. You can try with this- see this link - APK Expansion Edited:- If you are not publishing your app in google play, and size does not matter then you can simply place your all media in to asset folder, and pragmatically create a folder in sdcard copy all file in that folder. Note that - You can not modify assets/ folder is not at runtime, You can not delete or edit those file in asset because APK is signed and cannot be modified at runtime.

Categories : Android

how redirect to a login page specified in a web.config file inside folder
Web.config has a feature called configuration inheritance. There is an excellent article here. You need to edit the web.config file in the root directory and add the attribute inheritInChildApplications="false" to any tags you don't want the web.config in the sub-folder to inherit. It should work on the forms tag. However I can't test this right now and you may need to block inheritance from the authenication tag instead.

Categories : C#

Cannot determine the location of the VS Common Tools folder
this might be a parsing error, try: IF "%version%"=="1" set "PATH=%PATH%;%PATH_TO_VERSION1_LIBS%" IF "%version%"=="1" ( MSBuild solution0_v1.sln /property:Configuration=Release MSBuild solution1_v1.sln /property:Configuration=Release MSBuild solution2_v1.sln /property:Configuration=Release ) IF "%version%"=="2" set "PATH=%PATH%;%PATH_TO_VERSION2_LIBS%" IF "%version%"=="2" ( MSBuild solution0_v2.sln /property:Configuration=Release MSBuild solution1_v2.sln /property:Configuration=Release MSBuild solution2_v2.sln /property:Configuration=Release )

Categories : Visual Studio 2010

can anyone explain me the functionality of tools.jar( which is bundled in jdk/lib folder) and why it's required?
In tools.jar are all tools that are needed by a JDK but not a JRE. Included in tools.jar is e.g. the compiler javac and the tool javadoc. All tools needed to develop in Java are included in this .jar file.

Categories : Java

Creating file at a specific location inside windows store app installation folder
Just learnt that Apps don't have write access to their installed directory.

Categories : Javascript

How to transfer a zipped folder from a desktop to unix server without using winscp/any tools?
Assuming you are to use ssh to connect to the Unix/Linux server you could: Use Cygwin on the remote desktop system to have a Linux like shell on the Windows server. Write script using scp(a Linux command to copy files over ssh connection) to copy files over. Then schedule this as a task. Good luck with all that.

Categories : Shell

How to make my Gradle build file to always use the newest available Android Build Tools
This is an intentional choice. The idea is that your build should be perfectly repeatable, and if you build on a different machine that may have a later version of the build tools, it won't suddenly start having errors. I could see an argument for wildcarding to the latest bugfix release ala 18.0.+ the way it does for other version strings in Gradle, but even then that breaks repeatability if there's a regression in the newer version of the build tools. The relevant feature request for this is at https://code.google.com/p/android/issues/detail?id=59550

Categories : Android

Can we create a new folder inside a standard deploy folder in JBoss?
You should check your deployment scanner config, which is kept in server/<profile>/conf/jboss-service.xml. The relevant part is: <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner" name="jboss.deployment:type=DeploymentScanner,flavor=URL"> ... <!-- URLs are comma separated and resolve relative to the server home URL unless the given path is absolute. [...] --> <attribute name="URLs"> deploy/ </attribute> ... <!-- Indicates if the scanner should recursively scan directories that contain no "." in their names. [...] --> <attribute name="RecursiveSearch">True</attribute> </mbean>

Categories : Java

RedirectMatch issue (redirecting folder, but not contents inside folder)
Instead of relying on HTTP, you can use a nearly empty index.html file which contains a <meta> refresh tag in the head section of the document. The wikipedia article on meta refresh has some good examples, e.g. <meta http-equiv="refresh" content="0; url=http://example.com/"> The 0 means "zero seconds"—that is, immediately.

Categories : Htaccess

Allow access to folder which is inside the application folder in Codeigniter
Are you placing your images, css, js etc in your application folder? If you are stop right there. The application and system folder don't allow direct script access and it should be kept that way. Anything you want to make public you should put into a folder called something like public and place that in root directory alongside your application and system directories.

Categories : PHP

Android can't play a wav file in my res/raw folder
Try to load wav by other way: _ring=MediaPlayer.create(_context,R.raw.oldphone_mono); _ring.start(); _ring.setLooping( true ); Comment 1 You don't need in my case to use _ring.prepare();. MediaPlayer.create takes care about Comment 2 Further, since you load wav resource from raw, you don't need if(f.exists()) statemant

Categories : Android

Search folder inside 'appdata' folder
There is a problem with queries that contain title and parents on drive.appdata and drive.file scope. You can either add drive.readonly.metadata temporarily if we're not breaking your installed apps. The fix has been pushed back, but I'm trying to make sure we're fixing it as soon as possible. Another similar issue: Error when listing files with query

Categories : Objective C

How to query to select all file in specific folder in android?
Try this way ArrayList<File> mFiles = new ArrayList<File>(); File mDirectory; String folderPath = "/mnt/sdcard/download"; mDirectory = new File(folderPath); ExtensionFilenameFilter filter = new ExtensionFilenameFilter(acceptedFileExtensions); // Get the files in the directory File[] files = mDirectory.listFiles(filter); if (files != null && files.length > 0) { for (File f : files) { mFiles.add(f); } Collections.sort(mFiles, new FileComparator()); }

Categories : Android

Android: Get number of lines of a text file in raw folder
It's your line int size = getFileSize(InputStreamReader is); It doesn't need that InputStreamReader in there, that should show error when compiling code. Not sure how you managed to run it. So you just have to remove that and then it should be able to read lines and the count you wanted. Or is this getFileSize(InputStreamReader is) just a copy/paste error when you were writing your code to here?

Categories : Java

How do I open sdcard folder in android file explorer?
Just check the neighbouring folders.Now all phones have the sdcard folder under mnt folder.Mine did have sdcard file.which dint open.Cz it had nothing under it.Checked other spots.Found 1.sdcard0 2.sdcard1 GestureBuilder indicated gesture was under sdcard0/gesture so i checked there and found it.Pulled it to desktop and copied under raw :)

Categories : Android

How to copy a file to application folder in set up project during insatllation. File is in set up folder
If I'm understanding you correctly, this might solve your problem, or at least get you started: Include the file in the main project (for instance in a folder called "resources"). Right click the file in VS, choose properties, and set Copy to output directory to Coppy Always.

Categories : C#

Why will Qt not create a text file when running or debugging from inside Qt, but will create it when directly from the debug folder?
You probably used a relative path, and inside QtCreator the "current directory" from where the executable is ran is not necessarily the directory where the executable is. Try: qDebug() << QDir::currentPath(); It will tell you where you should expect your file to be written.

Categories : C++

How to upload file from any folder in sd card to server using Android Phonegap
I used this method to upload log files. You have to change the path of the file and server address. If you don't know the ip address 10.0.2.2 is android alias for your localhost. I got this method from some other site. I just changed the file path and server address. private void uploadMedia() throws IOException { HttpURLConnection connection = null; DataOutputStream outputStream = null; DataInputStream inputStream = null; String pathToOurFile ="/data/data/com.jos.finalsolution/files/LocationData"; String urlServer = "http://10.0.2.2/phpvt/receiver.php"; String lineEnd = " "; String twoHyphens = "--"; String boundary = "*****"; int bytesRead, bytesAvailable, bufferSize; byte[] buffer; int maxBufferSize = 1*1024*1024; try { FileI

Categories : Android

how to get the path of the image(.png) file that is stored in assets folder in android
try to change : final Uri ASSETS_URI = Uri.parse("file:///android_asset"); to this: final String ASSETS_URI = "file:///android_asset"; I think the problem is that you are concatenating and Uri with a String. If you declare ASSETS_URI as String then everything is String and later parsed to Uri.

Categories : Android

Android not respecting alternative dimens file from sw600dp folder
most of the time, sw600dp is used to describe tablets. See The android guidelines for more information

Categories : Android

copying database file from /assets to /data/data folder in file explorer - Android
Try using below code to copy database from assets to data/data/package directory package com.example.myapp; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DataBaseHelper1 extends SQLiteOpenHelper{ private static String DB_PATH = "/data/data/com.example.myapp/databases/"; private static String DB_NAME = "myDB.sqlite"; private SQLiteDatabase myDataBase; private final Context myContext; public DataBa

Categories : Android

Android studio file explorer not showing files in data folder
I found a solution based on the answer in stack overflow . How to access data/data folder in Android device? First i rooted the device .Then i modify the access permission of data folder using adb shell. the code is $ adb shell $ su # mount -o rw 1|root@android:/ # chmod -R 777 data/ Now i can access the files.Thank you @param for your valuable comment.

Categories : Android

Building Android programs on the command line - basic issue - /tools/android does not exist
The latest Android SDT moved some tools to the build-tools folder and others to the platform-tools folders: you might want to try either copying the files from there to a folder you're expecting, or point to the right place.

Categories : Android

How to access files inside of a folder that is inside of a ZipEntry
ZipEntry has a method isDirectory() which Returns true if this is a directory entry. A directory entry is defined to be one whose name ends with a '/'. What you'll want to do is iterate over all the the entries (as you are doing) and get the InputStream for those that are inside the directory, ie. that have a path relative to the directory. Say folderName has the value "/zip/myzip/directory", then a file inside that directory will have a name as "/zip/myzip/directory/myfile.txt". You can use the Java NIO Path api to help you Path directory = Paths.get("/zip/myzip/directory"); // you get this directory path from the ZipEntry Path file = Paths.get(current.getName()); if (file.startsWith(directory)) { // do your thing } You can get the InputStream as zipFile.getInputStream(cu

Categories : Java

zip main folder with sub folder inside
try this. zipFile('image/data/','aaa.zip', true); /** * function zipFile. Creates a zip file from source to destination * * @param string $source Source path for zip * @param string $destination Destination path for zip * @param string|boolean $flag OPTIONAL If true includes the folder also * @return boolean */ function zipFile($source, $destination, $flag = '') { if (!extension_loaded('zip') || !file_exists($source)) { return false; } $zip = new ZipArchive(); if (!$zip->open($destination, ZIPARCHIVE::CREATE)) { return false; } $source = str_replace('\', '/', realpath($source)); if($flag) { $flag = basename($source) . '/'; //$zip->addEmptyDir(basename($source) . '/'); } if (is_dir($source) === tru

Categories : PHP

What is the proper way to check if a file/folder in a Box account is read-only using the Box Android library (apiV2)?
You can first check the owner of the folder (folder.getOwnedBy()), if it's the current user then you don't need to check collaborations. However if it's not the current user you'll have to check collaborations.

Categories : Java

Android: How to open a specific folder via Intent and show its content in a file browser?
You seem close. I would try to set the URI like this : String folderPath = Environnement.getExternalStorageDirectory()+"/pathTo/folder"; Intent intent = new Intent(); intent.setAction(Intent.ACTION_GET_CONTENT); Uri myUri = Uri.parse(folderPath); intent.setDataAndType(myUri , "file/*"); startActivity(intent); But it's not so different from what you tried... Tell us if it changes anything ? Also make sure the targeted folder exists, and have a look on the resulting Uri object before to send it to the intent, it may not be what we are expected...

Categories : Android

Import an Android Project from Eclipse to Android Studio and I have this error message "failed to find Build Tools revision 8.0.0"
Your build.gradle is trying to use Android SDK tools 8 which isn't installed on your machine. If you look at your build.gradle file you probably have this line buildToolsVersion "8". You want your build.gradle file to point to the Android SDK tools that you currently have installed (preferably the latest). Just open the Android SDK manager and see which tools you have installed and change the buildToolsVersion "8" to the right version.

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.