I am developing a glassware, which shows you cards (images + text) from a list. To see all the Cards one by one you just need to move you head around and the information got changed. The application is some where similar to the What's Around glassware.
I have implemented SensorManager to get the users current orientation, And based on it current direction the application decides which card to show.
here all the images are coming from the web server so each time when card is selected there is a network call for the images (Caching Bitmaps is implemented).
Now, What my problem is, when I start and use the application the glass got Heat-Up so quickly in less than 1 min.
Could any one please suggest me any thing to fix this issue.
Note : google glass os version : XE22
Related
I've developed a fitness app which uses Google Fit API to capture the users steps, calories and exercises minutes.
After rolling out the app, I've received a number of feedback that the steps fluctuate( e.g one moment it increases to 2300, next moment it drops to 1900). When the user cross check against the Google Fit app, they see the same.
I am using the Recording API to get the latest steps. I was only able too simulate this fluctuation when i shake the phone continuously ( instead of walking) in the attempt to increase the steps.
What I notice was the steps increase but within moments it drop back to the original step before i start shaking the phone. I was wondering if Google Fit some how detected that i was "cheating" and reverted the steps. Right after that when i walk normally, the steps still reverted. I takes a while before Fit begin to record my steps again.
However my users claimed that they did not shake the phone but instead walked normally but still face the issue.
Would really appreciate it if anyone could enlighten me as i couldn't find any post on this. TIA!
I'm currently developing a Real-Time Multiplayer top down shooter.
The Multiplayer is "working" and I'm currently struggling with pushing the player updates such as position and fired shots.
My first try was using the service "appWarp" which worked perfectly but isn't free and only provided around 2 Million Messages in the free version which i completely filled in around 2 weeks with only 2 devices and 2 players. ( Maybe way to much updates send )
Then I implemented Google Play Game Services and tried using this to send the updates:
I'm able to use "sendUnreliableMessage" for Position updates, which works faster than appWarp used to. I use interpolation to get over the package loss issue here which works alright.
But here the problem is with firing shots. The nature of UnreliableMessages is that packages can get lost, which happens a lot. Shooting 4 times only makes around 1 or 2 of them appear on the other device. Which means that 2 packages are getting lost. Using "sendRealiableMessage" i can achieve around 2-3 packages getting through but with, of course a higher latency. Which makes the shots appear after around 1 second on the other device.
For a fast paced real time multiplayer game this is not what i wanted to achieve.
So what is a better way to do this ? I found web based solutions like socket.io but don't really know which fits the best for my needs.
I found this website which contains a big list of every web based solution for this problem but don't really know where to start.
https://www.leggetter.co.uk/real-time-web-technologies-guide/#_hosted-realtime-services
I am really really thankful if someone could help me with this problem!.
Since you're asking for opinion, I can suggest you try Multiplayer in Unity. It is the leading game engine as of today, so you can expect a huge support from a stupendous user-base.
Another option would be Photon. Hope these suggestions helps.
I want to use google fit Activity detection function in my application .When my phone doesn't have google fit application Everything is working fine except the padometer part (Means the steps detection in background). And when i install google fit app in my phone and turn on activity detection the steps are counted and working fine .
So my question is in that way my application is gonna be google fit app dependent .If user don't have fit app installed my application won't show the sensor data(steps,activity name,distance etc). So correct me here How to deal with that problem .Because google fit application not came in all devices by default. So without google fit app how i can sense padometer data and activity name and distance etc..
You can refer to step detection algo in https://github.com/bagilevi/android-pedometer. To make your results more accurate, whatever values you get from this algo is not stable, so store it in a list say 10 values and for every 10 values, find 2 minimum and 2 maximum of it. Eliminate them and for remaining 6 values, calculate the average and this would give you a better result.
-- Background:
We are working on a device called Run-n-Read which tracks a user's head movements and translates it to the appropriate text movement on the screen. The use is to help a person read while running on a treadmill or riding in a moving vehicle. You can check a small video on http://weartrons.com.
We have created a small device which contains accelerometer, a micro-controller and bluetooth to send the head location in real time to the tablet every ~17ms to match with the 60fps of display. We used Processing IDE to create a basic app with downloaded book pages to test the prototype.
-- PROBLEM:
We would like to run our app in the background and dynamically change the display coordinates of any other app contents on the screen, whether it's an eBook or twitter etc. Basically our algorithms are running on our external device and sending the display coordinates (in pixels to move up-down left-right) at about 60 times per second. We would like the Android display origin to move by that many pixels during every frame rendering.
I am an electronics engineer and it's my first stab at writing any piece of software, so please let me know if I was not clear or the answer is too obvious.
Android as OS makes sure applications are encapsulated and oblivious from each other. All inter-app communication is done through what is called intents which are in the end messages. And you have to know exactly the other apps declared intents and on top of that you have no assurances that all apps implemented the kind of feature you are requesting.
Therefore I don't think what you want to do (the coordinates change) is possible at all without tinkering with the OS source code and compiling your own version of Android.
I am designing a prank app for android in which i want to show as if someone has called and then when the user answers the call it should play the recorded file. I have finished most of the things apart from 1 issue which i am facing currently.
1) As we all know the UI of every phone is somewhat different when they get a call, so i want to make sure that when running the app it should use the phone's default UI, so as to make sure it looks like a real incoming call.
I am uploading a picture so you'll have a better idea regarding my query. So as we can see that the UI is different for every phone, how can i make sure that when my app makes a fake call it uses the same UI which is displayed while getting a real incoming call.
Any help on the problem would be highly appreciated.
What you're trying to do is start the Android Dialler app, and then to change the functionality/have it do nothing while you play an audio file.
While you could enable the loudspeaker and play audio, you can't make the dialler stay active without a live call. An invalid number would fail, and an actual call would cost money.
What you want to do is actually very hard to achieve and the only thing you could try to do is to create your own fake dialler activities with different themes (according to major brands), detect the device manufacturer and then display a relevant one.