Android :: Modes Connectivity Device Identification & Device Inter Communication?

May 28, 2010

Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?

Android :: Modes connectivity device identification & device inter communication?


General :: Inter-device Kernel Compatibility?

Sep 23, 2012

What are the requirements for two similar device's kernels to be interchangeable?If they have the same soc,same screen resolution and same amount of RAM,the kernel should be intercompatible,right?

View 3 Replies View Related

Android :: Inter Process Communication

Mar 19, 2009

Just say I have two applications, each with one activity running on separate processes and I want to send a simple string between them. For the purposes of this example, let us say I have a button that sends whatever is typed into an EditText view to the other application where it is then displayed. Do I have to expose a remote interface via a service that co-resides between the two applications? Or can I do something simpler (is there a way to pass data between processes without defining your interface using AIDL)? Thanks for clearing this up for me, as I seem to be struggling with performing IPC at the moment. I'm pretty sure I have to use the Android IPC path and generate a remote interface using AIDL. I'm just not sure about the binding to service part.

View 7 Replies View Related

General :: What Folder / File Controls Device Identification To Google

Aug 13, 2013

Every time I flash a new ROM on my phone, whether it was my old Galaxy S2 or my current Galaxy S4, Google Play recognizes that it is the same device as before and installs all the apps I previously installed on the phone.

My android stick computer (Minix Neo X5) does not behave this way. Every time I flash a new ROM, regardless of whether it is an official ROM from the developer (Minix) or a custom ROM with CWM, Google Play does not recognize that it is the same device as before and I have to go through the arduous process of installing all previous apps.

Is there a file or folder that I could backup on my stick computer and restore after flashing that will let Google Play recognize it properly? build.prop?

View 2 Replies View Related

Android :: Inter Activity Communication In Tab Host Application

Jul 22, 2009

Here's the deal: I have an Android application that needs to call a web service every X seconds (currently 60 seconds). This application has multiple tabs and these tabs all need to interact with the data themselves. One is a MapView, one is a ListView and then the third is irrelevant but will need to also get some global data eventually. The issue is that I want my main activity to have a thread that runs in the background, gets the results and then instructs both child activities in the TabHost to update themselves with the latest data. Also, when the user clicks on the tabs and the onCreate/onResume activities fire, I would also like to force a redraw by getting the latest data from the main activity. I'm really at a loss here. I've tried this with a service and some ghetto static methods to pass an instance of the Activities to the Service to call specific functions to update their views whenever the timer fired, but the slowdowns were pretty bad and the code was just ugly ugly ugly.

So I implemented it as a timer-driven thread in the tabhost activity and then I have timer-driven threads in each child activity that then grab the data (in a synchronized fashion) and update their map/list. It's much faster but still feels slightly hack-ish, especially the part where I'm calling a custom function in the parent activity like so:
((MainActivity)getParent()).getNearbyMatches();
This adds an element of strong coupling that I'm not entirely thrilled with, but from a performance standpoint it's much better than it was. I appreciate the answers that have already been given and will do a bit of research on the content provider front but I'm not sure I want to go back to the service model.

View 3 Replies View Related

Android :: Inter-process Communication With A Service And Notifications

Dec 13, 2009

I'm having an issue with inter-process communication with a Service and Notifications

The structure of my application is as follow: - ListActivity (TunnelDroid), once the user presses a listitem it will start a Service. The ListActivity is binded to the service for intra-process communication

- Service (TunnelManagerService): running in the background. This service will add a (permanent) Notification in the statusbar. Using a Handler I sometimes need to communicate with the ListActivity (to show GUI Dialogs)

- Notification: Once this notification is clicked it should open the ListActivity.

To add the action when the user touches the notification I use the following code: notificationIntent.setClassName("net.sourceforge.tunneldroid","net.sourcefo­rge.tunneldroid.TunnelDroid"); Then I use the intent to create the notification.

Unfortunately a new Intent is opened. When I press the back button the original ListActivity is shown. So I have two instances of my same class/list.

How could I make sure the original ListActivity is opened when the user touches the Notification?

It's OK for me if the original ListActivity was previously destroyed, but I cannot have two instances. The problem is that the Handler in the Service has a reference to the ListActivity (PARENT_ACTIVITY), so if another instance is created I have invalid references. I could overwrite the PARENT_ACTIVITY, but then when the user presses the back button I have an instance with no correct link to my Service resulting in a crash/nullpointer.

The complete source can be found here: http://tunneldroid.svn.sourceforge.net/viewvc/tunneldroid/tunneldroid. Attached you can find a drawing of (most of the) inter-process communication. Could someone point me in the right direction?

View 3 Replies View Related

Android :: Communication Between Emulator And Real Device

Mar 29, 2010

I know we can communicate between 2 instances of Emulator. But Is it possible to communicate between the a read Device and Emulator?

