File Transfer using OBEX on Android

by Amit » Sat, 17 Jul 2010 02:23:36 GMT


Sponsored Links
 Hi,

I want to transfer a file from my Android application to my desktop (I
don't want to display any UI for the user)

I could not find any documentation or links which suggest me how to
transfer the file programatically.

Thanks
Amit

--



File Transfer using OBEX on Android

by FrankG » Mon, 19 Jul 2010 14:52:19 GMT


 Obex via Bluetooth or USB ?

Independent from this question, IMHO their is no
support for that in the SDK.

Good luck !

  Frank





--


Sponsored Links


Other Threads

1. The problem about the sensor!!!

I use the sensorManager in my application,When I run the application
for the first time,the sensorManager can't work correctly.  The
identify of direction X and direction Y change each other.  Then I
quit the application and enter application again,all the thing is
correct!

The application's screenOrientation is 'landscape' , It's puzzle that
when I change to 'portrait',everthing is ok,no any problems!

who can tell me how to resolve this problem?

The code:

SensorManager mSensorManager ;

mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);

mSensorManager.registerListener(grGameRun,
                SensorManager.SENSOR_ACCELEROMETER |
                SensorManager.SENSOR_MAGNETIC_FIELD |
                SensorManager.SENSOR_ORIENTATION,
                SensorManager.SENSOR_DELAY_FASTEST);

public void onSensorChanged(int sensor, float[] values) {
            synchronized (this) {
                if (sensor == SensorManager.SENSOR_ORIENTATION) {
                    for (int i=0 ; i<3 ; i++) {
                       mOrientationValues[i] = values[i] ;
                    }
                }
            }
        }


--~--~---------~--~----~------------~-------~--~----~

2. Application that loops every minute - how to efficiently do it

Hi,
Does Android have a special way to loop an application every 1 minute?
Or do you know of any applications (with source) that I could look at?

Apparently if I use Thread.sleep(1000*60); the application may time
out on me and need me to click a wait button - I just want it to keep
looping forever. Apparently the when you sleep() a thread it stops
running for the time given.

I'm using it to ensure that my internet connection isn't ever open for
more than a minute something like this:

while (true) {
    if (getConnectionOpenTime()>1minute) {
      closeConneection();
    }
    Thread.sleep()1000*60;
}

The connection gets re-opened elsewhere so this needs to keep looping.

Cheers,
--~--~---------~--~----~------------~-------~--~----~

3. Buffering Background Image - Graphics Advice Sought

4. Alert dialog in Android-SDK-1.1-Release 1

5. Home screen customization WRT certification

6. libhardware_legacy and flashlight.c

7. Performance: pre-instantiate activities on app launch? Good practice or not?