Not showing my mobile device in eclipse but show in Window 8 (portable device part) |
Download usb driver for samsung from here :
http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
|
iOS Project runs on simulator, physical device, but can't build or archive anymore for "iOS Device" |
After this happening a few times, I figured out the issue. When my iPhone
is hooked up to my Mac and tethering is on, this problem occurs. When I
turn tethering off, or disconnect the phone, I can archive again. Not sure
why this, but I hope it helps someone at some point.
|
The method "device.press" or "device.touch" of MonkeyRunner doesn't take effect |
You could try to replace 'DOWN_AND_UP' with MonkeyDevice.DOWN_AND_UP. And
you could also add some MonkeyRunner.sleep(time_in_seconds) to pause the
script between the interactions.
To test if the device object was properly created you could use
device.wake() which lights up the device's display. If this works, the
touch and press methods should work also.
|
Trying to retrieve previously paired bluetooth device in IOS app will not respond with failure if device is off |
Two points you need to know about retrievePeripherals: and
connectPeripheral:
1.) retrievePeripherals: attempts to retrieve the CBPeripheral object
associated with the uuid you supply. Even if the ble device is off (or on
the other side of the country) retrievePeripherals: will still return an
instance of CBPeripheral that you can call connectPeripheral: on. This is
done intentionally so that you can issue a call to a peripheral that is not
even around and still automatically connect to it when it comes back into
range. It basically creates a marker inside the system bluetooth so that
when the device is actually seen, it will know it should connect to it.
2.)connectPeripheral: will not time out unless the communication channel is
broken with the actual device. If the iOS device has not s
|
how to use the same image of 160ppi and 1280X800 ressolution device in 800X1280 and 214ppi device |
1280 x 800 160ppi is MDPI devices
800 x 1280 214PPi us TVDPI devices
//you need to supply different density Images like
MDPI and HDPI images
TVDPI devices will pick from HDPI image and auto scale them
//you can also supply different drawable for large and xlarge drawables.
|
why doesn't MPMoviePlayerController play in simulator but not in device if the format is valid for the device? |
Solved!
I am forcing it playing even if the mute is on,
moviePlayer.useApplicationAudioSession = NO;
[self presentMoviePlayerViewControllerAnimated:moviePlayer];
that's what itunes store does if the mute is on for the preview songs when
you tap it
|
Sending image (.jpg) byte data to an iOS device from a .NET web service, then on the iOS device, encoding it to its respective file type (.jpg) |
Been there, but on the iOS end.
What we did to solve this problem was to have the .NET server send the
image as a base64 encoded string, just as you said.
In the iOS end, the dev must then use a base64 decoding class (there are
plenty on the internet, this one for example:
http://www.imthi.com/wp-content/uploads/2010/08/base64.zip), transform that
into NSData and then create the image with that data.
Should look something like this:
NSString *b64string = @"string to decode";
NSData *imgData = [DecoderClass decodeBase64FromString:b64String];
UIImage *image = [UIImage imageWithData:imgData];
If the data is correct, it should work.
UIImage is a high-level class and should handle image types (jpg, png, etc)
automatically, as long as the data is consistent.
|
how to record the voice from bluetooth device mic and play in device speaker |
yes above concept is correct and very helpful for me(but there is little
bit addition or modification done) but routing to
speaker(device-speaker)required new session to create
for taking input from Bluetooth we have create session like
//// create and set up the audio session
AVAudioSession* audioSession = [AVAudioSession sharedInstance];
[audioSession setDelegate:self];
[audioSession setCategory: AVAudioSessionCategoryRecord error: nil];
[audioSession setActive: YES error: nil];
// set up for bluetooth microphone input
UInt32 allowBluetoothInput = 1;
AudioSessionSetProperty
(kAudioSessionProperty_OverrideCategoryEnableBluetoothInput,sizeof
(allowBluetoothInput),&allowBluetoothInput);
and when ever u want to paly the sound not in bluetoothdevice speaker at
that time override
|
Using the accelerometer in a Windows Phone 8 device to determine if device is not moving |
From my point of view, it really depends where do you want to use your app.
If it is an outdoor application then as Igrali mentioned using GPS would be
a better option. However, if you are still sure that you want to use
accelerometer one way that I tried before was save last few results of the
accelerometer every time then check them with previous results. if the
result was same it means the system is stopped otherwise it is moving. That
may not be a good way but it works.
|
Changing device orientation settings by Device in Rubymotion |
You won't be able to do that in your Rakefile, as far as I know. You need
to specify that you provide both orientations and then programmatically
tell iOS whether an orientation is supported or not.
Your UIViewControllers and/or UINavigationController(s) should look like
this:
def ipad?
NSBundle.mainBundle.infoDictionary["UIDeviceFamily"].include?("2")
end
def shouldAutorotate
false # I think?
end
def supportedInterfaceOrientations
if ipad?
UIInterfaceOrientationMaskLandscapeLeft |
UIInterfaceOrientationMaskLandscapeRight
else
UIInterfaceOrientationMaskPortrait
end
end
def preferredInterfaceOrientationForPresentation
ipad? ? UIInterfaceOrientationMaskLandscapeLeft :
UIInterfaceOrientationMaskPortrait
end
Haven't tested this code, but I've used similar in th
|
Android Device device shows Unknown (?????) in eclipse |
You need to add vendor ID to android.rules file.
Please follow this link to know about particular vendor id & how to do
this.
http://developer.android.com/tools/device.html
|
How can i create new virtual mouse device on my android device? |
From what i see you should create your own virtual device with your own
driver , Fortunately there is an easy way to do so using uinput
There is an easy guide for getting started here , and this question can be
a good guide to write your own virtual driver.
I thought this can only be done if you have access to kernel , and create
your own ( i dont think modifying user rom is a good solution ) , but after
reading this , it is clear that Uinput can run in user mode.
Note :
I agree with recommendition to use touch events ; as this solution is more
common and makes sense , check second suggestion is this answer
|
How to track the device location (iOS and Android) device using Phonegap |
The first thing to say is that creating a Phonegap app that receives
location updates while running in the background is entirely possible, but
not trivial. I've done it myself and released apps on both the Android and
iOS platforms.
If you need accurate and regular position updates, I'd suggest using the
GPS receiver on the target devices. In Phonegap, you can do this setting
the "highAccuracy" flag when requesting position updates. The
watchPosition() function will deliver new position information as and when
the device receives updates from the GPS receiver, so you use it something
like this:
navigator.geolocation.watchPosition(successCallback, errorCallback, {
enableHighAccuracy: true,
timeout: 10000,
maximumAge: 0
});
See the Phonegap geolocation API documentation for more d
|
How can i Write data from Android device on c2540c device? |
Might this solve your problem?
|
How to connect Android device to an iOS device over BLE (Bluetooth Low Energy) |
I've written a simple working example, well relatively simple, and included
it open-source on Github: https://github.com/GitGarage. So far it has only
been tested with an Android Nexus 9 and an iPhone 5s, but I presume it
would also work with a Nexus 6 and various iPhone types. So far it is set
up explicitly to communicate between one Android and one iPhone, but I
presume it is tweakable to do much more.
|
WP7 app, MethodAccessException on WP7 device but works fine on WP8 device |
Try this
private Uri GetFacebookLoginUrl(string appId, string
extendedPermissions)
{
var fb = FacebookClient();
var parameters = new Dictionary<string, object>();
parameters["client_id"] = appId;
parameters["redirect_uri"] =
"https://www.facebook.com/connect/login_success.html";
parameters["response_type"] = "token";
parameters["display"] = "touch";
// add the 'scope' only if we have extendedPermissions.
if (!string.IsNullOrEmpty(extendedPermissions))
{
// A comma-delimited list of permissions
parameters["scope"] = extendedPermissions;
}
return _fb.GetLoginUrl(parameters);
}
You Need to Give App ExtendedPermissions
private const string ExtendedPermission
|
C# detect usb device ClassCode (usb device type) |
You can download USB View Source as a starting point. This loops through
all USB devices on a PC (C#) and pulls information about each. To get the
Class code, Subclass code, and Protocol type fields, you'll need to modify
it slightly. Change the below and run it and you'll get the information on
each USB device by clicking on the item in the tree view (information will
appear in the right panel).
Modifications to USB.cs:
// Add the following properties to the USBDevice class
// Leave everything else as is
public byte DeviceClass
{
get { return DeviceDescriptor.bDeviceClass; }
}
public byte DeviceSubClass
{
get { return DeviceDescriptor.bDeviceSubClass; }
}
public byte DeviceProtocol
{
get { return DeviceDescriptor.bDeviceProtocol; }
}
Modifications to fmMain.cs
// Add th
|
What will registering an apple device a developer device do to it? |
Yes you can still use it as a regular device. All registering does is
enable the Developer section in Settings, allow you to install iOS beta
releases, debug builds directly from Xcode, and ad hoc app builds.
Also to elaborate on the Developer section in the Settings app, as of iOS 6
and above, that gives you access to the network link conditioner so you can
simulate for instance 3G or EDGE speeds when on Wifi. Very useful.
|
What is difference between android device id and device token? |
Both are completely different.
Secure.ANDROID_ID
A 64-bit number (as a hex string) that is randomly generated on the
device's first boot and should remain constant for the lifetime of the
device. (The value may change if a factory reset is performed on the
device.)
And GCMRegistrar.register(this.context, CommonUtilities.SENDER_ID); Gives
you the registartion id of device from GCM. By which, GCM uniquely
identifies the device.
Another difference is Secure.ANDROID_ID may change when factory reset is
performed on the device. And Registration id gets changes periodically.
And if you are asking about CommonUtilities.SENDER_ID then This is your
project number, and it will be used later on as the GCM sender ID
|
How to update the view of an app on ios device b from device a |
when the application is open, is there a way for when the admin
application to be notified straight away as soon as a sale has been
made
There are ways.
One way is to open a connection to the server and keep it open, so that the
server can write to it whenever it has new information to share. Another
way is to implement a tiny web server in your app, tell your data server
about it, and let the data server connect to it as necessary. If the server
and the admin device are expected to be on the same network, you might be
able to use Bonjour to make it easy for the server to discover and connect
to the admin device.
The nice thing about APNS is that it lets you avoid constant use of the
network. Whether you keep an open connection to a server or have your app
listen for connections
|
Device not Recognize AVD Device on Usb Debugging |
I also faced the same problem for a Samsung device.I installed the required
Samsung Kies and USB drivers but still it doesn't show in the AVD chooser
screen. So I downloaded a driver installer software.After installing that,
it showed that a updated version of Samsung Kies is available then I
updated it and everything worked fine.You can download that software from
here
|
Using GCM for device to device app data sync |
you dont necessarily need to use GCM or any messaging service, all gcm is
meant to do is notify a device that something has changed on your server
and that you need to go get all the new stuff.
that being said all you need to do is just have a sync button that the user
can manually sync the list from the server to the device and vice versa
which would get rid of the need for GCM.
if you wanted automatic syncing then GCM or any other messaging service
would be what you want
|
How to create an event# device for a virtual input device (/dev/input/js3) in linux kernel module? |
Here is an example, you can use
1. class_create to create the class specified for the device,
2. device_create to create the device node
3. cdev_init to initialize and
4. cdev_add to add the device to the /dev list
For example you can refer the below link :Create a device node in kernel
module
|
navigator.connection.type not working even if device is ready *or* device is never ready |
You should also wait until all your scripts are loaded. Wrap everything in
a onBodyLoad like so:
function onBodyLoad() {
// these are useful later in the app, might as well set early
window.isRipple = (window.tinyHippos != null);
window.isPhoneGap = /^file:/{3}[^/]/i.test(window.location.href);
window.isIOS = !window.isRipple &&
navigator.userAgent.match(/(ios|iphone|ipod|ipad)/gi) != null;
window.isAndroid = !window.isRipple &&
navigator.userAgent.match(/(android)/gi) != null;
// stuff I use for debugging in chrome
if (window.isPhoneGap) {
document.addEventListener("deviceready", onDeviceReady, false);
} else {
onDeviceReady();
}
}
And add to your body tag:
<body onload="onBodyLoad()">
And the rest of my co
|
Why am I getting a runtime error / key error "no device found for" empty device address? |
It looks like your BladeRF is only accessible by the root user. To fix this
make a udev rule file (I know the write up you followed earlier had you do
something similar but bare with me). This will allow your regular user
account to access it. You can start in the shell by typing:
$ sudo nano /etc/udev/rules.d/15-bladerf
This should make a new file and open the nano editor. Here you will place
the following:
SUBSYSTEM=="usb", SYSFS{idVendor}=="1d50", SYSFS{idProduct}=="6066",
MODE="0666"
Afterwards, reset the udev rules service by executing:
$ sudo /etc/init.d/udev restart
NOTE: This commands should work on any Debian-based OS (Debian, Ubuntu,
Linux Mint,...)
CREDIT: The udev rules were found here http://pastebin.com/Mgb90L1x
|
Sum a sequence of device-labeled, data using most recent data for device |
I am building on my answer to your previous question, where you presented a
simpler case. Read there for an explanation of the window functions aspect
of the solution:
Sum across partitions with window functions
This question presents a "counter-cross-tabulated" data-set. To get to
where you want to be, you could run a cross tabulation first, reducing the
case to its simpler, previous form.
PostgreSQL has the additional module tablefunc providing very fast
functions for that. Run this command once per database to install:
CREATE EXTENSION tablefunc;
Then all you need is this (including redundant columns in the result for
debugging):
SELECT ts, active_power, device_id, should_be
, COALESCE(max(a) OVER (PARTITION BY grp_a), 0)
+ COALESCE(max(b) OVER (PARTITION BY grp_b), 0
|
use adb to get the device name of android device |
You can get shell access to your Android device via the following command.
adb shell
The application data is stored in the directory
"/data/data/package_of_your_app".
// Assume the gesture file exists on your Android device
adb pull /sdcard/gestures ~/test
// Now copy it back
adb push ~/test/gesture /sdcard/gestures2
It will work for you.
|
Communicating device to device |
Android C2DM is just a messaging service , using this you can just send
notification(A Small Message) to your device. Which actually gets triggered
from Application Server only.
I am sure about that you will definitely need your server to achieve this.
In Market we have famous app WhatsApp , WeChat etc. They use their own
server.
|
android device does not show up under Android Device Chooser |
Make sure you are using the correct android API and SDK version compatible
with your device's version in the code. (In the android SDK for eclipse
this is in Android Manifest.xml) If the two don't match up, then they won't
show up when you try to test it on the device.
|
Access one android device to another android device |
It is not mandatory. You can also implement this as a server client
solution, where the data transfer between the clients takes through the
server. If you didn't try it yet, that will be a tedious task for the
particular solution. Both side should keep services to monitor and transfer
data.
But if you intent a real time solution, I'll prefer Bluetooth for faster
response.
|
Is there a way to see how much ram a android device has? |
Is there a way to see how much ram the device has so i can use both
resultion and memory to determin what size bitmap to use?
The device RAM does not matter. The available memory for your process
matters.
To find out the memory class of your app, call getMemoryClass() on
ActivityManager -- that basically returns the amount of available RAM for
your process in MB.
|
Can't debug app on device |
It's a long time ago for me but I can remeber that I must enable debugging
on the device. Something like: "Go to the menu and press some button 10
times". See the developersite form google. There was the manual.
|
Device Name DNS Test |
I'm not very knowledgeable about DNS either, but I think this would be a
rough equivalent to the host approach using Net::DNS::Resolver:
#!/usr/bin/perl
use strict;
use warnings;
use feature 'say';
use Net::DNS::Resolver;
my $device = shift;
my $res = Net::DNS::Resolver->new;
say $device unless $res->search($device); # Returns undef if not found
In terms of speed, I did a simple benchmark and Net::DNS::Resolver is way
faster than system("host $device") if you reuse the same Resolver object
for each query. Here are my timing results when the host is not in DNS:
Rate system Net::DNS
system 233/s -- -60%
Net::DNS 578/s 148% --
There's an even bigger difference when the host is in DNS:
Rate system Net::DNS
system 232/s --
|
IOS MDM Device Tracking is it possible? |
App Store Guidelines:
17.1 Apps cannot transmit data about a user without obtaining the user's
prior permission and providing the user with access to
information about how and where the data will be used
4.1 Apps that do not notify and obtain user consent before collecting,
transmitting, or using location data will be rejected
4.2 Apps that use location-based APIs for automatic or autonomous control
of vehicles, aircraft, or other devices will be rejected
4.3 Apps that use location-based APIs for dispatch, fleet management, or
emergency services will be rejected
4.4 Location data can only be used when directly relevant to the features
and services provided by the App to the user or to support
approved advertising uses
There may be more that affect you: https:/
|
how to run app from xcode on device? |
In order to run iOS apps on a device, you need to first have a valid Apple
Developer Account, and have your device setup as a valid developer enabled
device.
Once that is done, you simply set your ipad as the target in Build Target.
You may need to use the Organizer to first ensure you have the dev certs
setup properly.
Also if I have the project at my Windows PC can I export the app file to
work on iOS devices ?
In order to build iOS apps, you need Mac OS X (and legally that can only
run on an Apple computer)
|
How To Use One Device Between Developers |
We have mutiple test devices and all our machines use the same developer
certificate, just export the public and private key of the certificate on
the machine that requested the certificate.
Then just use the same profile on all machines, You can now just connect
any device to the machine how share the certificate and it will work.
You can let Xcode handle the certificates and profiles, just create account
for each developers and add the devices to to the profile from Xcode. Every
user wil have there own certificate and profiles, but the devices can be
shared by all.
|
Application does not see USB-device |
USBManager starts an Activity with intent filter
android.hardware.usb.action.USB_DEVICE_ATTACHED.
So you cannot use a broadcastReciever to recieve this intent.
So try changing the Reciever to Activity
|
What does a device driver look like? |
I suggest that you read (at lease the first chapter) "Linux Device
Drivers". It will answer your basic questions and will allow you to study
how to develop device drivers for Linux OS if you want to.
You can find it here: http://lwn.net/Kernel/LDD3/
|
to use GCM, each device will need to register? |
By using gcm sender id,you will use in android ie client side and server
browser api in server side say php side. So when a device opens,it will
create gcm register id at server side and intermediate is gcm account and
it will monitor the device.so you can send notification from server to
client. For same device,only unique gcm registration id will be generated.
See this tutorial
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
|
SSL error for 4.1 and above device |
What's in trusted? If you don't require client authentication, you don't
need to build a KeyManagerFactory, simply pass null as there first
parameter to context.init().
|