View 6 Replies View Related

Android : Send Message From One Application To Another On Another Device - Remote - Communication

Nov 8, 2010

I want to create an application that can be interactive with another Android device that could be across the room or across the country. For example, imagine playing Tic-Tac-Toe; but I'm the X's on my phone and the O's are my brother on his Android phone. I think it can be done via application specific messaging. Looking to see if it is possible, and, if so, how to send a message from one application to another on another device.

View 5 Replies View Related

Samsung Captivate :: No Mac Connectivity / Mass Storage Device

Jul 18, 2010

Can't seem to get my Captivate to mount on my Mac 10.6 machine. Doesn't make for a great first impression when trying to transfer over some music from iTunes via DoubleTwist. Anyone else able to get their Captivate to mount on their mac? I've had a little more success on my Win7 x64 rig, but I'm still having issues getting this thing to mount as a mass storage device or otherwise.

View 5 Replies View Related

Android :: Inter Connectivity / Running Multiple Applications On Android

Jul 12, 2010

Is it possible to run multiple apps at the same time on Android? I have an app that has two separate layers and which they are normally launched separately. They open sockets and talk to each other via those sockets. I am not sure if this would be possible under Android - may be generate two separate projects and their corresponding UIs and then launch them at the same time. If that is not possible I am assuming I will need to launch them from the same UI - their interprocess sockets should be able to connect to each other. Is this something that is worth pursuing?

View 3 Replies View Related

Android :: Permission Denied On Device - Emulator Failed On Device

Jun 6, 2010

I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problem

View 2 Replies View Related

Android :: Multiplayer Game - Device To Device Connection Using Sets Of Api

Mar 24, 2009

I have developed a sports game which is single player. Now I want to have one more game mode which is multiplayer.

My question is how can i do device to device connection in android using sets of api which can be :

1.Bluetooth - whose APIs are not currently available.

2.gtalkservice - removed from sdk1.0 3.wifi - I dont knw how to connect 2 devices using wifi apis . I have asked about wifi because we have developed a game on iphone which used wifi connection for multiplayer stuff.

Or is there any other apis which can be used for implementation of multiplayer in game ?

View 3 Replies View Related

Android :: Device Orientation / Mapping Device Y To Screen Y

Oct 30, 2009

How do I map the device Y axis to the screen Y axis?I can't figure this out.I'm the developer of Tricorder, and I'm trying to make it so that the accelerometer and magnetometer indicators I draw always point in the right direction.On the G1 phone with the slider closed, all is well.But when I open the slider, I end up showing that gravity is pulling me to the left (if the phone is held with the display vertical).So, I know that the device, and hence sensor, Y axis is always in the direction of the earpiece; and the screen Y axis changes when I open the slider.And I know that I can use remapCoordinateSystem() to change the device axes to match the screen axes.But where do I find out what the device's orientation is?In other words, how do I compute the correct values for the X and Y parameters to remapCoordinateSystem()?

Configuration.orientation seems quite useless.Suppose it is set to LANDSCAPE.What does this mean?Does it mean a device which is "naturally" portrait (i.e. the sensor Y axis points to the narrow end), and which has been turned into landscape mode?If so, which way was it turned?Or does it mean a device which is naturally landscape?In other words, LANDSCAPE could mean that the screen axis is off from the sensor axis by +90, 0, OR -90 degrees.Not much help.So how do I do this?Obviously I want my app to work on all devices, not just the G1 phone.

View 2 Replies View Related

Android :: How To Write App To Connect Device To Host USB GPS Device

Oct 29, 2010

I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.

View 1 Replies View Related

General :: App To Use Android Device As Media Controller For IOS Device

Feb 28, 2014

Basically I have an old iPod touch 2g on iOS 4.x and a Nexus 5.

I want to use my iPod as my media player but I'd like to be able to control music from my Nexus (only basic controls).

Is there an app on either device that allows this? I know tsk skipping can be done by some Bluetooth headphones so I'm hoping there's a way to make iOS accept command from my Nexus

View 1 Replies View Related

Android :: Device Chooser Device Not Showing Up

Feb 13, 2010

I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse project.Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The emulator launches, but the program never does. Any ideas?(using windows 7/t-mobile mytouch 3g)

View 3 Replies View Related

Android :: Device Not Showing Up In Device Chooser

Aug 10, 2010

Does anybody have an idea what I may be doing wrong. I have installed the usb drivers and have my device running in debugging mode but when I run my basic hello world application through eclipse my device wont show up in the device chooser. I have also tried re installing the sdk and all the drivers and still no luck.

View 4 Replies View Related

Sprint HTC Hero :: Device Self Service 1.1 Goes Into Preparing Device

Oct 14, 2009

Does anyone know what this program is? What does it do? i launch it, it goes into preparing device and then I am back at home screen.

View 5 Replies View Related

General :: How To Get Stock Rom Of Device To Install On Different Device

May 28, 2013

I have 3 Galaxy Player 5 ( YP-G70 with 3 capacitive buttons ), only one of the actually have a working rom that i flashed a while ago.

The other two have a different rom that only have the back and menu button working ( the home button doesn't respond )

Is there a way for me to take the Rom and kernel off the working galaxy player so i can install it into the other two ?

View 1 Replies View Related

Android :: Get Device Manufacturer Or USB Device Id

Nov 10, 2009

http://developer.android.com/guide/developing/device.html Is there a way to get the device manufacturer or the USB device ID? I could not find anything documented.

View 7 Replies View Related

General :: Android Version Identification

Sep 15, 2012

Which Android version runs on my device, if I don't trust the information provided in "build.prop" file. Specifically, how can I be sure I have an ICS and not GB ?

View 9 Replies View Related

Android :: Original Firmware Identification Strings For Different Models

Mar 29, 2010

Is there anywhere a summary of Build.MODEL strings for different Android handset models? Something like:"Hero" - HTC Hero "ERA G2 Touch" - branded HTC Hero "T-Mobile myTouch 3G" - branded HTC Magic "GT-I5700" - Samsung Galaxy I'm curious what is the percent of rooted devices among my app users, but sometimes is hard to tell which device is which (and yes, I know rooted firmware can mimic vanilla one, it just usually doesn't).

View 1 Replies View Related

Android :: Get System Identification Code Of (SID) A Phone In Droid?

Mar 4, 2010

I'd be much obliged for information regarding how can I get the System Identification code of (SID) a phone in android ?

View 1 Replies View Related

Android :: Add More Advanced Blend Modes To My Program?

Sep 17, 2010

I am looking for a way to add more advanced blend modes to my program (ones that I could define myself). How would you suggest going about this with Android?

Setting pixels individually is too slow to be a viable solution.

View 1 Replies View Related

General :: Difference Between Different Android Bootup Modes

Sep 7, 2012

Android boot modes.I have searched but couldn't get concrete reference.

1) What are the different boot modes of Android?
a) Normal Power up.
b) Recovery Mode
c) Download Mode
i) Fastboot
ii) AP Fastboot
iii) BP SBF Flash
iv) BP Only
v) BP HW Diag & Boot AP
vi) BP Tools

2) What is the difference between these modes?

I think "recovery mode" clears cache, takes "update" from sdcard.But in "Download mode", we can use fastboot protocol to "Flash" the device.

View 1 Replies View Related

Android :: Get Device Name

Jul 31, 2009

Is possible get the device name

View 5 Replies View Related

Android :: How To Get Available Device RAM

Jan 20, 2009

Anyone knows how to get the available Device RAM through an API ? I am not looking for - Runtime.get Instance ().freeMemory()

View 8 Replies View Related

Android :: What Device To Get?

May 25, 2010

I hope I'm using the right forum, I want to get a cheap phone that I can use Android 2.2 on but I will not be using the phone service at all!I do not want to activate the phone service, The phone will only be used as a PDA. I use a TracFone and very happy with it!

View 2 Replies View Related

Games :: Heavy Gunner 3D - 3D Inter-Galactic Shooter

May 18, 2010

Mindlessly exciting shooter game!

Download Link: market://details?id=com.com2us.HG

Game Play

View 20 Replies View Related

Android : Devs Running Games - Apps In Compatibility Modes

Mar 12, 2010

I know several of you wrote your apps and games before 1.6 was out or before you had a trusty N1 or Droid to test on. This led to many apps that rely on compatibility mode, that is, a width (when portrait) that is always 320 to make things work out. For 3D games, this made our games continue to work because when the games are run full resolution, our 1.5-compliant textures get scaled up automatically and become non power-of-two, causing white or black wherever a texture should be drawn (and then users complain that our games are nothing but white!)Well I wasn't very worried about it and I still have a few games in compatibility mode but recently a user contacted me, telling me that one of my games (Light Racer 3D) and a few other 3D games were all white on his Droid. I asked him if he had ever run any kind of tweak utility and he said that when he first got his phone, he installed an app called "Spare Parts" and played with some settings on it. Apparently one of the settings disabled compatibility mode and runs everything full-res, breaking many of our apps and games. Of course users don't know that's what they are doing. They think they are somehow unlocking their phone's potential that their evil carriers didn't give them access to. If only they understood!First of all, if you're the author of "Spare Parts", that's a bad idea. Please don't give users that option. Nothing good can come of it.Second, since there will probably always be some kind of tweak app out there that allows for disabling compatibility mode, it's in your best interest as a developer to update your old apps and make them work at every resolution. Counting on compatibility mode in the long term is a bad idea I think.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved