internal

internal vs external uri on fetching data from mediastore

感情迁移 提交于 2019-12-12 12:07:18
问题 Hopefully someone can clarify this to me...I am working on a simple video player app that plays video clip stored on phone. All examples I've seen fetch video using MediaStore.Video.Media.EXTERNAL_CONTENT_URI content Uri, something like that cursor = resolver.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, cols, whereClause, null, sortOrder); But won't it limit the list to only files stored on SD card? Newer android phones has significant amount of internal memory - for example, Samsung

Java process memory usage keeps increasing and java native memory tracking shows “Internal” consumes lots of memory

半世苍凉 提交于 2019-12-12 05:19:02
问题 Java 1.8.0_131 + Windows Server 2012 R2. '-Xmx=9000m'. But Windows Task Manager shows the java process uses more than 14 GB memory. NMT shows "Internal" consumes more than 4.5 GB memory. Why does this occur? I understand it is not Java functionality to define spaces for the native memory. But is there any method to limit the 'Internal' memory? Total: reserved=15782485KB, committed=14653869KB - Java Heap (reserved=9216000KB, committed=9216000KB ) (mmap: reserved=9216000KB, committed=9216000KB)

java external threads (outside the class file it's used)

喜欢而已 提交于 2019-12-12 04:25:52
问题 The question is, is it possible to have an external thread or do they have to be internal to the class they run in. If so could someone show me how. (external thread) 回答1: A thread , or, more precisely, a thread of execution is something, and the class Thread is something closely related but different, and it seems that you are mixing up these two concepts. You can think of a thread of execution as a machine that will execute operations sequentially. One way to define and run such a machine

Android: Save data to internal memory using Download

独自空忆成欢 提交于 2019-12-12 03:39:17
问题 I am downloading file from a server in Android using the DownloadManager class. I want to store this file in the internal memory of the device. I tried to use .setDestinationInExternalPublicDir(Environment.getExternalStorageDirectory() +"/Android/data/xxx.xxx.xxx/files/") as mentioned here, but it is not working. How to solve my problem? 回答1: add <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> to manifest.xml and create "/Android/data/xxx.xxx.xxx/files/" path 回答2:

Redirecting CMD Commands To An EXE File

拥有回忆 提交于 2019-12-12 01:46:15
问题 Basically I have created an choice batch that every so often I can archive the contents of my boot data since I change it quite often and it works absolutely perfect, however I face the problem that every time I compile the batch from .BAT to.EXE with Advanced BAT to EXE converter the command 'bcdedit' never works and says “Not recognised as an internal or external command, operable program or batch file.” Now the first thing I did was to make sure if I had the environment variables directed

Limit number of Characters entered for Link Title Field in General Link

一世执手 提交于 2019-12-11 21:27:31
问题 Can we limit number of characters that a content author can enter in the Link Title Field for general link for both Internal and External Link as shown below Thanks in Advance, 回答1: I have yet to find a way to set this per template-field but I managed to add a MaxLength on the input in this file: sitecore\shell\Applications\Dialogs\ExternalLink\ExternalLink.xml <Edit ID="Title" Width="100%" MaxLength="20" /> Edit: new solution to enable per template-field maxlength I dug a bit further and

Htaccess URLRewrite to another map

ぃ、小莉子 提交于 2019-12-11 16:26:44
问题 When i go to {url}/klanten/home/ or {url}/klanten/logout/ a 500 Internal Server Error come. My htaccess: RewriteEngine on RewriteRule ^klanten/([^/]+)/?$ klanten/$1.php [L,QSA,NC] RewriteRule ^error/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ error.php?type=$1&error=$2&file=$3&from=$4 [L,QSA,NC] RewriteRule ^email/([^/]+)/?$ email.php?id=$1 [L,QSA,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [L] The map

how to put a picture in the internal memory of the app?

跟風遠走 提交于 2019-12-11 13:53:58
问题 I am trying to take a picture from the camera app and save it into the app's files , searching until now lead me to something about content Uris.. (I have no idea on what they are or how to use them). I am already able to save a photo in the external memory so if there is a way to move photos from there into the apk file it would be nice. the path I wanted to put the photos in is "appname/app/src/main/assets/photos" this is the code I have now: public class Add_Comment_Picture extends

Internal module as single function

可紊 提交于 2019-12-11 08:35:03
问题 Why TS generates two functions, but not one? It looks like we have one module separated between two files in TS: module Main { export function P() { } } module Main { export function P2() { P(); } } And it compile to JS as two functions: var Main; (function (Main) { function P() { } Main.P = P; })(Main || (Main = {})); var Main; (function (Main) { function P2() { Main.P(); } Main.P2 = P2; })(Main || (Main = {})); But I need such JS output file, so all modules content would be concatenated to

Saving data internally in Android messes up my data

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:14:51
问题 I'm currently working on a game, where I need to create a transposition table for my AI. I implemented Hashtable so that the key to the Hashtable is a state under consideration and its corresponding value is the optimal next move. However, when I save the Hashtable in Android's internal storage and restore it next time, it seems to have some saved data, but the keys (i.e. game states) are different than the keys I have saved in the previous instance. Here is how I save and restore my data: