sd-card

cropping image and save to specific folder in sdcard (Android)?

送分小仙女□ 提交于 2019-12-12 01:32:40
问题 I've image has been crop. I want that image save to folder (sdcard)...I've already done crop image and show to imageview, but my problem is, I don't know how saving image crop to sdcard ? here is my code has success to crop an image.. Bundle extras = data.getExtras(); if (extras != null) { Bitmap photo = extras.getParcelable("data"); mImageView.setImageBitmap(photo); } where I can add the code to save an image that have been cropped? 回答1: Try out this way: Bundle m_extras = data.getExtras();

Save image to sdcard from imageview

十年热恋 提交于 2019-12-11 18:45:57
问题 I have listview having customized some textview and one imageview. When I long click on item I have store that item information to the database but the question is how to store image in sdcard and store the relevant path to the database. The image alread download as cache now I don't want to re-download that image. Is there way to store that Image to the sdcard. I am using this example to download the images for listview https://github.com/thest1/LazyList Edit I got solution no need to extra

Save scaled image to sdcard android

拜拜、爱过 提交于 2019-12-11 18:23:32
问题 i've the following code, that scale the object. Now i want to save the scaled image to sdcard, please help me regarding that i've searched many but didn't find any public boolean onTouch(View v, MotionEvent event) { ImageView view = (ImageView) v; // Dump touch event to log dumpEvent(event); // Handle touch events here... switch (event.getAction() & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: savedMatrix.set(matrix); start.set(event.getX(), event.getY()); Log.d(TAG, "mode=DRAG");

Most carefull way to concatenate strings in C

半腔热情 提交于 2019-12-11 12:44:16
问题 My firmware in one cycle per 10 second is moving string to the output (csv file on SD card). The problem is that string sometimes in non-deterministic way is changing adding values that shouldn't be there or put space in the middle. Is this related to sprintf function or dynamic allocated memory for that string? void archPolling() { double archCountVal[200]; float archDataVal[100]; char *FilStringMeas = malloc(sizeof(char) * 2048); char *FilArchive = malloc(sizeof(char) * 4096); vArchEvent

How to copy db.zip from asset to SD card in android

时间秒杀一切 提交于 2019-12-11 12:35:55
问题 i have a SQLite DB with 40MB size. i use SQLite Asset Helper library to copy DB and use it. because of APK size issue i should to zip my DB. the lib works great, but it copy DB into internal memory and 40MB size of DB causes future problems. i want to copy my DB into SD. solution 1: copy zipped DB with SQLite Asset Helper lib into internal memory and then move DB to SD. Solution 2: copy zipped DB into SD card directly. So please help me which one is better and how i can do it. 回答1: My

MSP430F5438 SD card using an SPI interface

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:05:59
问题 I want to connect an SD card using the SPI interface of MSP430F5438. The hardware part is correct in my design, however I could not send any data to the SD card. The source code I use is from Secure Digital Card Interface for the MSP430 . For debugging, how could I send data to the SD card? The data should be received from the ADC12MEM registers and just need to be written in the SD card. From this source code above, there is no process, when I debug and I could not send any user input to the

An error occured while executing doInBackground()

柔情痞子 提交于 2019-12-11 12:03:38
问题 I am using a doInBackground() method to save my database as a xml file and back up the database. it backs up the database and saves it but force closes when trying to save into xml file. ON CLICK AND SAVE/EXPORT @Override public void onClick(View v) { case R.id.clockOut: /*if (WWActivity.this.isExternalStorageAvail()) { new ExportDatabaseFileTask().execute(); } else { Toast.makeText(WWActivity.this, "External storage is not available, unable to export data.", Toast.LENGTH_SHORT).show(); }*/

Copying file from a Samba drive to an Android sdcard directory

﹥>﹥吖頭↗ 提交于 2019-12-11 11:44:19
问题 I am new to Android and Samba. I am trying to use the JCIFS copy. To method to copy a file from a Samba directory to the 'Download' directory under sdcard on an Android 3.1 device. Following is my code: from = new SmbFile("smb://username:password@a.b.c.d/sandbox/sambatosdcard.txt"); File root = Environment.getExternalStorageDirectory(); File sourceFile = new File(root + "/Download", "SambaCopy.txt"); to = new SmbFile(sourceFile.getAbsolutePath()); from.copyTo(to); I am getting a

Binary reading and writing in C++

不问归期 提交于 2019-12-11 10:28:04
问题 I am making an data logger project. In my data logger, I have 5 sensors like: temperature, humidity, accelerometer, light and barometer. Here, I am storing the data in to SD card in binary format. I'm storing accelerometer @3200HZ and all other sensors at 1HZ. While writing, I'm adding a special character to each measurements like below. if(DRDY) { fwrite(&accdata,sizeof(char),1,logFile); // accelerometer special char accelerometer.getOutput(readings); int16_t store[3] = {(int16_t)readings[0]

How to solve android app install error 110? [closed]

狂风中的少年 提交于 2019-12-11 10:26:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . When i'm trying to install or update a app from google play i get an error like: "unknown error code during application install:"-110" So i add an sd card and tried to install app, but still have the same error. Please help me. Thanks in advance 回答1: This Unknown Error Code During Application Install 110 basically