device

(iphone) access device's documents directory from mac?

喜欢而已 提交于 2019-11-27 12:33:38
I'm trying to access the documents directory at iphone device to see a log file that I saved while executing the app. I know this can be done for simulator. (you can browse the document directory of your app with Finder) Can this be done for device? Thank you You can open Organizer in Xcode and download the documents directory when your device is connected right ? In Xcode 6 you should open Devices window to download it. Hi Viraj's anwer is the way to go .Here is a screenshot: I'm going to combine the two solutions together and add screenshots for clarity. This is with Xcode 7 . View/Download

Transforming accelerometer's data from device's coordinates to real world coordinates

好久不见. 提交于 2019-11-27 12:14:20
I'm really sorry if this is a very basic question, but I have not choice but ask it: How do you translate the accelerometer data from the device coordinates to real world coordinates? I mean, assuming that the accelerometer is giving me somenting like (Ax,Ay,Az) - in device's coordinates -, what transformations should I apply to transform the values into (Ax',Ay',Az') - in real world's coordinates -, so I can use the acceleration vector in real worlds coordinates to calculate if the device is accelerating north, east, south-west,etc? I have been working around this issue during the past few

Android: AVD-Settings for Galaxy S3-Like AVD

谁都会走 提交于 2019-11-27 12:05:23
问题 I need help with the AVD-Settings for my new Virtual Device. I need the settings for an AVD that has the same size like the new Samsung Galaxy S3. 回答1: I just saw a detailed description here: http://forum.xda-developers.com/showthread.php?t=2365104 : Name: Samsung_Galaxy_S3_IceCream Target: Android 4.0 (Api level 14) SDCard: 16 Gb Skin: WVGA800 Hardware: Size 4.8 inches (~65.9% screen-to-body ratio) Resolution 720 x 1280 pixels (~306 ppi pixel density) Device Ram Size: 1024 Hardware Back/Home

ImageView displaying in layout but not on actual device

*爱你&永不变心* 提交于 2019-11-27 12:00:06
问题 I have an ImageView that I want to display matching the full width of the device, I realized that like this: <ImageView android:id="@+id/home_bar_newvault" android:layout_width="wrap_content" android:layout_height="40dp" android:scaleType="centerCrop" android:layout_alignParentBottom="true" android:src="@drawable/home_bar" /> The home_bar is a PNG image file with the following dimensions: 2399x254. When I choose to view the Graphical Layout of the UI it displays the imageview correctly at the

Xcode - iPhone - profile doesn't match any valid certificate-/private-key pair in the default keychain

北慕城南 提交于 2019-11-27 11:53:02
I tried to add my iPhone to Xcode4 to test my Application on it. I added the device in the Apple Developer-Center and downloaded the Provision-Profile. We pay 99$ per month for the account and I'm not the only person who use this account. So there is already an "older" certificate present which I tried to add to my keychain-manager. But I see a red-text above it (translated from german) "This certificate has been signed by an unknown instance.". In my XCode-Device Manager in the Provisioning-Section there's also an error: "XCode could not find a valid private-key/certificate pair for this

Sending ATA commands directly to device in Windows?

余生长醉 提交于 2019-11-27 11:42:08
问题 I’m trying to send ATA commands to a physical disk in Windows, and get the response from the device. Note: In this case I want to send the IDENTIFY DEVICE (0xEC) command. The device will respond with a 512-byte block of data. (In particular I’m interested in bit 0 of word 119 - the device’s support for the TRIM command). I know that I need to use CreateFile to open the device: handle = CreateFile( "\\.\PhysicalDrive0", GENERIC_READ, FILE_SHARE_READ, nil, // no security attributes OPEN

Application not automatically launching in device and getting error on xcode

本小妞迷上赌 提交于 2019-11-27 09:36:47
I'm getting a weird bug on Xcode 4.5. When i tried to run my application on Ipad 2 from xcode with iOS 6, I'm getting this error. I done the following methods to run the application, but no luck. Cleaned the project and run Restarted the device Restarted xcode I have a valid certificate in my machine and the application is installing on the device but it's not launching automatically. What could be the issue ? Thanks in advance Omarj That is really annoying. This error happens in a number of different situations. Sometimes restarting the Xcode, fixes the problem. If not, follow these steps:

DatePicker crashes on my device when clicked (with personal app)

拟墨画扇 提交于 2019-11-27 09:19:10
问题 Edit : I checked that the issue only appears when the phone is set with "French" language. I'm currently building my own app and I have an issue when using the DatePicker widget on my phone (debug mode phone : Samsung S5). The error gather is : java.util.IllegalFormatConversionException I add more details about the issue gathered in logcat: 02-20 10:37:18.255 13029-13029/avappmobile.mytasks E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: avappmobile.mytasks, PID: 13029 java.util

How to connect the device to Eclipse?

我是研究僧i 提交于 2019-11-27 08:59:09
I am not able to resolve this simple issue. I am trying to connect my device to Eclipse via USB cable. On my PC, I have installed Eclipse and the Android SDK and running the program on the emulator is working fine. I have downloaded and installed Samsung Kies on my PC. It shows my device if connected via USB to the PC. But I dont know how to connect the device with the emulator. Connect means, I want to run the Eclipse code on my device instead of emulator. I am using Samsung Galaxy Ace GT-S5830i . Please help me out to resolve this issue. Comment is lack of formatting so i add an answer.

How to get a list video capture devices NAMES (web cameras) on linux ( ubuntu )? (C/C++)

拥有回忆 提交于 2019-11-27 08:21:11
问题 So all I need is simple - a list of currently avaliable video capture devices (web cameras). I need it in simple C or C++ console app. By list I mean something like such console output: 1) Asus Web Camera 2) Sony Web Camera So I know how to get cam props such as W, H etc using code like: #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/videodev.h> int main(){ int fd; struct video_capability video_cap; struct video_window video_win; struct video