device.js
Device.js makes it easy to write conditional CSS _and/or_ JavaScript based on device operating system (iOS, Android, Blackberry, Windows, Firefox OS, MeeGo), orientation (Portrait vs. Landscape), and type (Tablet vs. Mobile).
Matthew Hudson / Device.js
I'm trying to run my app on the device but I'm getting the following error message "Could not inspect application package",
the app was successfully running on the device but then it stopped, it still builds successfully.
Other apps are running fine.
This was the error from the console.
Dec 1 14:08:13 Marafeti kernel[0] : lockbot[567] Builtin profile: gputoolsd (sandbox)
Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 handle_install: Install of "/var/mobile/Media/PublicStaging/demoMus.app" requested by mobile_installation_proxy
Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 peruse_package: App info dict loaded from "/var/tmp/install_staging.44DhXc/demoMus.app" did not have bundle identifier
Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 stage_package: Could not peruse package at /var/tmp/install_staging.44DhXc/demoMus.app
Dec 1 14:08:28 Marafeti installd[31] : 0x2ff7c000 MobileInstallationInstall_Server: Could not stage the package
Dec 1 14:08:28 Marafeti mobile_installation_proxy[572] : 0x39dbeb88 MobileInstallationInstall: failed with -1
Dec 1 14:08:28 Marafeti mobile_installation_proxy[572] : handle_install: Installation failed
Dec 1 14:08:29 Marafeti installd[31] : 0x2ff7c000 handle_install: API failed
Dec 1 14:11:50 Marafeti dataaccessd[83] : 0x1dd6c3b0|DA|Note |AccountID: E1B4940D-E02C-4ECF-B6AC-7B0DB8BAAA52 ("iCloud") (Legacy)
Stats DAStatusReport 0x1e8e9d80: {
DASRAccountType = IMAPNotes;
DASRPersistentUUID = "E1B4940D-E02C-4ECF-B6AC-7B0DB8BAAA52";
DASRTimeSpan = "37.06999397277832";
}
=======
AccountID: ABEE9E0F-D30B-488C-AE35-0A67FFC9D0A8 ("Gmail") (Legacy)
Stats DAStatusReport 0x1ddc6af0: {
DASRAccountType = IMAPNotes;
DASRPersistentUUID = "ABEE9E0F-D30B-488C-AE35-0A67FFC9D0A8";
DASRTimeSpan = "36.95116698741913";
}
=======
AccountID: 00D54212-0B42-4D2E-A7CF-517815381FCC ("iCloud") (Legacy)
Stats DAStatusReport 0x1e8e5e30: {
DASRAccountType = CalDAV;
DASRFailedNetworkRequests = 3;
DASRPersistentUUID = "00D54212-0B42-4D2E-A7CF-517815381FCC";
DASRSuccessfulRequests = 1;
DASRTimeInNetworking = "0.1138659119606018";
DASRTimeSpan = "36.83354198932648";
}
DATaskManager <DACoreDAVTaskManager: 0x1e889060> state:Nominal
Active exclusive task: (null)
Queued exclusive tasks: (null)
Independent tasks: (null)
Held independent tasks: (null)
Modal-held independent tasks: (null)
Active queued task: (null)
Queued tasks: (null)
Active modal task: (null)
Queued modal tasks: (null)
Associated with account: <MobileCalDAVMobileMeChildDaemonAccount: 0x1ddc7740>: accountID 00D54212-0B42-4D2E-A7CF-517815381FCC persistentUUID 00D54212-0B42-4D2E-A7CF-517815381FCC
=======
AccountID: 939CC513-0027-4F6E-821B-CC14022CA49A ("Oxinai") (Legacy)
Stats DAStatusReport 0x1e8ece00: {
DASRAccountType = CalDAV;
DASRFailedNetworkRequests = 3;
DASRPersistentUUID = "939CC513-0027-4F6E-821B-CC14022CA49A";
DASRSuccessfulRequests = 1;
DASRTimeInNetworking = "0.06468302011489868";
DASRTimeSpan = "36.41551601886749";
}
DATaskManager <DACoreDAVTaskManager: 0x1ddfb950> state:Nominal
Active exclusive task: (null)
Queued exclusive tasks: (null)
Independent tasks: (null)
Held independent tasks: (null)
Modal-held independent tasks: (null)
Active queued task: (null)
Queued tasks: (null)
Active modal task: (null)
Queued modal tasks: (null)
Associated with account: <MobileCalDAVChildDaemonAccount: 0x1e8e41f0>: accountID 939CC513-0027-4F6E-821B-CC14022CA49A persistentUUID 939CC513-0027-4F6E-821B-CC14022CA49A
=======
AccountID: C82E01E9-8299-49F2-8501-B0C31E05C8FC ("Gmail") (Legacy)
Stats DAStatusReport 0x1e8ef610: {
DASRAccountType = CalDAV;
DASRFailedNetworkRequests = 3;
DASRPersistentUUID = "C82E01E9-8299-49F2-8501-B0C31E05C8FC";
DASRSuccessfulRequests = 1;
DASRTimeInNetworking = "0.04899799823760986";
DASRTimeSpan = "36.41232699155807";
}
DATaskManager <DACoreDAVTaskManager: 0x1dd7b060> state:Nominal
Active exclusive task: (null)
Queued exclusive tasks: (null)
Independent tasks: (null)
Held independent tasks: (null)
Modal-held independent tasks: (null)
Active queued task: (null)
Queued tasks: (null)
Active modal task: (null)
Queued modal tasks: (null)
Associated with account: <MobileCalDAVChildDaemonAccount: 0x1e8eea60>: accountID C82E01E9-8299-49F2-8501-B0C31E05C8FC persistentUUID C82E01E9-8299-49F2-8501-B0C31E05C8FC
=======
AccountID: 915C5A43-FE6D-4EEE-A157-A7D26671DDAA ("iCloud") (Legacy)
Stats DAStatusReport 0x1ddda4a0: {
DASRAccountType = CardDAV;
DASRPersistentUUID = "915C5A43-FE6D-4EEE-A157-A7D26671DDAA";
DASRTimeSpan = "36.39721202850342";
}
DATaskManager <DACoreDAVTaskManager: 0x1e83be40> state:Nominal
Active exclusive task: (null)
Queued exclusive tasks: (null)
Independent tasks: (null)
Held independent tasks: (null)
Modal-held independent tasks: (null)
Active queued task: (null)
Queued tasks: (null)
Active modal task: (null)
Queued modal tasks: (null)
Associated with account: <CardDAVMobileMeChildDaemonAccount: 0x1ddda0e0>: accountID 915C5A43-FE6D-4EEE-A157-A7D26671DDAA persistentUUID 915C5A43-FE6D-4EEE-A157-A7D26671DDAA
=======
AccountID: 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD ("iCloud") (Legacy)
Stats DAStatusReport 0x1dddcb00: {
DASRAccountType = BookmarkDAV;
DASRPersistentUUID = "2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD";
DASRTimeSpan = "36.25405502319336";
}
DATaskManager <DACoreDAVTaskManager: 0x1ddcf400> state:Nominal
Active exclusive task: (null)
Queued exclusive tasks: (null)
Independent tasks: (null)
Held independent tasks: (null)
Modal-held independent tasks: (null)
Active queued task: (null)
Queued tasks: (
)
Active modal task: (null)
Queued modal tasks: (null)
Associated with account: <BookmarkDAVMobileMeChildDaemonAccount: 0x1e8f1670>: accountID 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD persistentUUID 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD
=======
AccountID: A7FA469A-9A67-4C93-8FF7-D60BC81AB75C ("Facebook") (Accountsd)
Stats DAStatusReport 0x1e8a8d40: {
DASRDisplayName = Facebook;
DASRPersistentUUID = "A7FA469A-9A67-4C93-8FF7-D60BC81AB75C";
DASRTimeSpan = "36.18959897756577";
}
No Task Manager initted yet=======
AccountID: 34DBB43F-29EB-4B7A-B8EC-6DBAD3CE87BE ("Facebook") (Accountsd)
Stats DAStatusReport 0x1ddc1710: {
DASRDisplayName = Facebook;
DASRPersistentUUID = "34DBB43F-29EB-4B7A-B8EC-6DBAD3CE87BE";
DASRTimeSpan = "36.06168901920319";
}
No Task Manager initted yet=======
_contactsLockHolder (null)
_contactsWaiters (
)
_waiterIDsExpectingContactsLock {(
)}
_eventsLockHolder (null)
_eventsWaiters (
)
_waiterIDsExpectingEventsLock {(
)}
_notesLockHolder (null)
_notesWaiters (
)
_waiterIDsExpectingNotesLock {(
)}
_bookmarksLockHolder (null)
_bookmarksWaiters (
)
_waiterIDsExpectingBookmarksLock {(
)}
Shared DAPowerAssertionManager object <DADaemonPowerAssertionManager: 0x1dd637c0>:
Contexts asserting power: <NSCountedSet: 0x1ddf9fd0> ()
Contexts held aside: <NSCountedSet: 0x1ddf68f0> ()
Active Assertions: {
}
DARefreshManager enabled wrappers:
Topic "com.me.cal" {
<DARefreshWrapper 0x1ddc14c0 for delegate <MobileCalDAVMobileMeChildDaemonAccount: 0x1ddc7740>: accountID 00D54212-0B42-4D2E-A7CF-517815381FCC persistentUUID 00D54212-0B42-4D2E-A7CF-517815381FCC: Push state 0, style Poll, last registration: (null)>
}
DARefreshManager wrappers:
<DARefreshWrapper 0x1e889c90 for delegate <MobileCalDAVChildDaemonAccount: 0x1e8e41f0>: accountID 939CC513-0027-4F6E-821B-CC14022CA49A persistentUUID 939CC513-0027-4F6E-821B-CC14022CA49A: Push state 0, style Poll, last registration: (null)>
<DARefreshWrapper 0x1dd28170 for delegate <CardDAVAgent: 0x1e8af410>: Push state 0, style Poll, last registration: (null)>
<DARefreshWrapper 0x1e829ae0 for delegate <BookmarkDAVAgent: 0x1e8af570>: Push state 0, style Poll, last registration: (null)>
<DARefreshWrapper 0x1ddeeac0 for delegate <MobileCalDAVChildDaemonAccount: 0x1e8eea60>: accountID C82E01E9-8299-49F2-8501-B0C31E05C8FC persistentUUID C82E01E9-8299-49F2-8501-B0C31E05C8FC: Push state 0, style Poll, last registration: (null)>
Any advice ?
Thank you for your time.
Source: (StackOverflow)
After upgrading to OS X Yosemite I found that eclipse was not working because JAVA was not properly installed. I installed it and now I am able to open eclipse.
When I connect my device, I am able to see my device on the device list in eclipse. However when I run my project, I am unable to see it on Android device chooser. My device is getting detected by Eclipse but I am not able to select it to run.
This was working perfectly on my previous OS X Mavericks! Please help!
Thanks
Source: (StackOverflow)
My android app is not in the app store yet.
Is it possible to send my app to someone, and they install it on their device.
Something like iphone AdHoc?
Source: (StackOverflow)
I am writing a USB device drive for linux. it's for a joystick.
every time plug it in, linux loads a hid driver. is there a way to tell Linux to load mine when I plug it in? or at least not load the default one?
I can echo the id in unbind of the default driver and echo it in bind of my driver; but I would like something more automatic..
thanks
Source: (StackOverflow)
is there a way to view the console output as we are running an iphone App on the device?
If not directly, is there an app on the App store which lets you view the log after the App has finished running?
Source: (StackOverflow)
How can I run logcat on multiple devices at the same time? "adb logcat" command gives an error:
error: more than one device and emulator
Source: (StackOverflow)
The AVD manager in Android Studio doesn't show my device but "adb devices" does show it. Am I missing something obvious here?
Source: (StackOverflow)
I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; though it does get installed on the device. On the device I get this message box on the Comet screen
Waiting for Debugger
Application HunyDew (process com.airvine.hunydew) is waiting for the debugger to attach.
[Force Close]
Whereas in the Eclipse console I get these set of messages
[2010-12-07 01:42:29 - hunydewprj] Android Launch!
[2010-12-07 01:42:29 - hunydewprj] adb is running normally.
[2010-12-07 01:42:29 - hunydewprj] Performing com.airvine.hunydew.HunyDewAAStartsHere activity launch
[2010-12-07 01:42:47 - hunydewprj] Application already deployed. No need to reinstall.
[2010-12-07 01:42:47 - hunydewprj] Starting activity com.airvine.hunydew.HunyDewAAStartsHere on device 308730C861BC
[2010-12-07 01:42:49 - hunydewprj] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.airvine.hunydew/.HunyDewAAStartsHere }
[2010-12-07 01:42:49 - hunydewprj] Attempting to connect debugger to 'com.airvine.hunydew' on port 8601
[2010-12-07 01:43:09 - hunydewprj] Launch error: Failed to connect to remote VM. Connection timed out.
The application runs fine in the Emulator - please help - what is it that I am missing here? Any hints/suggestions? Thanks
Source: (StackOverflow)
I try to implement google oauth, following the Google OAuth2ForDevices.
My App is registered on Google Cloud Console, as native App. When I try to follow the OAuth2ForDevices using Google Chromes - Advanced Rest Client Application, I get the json response with the user_code and verfication_url. Opening the verfication_url and enterering the user_code, leads to the follwoing Error:
invalid_client: no support email
Error 400
I tried this with 2 registred Apps on Google Cloud Console. Both leading to the same error.
Anys hints, how to solve this? Do I have to register a support email
somewhere in google cloud services?
Source: (StackOverflow)
If I dial
*
#
*
#
8
2
5
5
#
*
#
*
, I get my android device id which starts with android-
35c2acdd...
source
If I use Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID)
the result starts with a96b4b27...
If I use ((TelephonyManager) Context.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId()
the result starts with 3538330...
What is the difference between these ID-s? How can I get the result of the
*
#
*
#
8
2
5
5
#
*
#
*
dial?
Source: (StackOverflow)
I have just got involved in Swift programming recently and been struggling with its syntax.
Is there a way to get device model name (iphone4s,iphone5,iphone5s etc.) in Swift ?
I know there is a property named UIDevice.currentDevice().model but it only returns device type (iPod touch, iPhone, iPad, Iphone Simulator etc...)
I also know it can be done easily in Objective-C with this method
#import <sys/utsname.h>
struct utsname systemInfo;
uname(&systemInfo);
NSString* deviceModel = [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
But I'm making my iPhone app in Swift so could someone please help me with the equivalent way in Swift ?
Source: (StackOverflow)
When one wants to publish his App on the Android Market he can upload up to two screenshots of his app. I would like to take these screenshots with my current device (Motorola Droid) that I'm using to test the application.
There are some Apps on the Android Market that allow you to take screenshots, but you have to root your phone, which I dont want to. There are related topics within stackoverflow where people want to take screenshots out of there code (here). However I just want to take screenshots of my running app with the current device, which is connected via USB to my computer; I'm developing via Eclipse, so there should be a way to tell your running device that it should take a screenshot via the sdk, right?
Some website mention a way to do this "To take a screenshot, you'll be required to enable USB Debugging under the settings, install the Android software development kit, and then connect to the phone with a debug tool" (here) but they dont explain what I actually need to do step-by-step.
I would really appreciate if someone can help me out.
Source: (StackOverflow)
I'm working on a project where I need my CUDA device to make computations on a struct containing pointers.
typedef struct StructA {
int* arr;
} StructA;
When I allocate memory for the struct and then copy it to the device, it will only copy the struct and not the content of the pointer. Right now I'm working around this by allocating the pointer first, then set the host struct to use that new pointer (which resides on the GPU). The following code sample describes this approach using the struct from above:
#define N 10
int main() {
int h_arr[N] = {1,2,3,4,5,6,7,8,9,10};
StructA *h_a = (StructA*)malloc(sizeof(StructA));
StructA *d_a;
int *d_arr;
// 1. Allocate device struct.
cudaMalloc((void**) &d_a, sizeof(StructA));
// 2. Allocate device pointer.
cudaMalloc((void**) &(d_arr), sizeof(int)*N);
// 3. Copy pointer content from host to device.
cudaMemcpy(d_arr, h_arr, sizeof(int)*N, cudaMemcpyHostToDevice);
// 4. Point to device pointer in host struct.
h_a->arr = d_arr;
// 5. Copy struct from host to device.
cudaMemcpy(d_a, h_a, sizeof(StructA), cudaMemcpyHostToDevice);
// 6. Call kernel.
kernel<<<N,1>>>(d_a);
// 7. Copy struct from device to host.
cudaMemcpy(h_a, d_a, sizeof(StructA), cudaMemcpyDeviceToHost);
// 8. Copy pointer from device to host.
cudaMemcpy(h_arr, d_arr, sizeof(int)*N, cudaMemcpyDeviceToHost);
// 9. Point to host pointer in host struct.
h_a->arr = h_arr;
}
My question is: Is this the way to do it?
It seems like an awful lot of work, and I remind you that this is a very simple struct. If my struct contained a lot of pointers or structs with pointers themselves, the code for allocation and copy will be quite extensive and confusing.
Source: (StackOverflow)
I'm developing android with SDK 2.3.3 using Eclipse IDE.
As you all know to run my app, I should generate virtual device.
From 'create new AVD' window, I can see many targets.
There are 2 targets for API level 10 such as 'android 2.3.3' and Google APIs(Google Inc).
Among those targets, I'm uncertain which one I should choose.
My question is what's the difference between them.
Thanks in advance
Dan
Source: (StackOverflow)
I'm trying to figure out how to debug applications directly on my phone (HTC Desire).
I've installed the USB driver that came with the phone and the phone is listed when using "adb devices".
How do I configure eclipse/ADT to launch on the phone instead of launching the emulator/virtual device?
Source: (StackOverflow)