[android-developers] Re: What is the best phone to buy for Android Development?

2012-10-02 Thread gjs
Hi,

>The world doesn't comprise Eclipse alone.

Wow really! Thanks for letting us all know...

A real device is useful for testing various hardware features - bluetooth, 
nfc, hd video recording, sensors - accelerometer, barometer, compass, gryo, 
magnetic, wifi direct etc etc

Regards


On Tuesday, October 2, 2012 6:22:44 AM UTC+10, Lew wrote:
>
> gjs wrote:
>>
>>
>> I'd suggest using the latest Google Android device, currently that is the 
>> (Samsung) Galaxy Nexus, but rumors suggest it is to be updated very soon (?)
>>
>> Main reason is that the Google phones allow you to see your own debug 
>> message on the console pretty easily, where as most other phones have so 
>> such junk debug messages on the console, that they swamp your own debug 
>> messages making it difficult to test & debug your own apps. You can filter 
>> debug messages but the console fills quickly (in Eclipse) anyway & then has 
>> to be reset.
>>
>
> I assume that by "debug messages" you mean the logcat contents. You can 
> filter those by command-line 
> quite readily also, for example into a text file, that you can examine at 
> your leisure. You can also modify 
> the buffer size to capture more data, or run the "adb logcat" command in 
> the background redirecting to a file
> for an arbitrary amount of data.
>
>
>> If you can live without relying on debug messages through Eclipse then 
>> any good & recent phone will likely do, eg Samsung Galaxy S3, HTC One X, 
>> etc.
>> The Google phones get OS updates before other phones as well.
>>
>
> The world doesn't comprise Eclipse alone.
>  
>
>>
>>
>>
>> Nilashis Dey wrote:
>>>
>>> I am new to Android Development and would like to know which phone I 
>>> should get to test my apps? Obviously, I would like the phone for which 
>>> drivers for all devices are easily available and for which I would find the 
>>> most amount of support discussions online - for when I run into problems.
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: What is the best phone to buy for Android Development?

2012-10-01 Thread gjs
Hi,

I'd suggest using the latest Google Android device, currently that is the 
(Samsung) Galaxy Nexus, but rumors suggest it is to be updated very soon (?)

Main reason is that the Google phones allow you to see your own debug 
message on the console pretty easily, where as most other phones have so 
such junk debug messages on the console, that they swamp your own debug 
messages making it difficult to test & debug your own apps. You can filter 
debug messages but the console fills quickly (in Eclipse) anyway & then has 
to be reset.

If you can live without relying on debug messages through Eclipse then any 
good & recent phone will likely do, eg Samsung Galaxy S3, HTC One X, etc.

The Google phones get OS updates before other phones as well.

Regards

On Monday, October 1, 2012 5:54:28 AM UTC+10, Nilashis Dey wrote:
>
> I am new to Android Development and would like to know which phone I 
> should get to test my apps? Obviously, I would like the phone for which 
> drivers for all devices are easily available and for which I would find the 
> most amount of support discussions online - for when I run into problems.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Anyone here deal with GPS bearing data or sensor orientation data?

2012-09-18 Thread gjs
Hi,

GPS bearing will only become accurate when the device is moving not when it 
is stationary.

Also it looks like you have not registered your orientation sensor listener 
with the Sensor Manager, see onPause() & on Resume() in 
http://developer.android.com/guide/topics/sensors/sensors_position.html

Regards 

On Tuesday, September 18, 2012 4:30:08 PM UTC+10, Hung wrote:
>
> Hi guys, I am trying to get some good consistent data on one's 
> bearings(direction you are facing) either using the LocationListener class 
> or the SensorEventListener class. So far I've hit a road block because with 
> the LocationListener I dont get consistent data; bearing is almost always 
> 0. With the sensor listener, the azimuth data is basically 180 ALL THE 
> TIME. I've been searching and still am for solutions to this but no luck so 
> far. The end goal is to draw a compass on a map in which you can pan around 
> and still get back to your location and see the compass; The compass is 
> marking your location.
>
> Are there any other options out there or is there a work around for this 
> that would be better?
>
> Thanks in advance and here are snippets of some standard code i am using; 
> I'm just displaying the data obtained.
>
>
> Code for LocationListener:
>
> 
> manager = (LocationManager) this.getSystemService( Context.LOCATION_SERVICE );
> listener = new LocationListener(){
>
> @Override
> public void onLocationChanged(Location location) {
> txt.setText( "Accuracy : " + location.getAccuracy() + "\n" + 
> "Altitude : " + location.getAltitude() + "\n" +
> "Bearing : " + location.getBearing() + "\n" +
> "Latitude : " + location.getLatitude() + "\n" +
> "Longitude : " + location.getLongitude() + "\n" +
> "Provider : " + location.getProvider() + "\n" +
> "Speed : " + location.getSpeed() + "\n" +
> "Time : " + location.getTime() );
> }
> 
>
> Code for SensorEventListener:
>
> 
> manager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
> orientation = manager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
>
> final TextView txt = (TextView) this.findViewById(R.id.txt);
>
> listener = new SensorEventListener(){
>
> @Override
> public void onAccuracyChanged(Sensor arg0, int arg1) 
> {
>
> }
>
> @Override
> public void onSensorChanged(SensorEvent event) 
> {
> txt.setText( "Azimuth : " + event.values[0] + "\n" +
> "Pitch : " + event.values[1] + "\n" +
> "Roll : " + event.values[2] + "\n" +
> "Accuracy : " + event.accuracy );
> }
>
> };
> 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Lunar Lander Example - Thread Safety

2012-09-17 Thread gjs
Hi,

Are the threads using synchronized blocks of code or methods when setting / 
getting the common variable, are they using volatile for the boolean ? If 
not thread safety is questionable. It is also a question of visibility as 
well as safety, particularly when running on multi core cpu devices.  

This is not specific to Android but to Java in general, an old resource 
that might be helpful - 
http://www.ibm.com/developerworks/java/tutorials/j-threads/j-threads-pdf.pdf

Regards

On Monday, September 17, 2012 2:36:09 AM UTC+10, sdb wrote:
>
> I'm new to android development and have been studying the Lunar Lander 
> example included in the SDK to get a better understanding of how the 
> SurfaceView works.  I noticed that the mRun member of the LunarThread class 
> is updated by the setRunnable() method of the LunarThread class which is 
> called from the LunarView class within the surfaceCreated() and 
> surfaceDestroyed() methods.
>
> It seems to me that mRun is being updated by the main thread for the 
> SurfaceView, but is being repeatedly read in a tight loop in LunarThread. 
>  My question is: is this use of mRun thread safe and if so, why/how?
>
> I'm not sure, but maybe it is thread safe because mRun is a simple boolean 
> variable and is only updated from one of the two threads involved.  If mRun 
> was a more complext object and/or it was being updated by different by both 
> threads,then perhaps this example would not be thread safe without the use 
> of some form of synchronization mechanism.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Blueteeth

2012-09-14 Thread gjs
Hi,

Yes with one of these as the Android BT server.

Regards

On Friday, September 14, 2012 6:00:54 PM UTC+10, gjs wrote:
>
> Hi,
>
> Yes 2 or 3 sometime 4 & just once 5 !
>
> Regards
>
>
> On Friday, September 14, 2012 7:30:37 AM UTC+10, bob wrote:
>>
>> So, has anyone ever gotten an Android Bluetooth server working that can 
>> handle multiple clients simultaneously?
>>
>>
>> I looked at some old posts, and it seems this was a headache for many.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Blueteeth

2012-09-14 Thread gjs
Hi,

Yes 2 or 3 sometime 4 & just once 5 !

Regards


On Friday, September 14, 2012 7:30:37 AM UTC+10, bob wrote:
>
> So, has anyone ever gotten an Android Bluetooth server working that can 
> handle multiple clients simultaneously?
>
>
> I looked at some old posts, and it seems this was a headache for many.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Bluetooth client server

2012-08-24 Thread gjs
Hi,

See the BlueToothChat sample app in the Android sdk.

Regards

On Thursday, August 23, 2012 7:05:46 PM UTC+10, Mulia Dhamma wrote:
>
> Hello all masters,.
> do you have the code for bluetooth client server ?
> example..i have 2 android phone..and when the 1 android phone sending a 
> string then the 2 andoid phone automatically pop up a toast that the 1 
> android phone send.also same with the 2 android phone when the 2 android 
> phone sending a string then the 1 android phone automatically pop up a 
> toast that the 2 android phone send.
> Thank you..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: SpeedAlert App

2012-08-24 Thread gjs
Hi,

Put GPS receiver in an Android Service, use Notifications (or audio/TTS) 
when speed limit exceeded to inform user.

Regards

On Friday, August 24, 2012 2:54:37 PM UTC+10, Deepa M wrote:
>
> Dear All,
> How to run the speedometer in background to get update from gps receiver...
> i have done in the activity !!!
> but this one has to run in the background and prompt the user when they 
> crossed default speed limit as they given in the settings.
>
>
> -- 
> Thanks& Regards
> Deepa M
>
>
>  

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Handler object is taking long time to send message to UIThread

2012-08-23 Thread gjs
Hi

Try  recThread.start(); not recThread.run(); otherwise you are not 
executing a new thread...

Regards 

On Thursday, August 23, 2012 2:04:39 PM UTC+10, Argon wrote:
>
> Its the handler in the recording thread. It should change the button text 
> before thread starts audio recording but it doesnt run till long after BOTH 
> threads are done. can someone please tell me whats going on?
>
>  package com.EJH.Industries.microkr;
>
> import android.media.AudioFormat;
> import android.media.AudioManager;
> import android.media.AudioRecord;
> import android.media.AudioTrack;
> import android.media.MediaRecorder;
> import android.media.MediaSyncEvent;
> import android.os.Bundle;
> import android.os.Handler;
> import android.app.Activity;
> import android.view.Menu;
> import android.view.MenuItem;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
> import android.widget.Toast;
> import android.support.v4.app.NavUtils;
>
> public class MainActivity extends Activity {
> //CLASS VARIABLES
> //CHAR SEQUENCE
> CharSequence easyChar = "PLAYING";
> public Handler textViewHandler = new Handler();
>
> //CREATE THE RECORDING OBJECT
> int audioSrc = MediaRecorder.AudioSource.MIC;
> int sampleRate = 44100;
> int chanConfig = AudioFormat.CHANNEL_IN_MONO;
> int audioFormat = AudioFormat.ENCODING_PCM_16BIT;
> int getMinBuffSize = 200*AudioRecord.getMinBufferSize(sampleRate, 
> chanConfig, audioFormat);
> int minBuffSize = (int) getMinBuffSize;
> short audioBuff[] = new short[minBuffSize];
> public AudioRecord micRecorder = new AudioRecord(audioSrc, 22050, 
> chanConfig, audioFormat, minBuffSize);
> 
> 
> 
> //CREATE THE PLAYBACK OBJECT
> int streamType = AudioManager.STREAM_MUSIC;
> int playMode = AudioTrack.MODE_STREAM;
> int playChanConfig = AudioFormat. CHANNEL_OUT_MONO;
> public AudioTrack speakerPlay = new AudioTrack(streamType, sampleRate, 
> playChanConfig, audioFormat, 8192, playMode);
> 
> 
> 
> public void startRec(){
> micRecorder.startRecording();
> micRecorder.read(audioBuff, 0, minBuffSize);
> micRecorder.stop();
> micRecorder.release();
> }
> 
> public void startPlayback(){
>
> speakerPlay.play();
> speakerPlay.write(audioBuff, 0, minBuffSize);
> speakerPlay.stop();
> 
> }
> 
> 
> 
> 
> 
> 
> 
> 
> 
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.activity_main);
> final Button startBtn = (Button) findViewById(R.id.startButton);
> startBtn.setOnClickListener(new OnClickListener(){
>
> public void onClick(View v) {
> // TODO Auto-generated method stub
> 
> 
> Thread recThread = new Thread( new Runnable(){
>
> public void run() {
> // TODO Auto-generated method stub
> 
> 
> textViewHandler.post(new Runnable () {
> public void run(){
> startBtn.setText("Recording!");
> }
> 
> });
> 
> 
> startRec();
> }
> 
> });
> 
> // RUN RECORDING FUNCTION
> recThread.run();
> try {
> recThread.join();
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> 
> 
> Thread playThread = new Thread( new Runnable(){
>
> public void run() {
> // TODO Auto-generated method stub
> 
> startPlayback();
> }
> 
> });
> 
> 
>
> 
> 
> playThread.run();
> try {
> playThread.join();
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> 
> 
> }
> 
> });
> 
> ///END onCreate//
> }
>
> @Override
> public boolean onCreateOptionsMenu(Menu menu) {
> getMenuInflater().inflate(R.menu.activity_main, menu);
> return true;
> }
>
> 
> }
>
>

-- 
You received this message because 

Re: [android-developers] Syncing Database

2012-08-21 Thread gjs
Hi,

Simply create a hash of each table row then compare the hash values between 
the two phones, if the hash is different or missing one or both of the two 
rows needs updating. Insert or delete missing rows is easy - maybe, but 
trouble is which row(s) / column(s) to update (?) maybe you can work this 
out based on consistent timestamps between the two phones. Otherwise you 
could work this out by having audit tables that log changes for each row & 
column of your real tables. Exchanging the data is the easy part either by 
bluetooth or wifi as suggested.

Regards

On Wednesday, August 22, 2012 8:01:56 AM UTC+10, TreKing wrote:
>
> On Tue, Aug 21, 2012 at 9:12 AM, Arijit Das 
> > wrote:
>
>> Yes, the question is how to do the sync between two android phones?
>
>
> That's a loaded question. What specifically do you need help with?
>
>
> -
> TreKing  - Chicago 
> transit tracking app for Android-powered devices
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How do I keep corporate app (not in any store) updated?

2012-08-16 Thread gjs
Hi,

Do what you did for a desktop app - have your app periodically check some 
server for updates.

regards

On Friday, August 17, 2012 6:56:30 AM UTC+10, Jon Helms wrote:
>
> I have done some searching and haven't found anything, so I must be 
> searching wrong, but since I didn't find anything I'm at a loss of what to 
> do other than post here and ask.
>
> I am developing a corporate application that once released our employees 
> will be able to install from our portal.  Aside from final testing and such 
> the only thing left is figuring out how we keep it up to date without using 
> Google Play or Amazon AppStore.  I'm sure others have done this and I have 
> done it on desktop apps before, I'm just curious if there are some really 
> straightforward ways of doing this for Android.
>
> We don't want it in the store because we don't want anyone to be able to 
> find it that isn't an employee.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: how to achieve the accuracy of google navigation

2012-08-04 Thread gjs
Hi,

Probably not what you are after, but you could also use an external 
bluetooth GPS device, some of these devices provide 10hz output.

Regards

On Thursday, August 2, 2012 12:18:33 AM UTC+10, bushido wrote:
>
> Hi all, 
>
> I'm writing an application for android for which I need good position 
> accuracy, I use a Galaxy Nexus as test device. 
>
> My test application subscribes to location updates and draws a car 
> symbol in a map, the map is centered to the location of the car & 
> rotates according to the bearing of the location (exactly like google 
> maps on android does). I noticed that when up to speed, the positions 
> don't match with reality, they lag behind considerably. 
> When I cross a street at 90km/h for example, it will take a few 
> seconds before the car on the map is also crossing that street. It 
> isn't an error in the map data, because when I'm standing still, the 
> car gets drawn on the correct location. Google maps for android shows 
> exactly the same behavior. 
>
> The position of the car in Google Navigate on the other hand matches 
> reality rather closely. I've noticed that the position updates are a 
> lot smoother as well. (10Hz rather than the 1Hz updates which you get 
> from GPS) 
>
> My question is: how do they do it? What I can think of is: 
> - using the phone's sensors (gyro & accelero) together with a kalman 
> filter or similar. But I can't see how you could make that work for 
> every phone, since not all phones have these sensors. 
> - interpolating, but in that case I would expect overshooting when 
> there is a sudden stop or a sharp corner 
>
> Thanks in advance. 
> Bushido 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: creating a server app on the Android

2012-08-02 Thread gjs
Hi,

This depends on your network provider, some/most? NAT / FIREWALL / BLOCK 
the IP address so you can't connect to the device over the cellular 
network. One of the two provider I use does not nat / firewall / block the 
IP address so I can connect ok. But as others have said you typically do 
this through a secondary server.

Regards

On Thursday, August 2, 2012 11:31:00 AM UTC+10, Kristopher Micinski wrote:
>
> Yeah, I had taken this from the other direction, but now am 
> uncertain... Since his subject specifies that he's writing a server 
> I'd take it to mean that.. 
>
> kris 
>
> On Wed, Aug 1, 2012 at 9:17 PM, Nikolay Elenkov 
>  wrote: 
> > On Thu, Aug 2, 2012 at 10:05 AM, Kristopher Micinski 
> >  wrote: 
> >> To be completely honest, I thought the OP was going the other way: 
> >> upstream, not downstream. 
> >> 
> >> Does tethering also allow server support? 
> >> 
> > 
> > Not sure about this, but 'trying to access a secondary server' sounds 
> > to me like 
> > he just needs another IP address to access something. The 'main' server 
> can 
> > listen on the regular eth/whatever interface. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to android-developers@googlegroups.com 
> > To unsubscribe from this group, send email to 
> > android-developers+unsubscr...@googlegroups.com 
> > For more options, visit this group at 
> > http://groups.google.com/group/android-developers?hl=en 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Is it possible to reduce the variability of camera shutter lag time?

2012-07-31 Thread gjs
Hi,

I am curious about how you are performing & measuring timings between 
subsequent shots as there may also be some variability according to your 
method(s). For example, I found that using a Timer object there was some 
variability in when the task was actually run, sometime by a few hundred 
milliseconds. I had done some related work a while back trying to closely 
synchronise the cameras shutters of multiple Android devices connected via 
Bluetooth. This was successful to a degree but would sometimes lock up a 
Nexus S entirely, if the intershot delay was less than a few seconds.

Regards, the other gjs. 

On Wednesday, August 1, 2012 12:41:27 AM UTC+10, greg wrote:
>
> Thanks for the suggestions. Based on them I tried disabling all the camera 
> auto parameters. There is still a range of about 0.2 s in the shutter lag 
> time. In this application (and perhaps there are others), I'm more 
> concerned about the variability and not the average duration of the lag 
> time. I have posted a feature request to the Android issue tracker to add 
> an optional minimum shutter time argument in Camera.takePicture() that 
> would delay the shutter if it were ready before the specified minimum. If 
> you think you might find that extra control helpful in a future 
> application, "star" the feature request at 
> http://code.google.com/p/android/issues/detail?id=35785
>
> Thanks! --Greg
>
> P.S., We have the same initials, and for a while a few years ago I used 
> those same initials as an on-line signature. Our writing styles are similar 
> enough that I sometimes read your posts and momentarily wonder, "Did I 
> write that?" :*)
>
> On Monday, July 30, 2012 9:02:37 PM UTC-4, gjs wrote:
>>
>> Hi,
>>
>> Set other camera parameter values to non-auto settings eg: set a specific 
>> white balance such as daylight, set flash to off etc.
>>
>> Other than that ensure there is no other non essential app's / services 
>> running at the same time & examine your own app to minimise or eliminate 
>> any garbage collection, reduce sensor use / frequency.
>>
>> Try a few different devices, dual cores, quad cores particularly those 
>> claiming zero shutter lag. Some devices let you vary the camera preview 
>> frame rate & preview size maybe try this as well, not sure if that would 
>> make a difference as I've have not tried this myself.
>>
>> If that is still not good enough consider triggering a remote camera 
>> instead, such as an SLR via bluetooth or usb.
>>
>> Regards 
>>
>> On Tuesday, July 31, 2012 6:41:53 AM UTC+10, greg wrote:
>>>
>>> Thanks Richard. Setting the focus to 
>>> Camera.Parameters.FOCUS_MODE_INFINITY helped as shown in the added 
>>> histogram at 
>>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>>
>>> At the risk of sounding like an ingrate, do you have any ideas on how to 
>>> reduce the variability even more? (A range of 0.2 s still covers a large 
>>> portion of the periodic motion.)
>>>
>>> -- Greg
>>>
>>> On Monday, July 30, 2012 3:05:50 PM UTC-4, RichardC wrote:
>>>>
>>>> Could it be related to auto-focus? Try turning it off.
>>>>
>>>> On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:
>>>>>
>>>>> Given a known periodic motion (e.g., walking), I'd like to take a full 
>>>>> resolution snapshot at the same point in the motion (i.e., the same time 
>>>>> offset within different periods). However on the Nexus S (currently 
>>>>> running 
>>>>> OS 4.1.1 but the same was true of previous OS versions), I'm seeing so 
>>>>> much 
>>>>> variability in the shutter lag that I cannot accurately plan the timing 
>>>>> of 
>>>>> the snapshot. Is there anything I can do in the application to reduce 
>>>>> this 
>>>>> shutter lag variability? (In this application, the mean lag can be any 
>>>>> duration but the standard deviation must be small ... much smaller than 
>>>>> the 
>>>>> 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
>>>>> suggestion. If I don't get any suggestions, I'll post a feature request 
>>>>> in 
>>>>> the Android bug tracker.
>>>>>
>>>>> I've posted the same question (and showing a histogram of camera 
>>>>> shutter lag times) at
>>>>>
>>>>>
>>>>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>>>>
>>>>> Thanks! -- Greg
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread gjs
Hi,

I saw recently I could take out an insurance policy that had unlimited 
cover amount, I guess the premium has unlimited cost as well ;-)

Regards 

On Tuesday, July 31, 2012 10:51:11 AM UTC+10, Dianne Hackborn wrote:
>
> Btw, I love how more and more I see people dragging out this quote every 
> time they encounter some limit that they have to deal with, as if there 
> should just not be limits on the resources they can use.
>
> On Mon, Jul 30, 2012 at 5:50 PM, Dianne Hackborn wrote:
>
>> On Mon, Jul 30, 2012 at 10:59 AM, bob  wrote:
>>
>>> *“640K ought to be enough for anyone”*
>>>
>> Um, no.  There is nothing similar to these two things.
>>
>> Our limit is: "devices don't have an infinite amount of RAM, applications 
>> must be written to live within the available RAM on the device."
>>
>> In fact the RAM limit for applications has been steadily increasing over 
>> time, and we don't have an upper limit on it that we think is the maximum 
>> we will ever need.
>>
>> -- 
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time to 
>> provide private support, and so won't reply to such e-mails.  All such 
>> questions should be posted on public forums, where I and others can see and 
>> answer them.
>>
>>
>
>
> -- 
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to 
> provide private support, and so won't reply to such e-mails.  All such 
> questions should be posted on public forums, where I and others can see and 
> answer them.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: sensor event and augmented reality

2012-07-30 Thread gjs
Hi,

Use a frame layout.

Regards

On Jul 27, 9:19 pm, Nicholas Austin 
wrote:
> The bit I'm struggling with is displaying anything over a camera preview.
> What is the best practice to display a graphics (that will change depending
> on sensor readings) over a camera preview. Please help, I have neen
> googling and experimenting for days with no joy! If anyone does know how to
> do this could they please post some code? Thank you!
>
> Nick
>
>
>
>
>
>
>
> On Tuesday, July 21, 2009 1:37:32 AM UTC+1, George wrote:
>
> > Argh, late night programming wastes so much dev time! To get 360
> > degrees instead of - 180 to 180, simply add 360 to the value if its
> > negative as so.
>
> >                                 if (values[0] <= 0) {
> >                                         one1 = Math.toDegrees(values[0]);
> >                                         one1 = one1 + 360;
> >                                 } else {
> >                                         one1 = Math.toDegrees(values[0]);
> >                                 }
>
> > George
>
> > On Jul 21, 12:54 am, Fuzzmonkey  wrote:
> > > Thanks Rud for your posts / blog entry. Helped me out allot! This may
> > > be a stupid question but how do i get azimuth value returned from
> > > getOrientation to go 0 - 360 degrees rather -180 to 180 degrees? Is
> > > there something i'm missing? Im using code very similar to the code
> > > you posted on your blog, but im using the java math.todegrees()
> > > function to convert from radians and have no digital filter
> > > implemented.
>
> > > Tend to miss out vital bits of code when working in the early hours of
> > > the morning!
>
> > > Thanks,
>
> > > George
>
> > > On Jul 12, 6:44 am, Rud  wrote:
>
> > > > I did some testing on the compass direction and the results are, eh,
> > > > interesting.
>
> > > > I compared the readings I was getting with the Google Sky Map and they
> > > > were basically the same. Here is what I did.
>
> > > > With both my app and SkyMap I had the phone in camera position. I
> > > > positioned the phone on a piece of paper and drew a line on along the
> > > > side in contact with the paper. I did this for N, E, W, & S. As I
> > > > said, the lines from my app agreed with the ones from Sky Map.
>
> > > > I drew a N/S line using a physical compass. The lines for N & S were
> > > > rotated a bit clockwise from being right angles to the N/S line. The
> > E/
> > > > W lines were both skewed even more clockwise from the N/S line. [Yeah,
> > > > I've calibrated the phone doing figure 8's and flipping it while
> > > > rotating it, etc.] It also appears that the sensors expect the phone
> > > > to be in camera position, i.e. left side down, because when the right
> > > > side is down all the compass points are even worse.
>
> > > > I'd be curious to see if other phones get similar results.
>
> > > > Rudhttp://mysticlakesoftware.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Byte [] image

2012-07-30 Thread gjs
Hi,

YUV conversion is only required for camera preview images not camera
photos.

Regards

On Jul 30, 12:59 pm, Jim Graham  wrote:
> On Mon, Jul 30, 2012 at 07:12:52AM -0700, Numair Qadir wrote:
> > I'm working on an app, in which i convert the byte[] image to bitmap, but
> > it showed me some weird image, (in attachment), here is my code
>
> No need to look at the attached image...I can already see the errors.
>
> >   int width = parameters.getPreviewSize (). width;
> >   int height = parameters.getPreviewSize (). height;
>
> Ok, why are you bothering with the preview size?  You aren't dealing with
> the preview here---you're dealing with the PHOTO image now.  But that's
> not important, as you don't even NEED the width or height here.  So
> remove the above two lines.
>
> >   ByteArrayOutputStream outStr = new ByteArrayOutputStream ();
> >   Rect rect = new Rect (0, 0, width, height);
> >   YuvImage yuvimage = new YuvImage (arg0, ImageFormat.NV21, width,
> >      height, null);
> >   yuvimage.compressToJpeg (rect, 100, outStr);
>
> Ok, what's all this junk for?  Toss it all into the bin
>
> >   Bitmap bmp = BitmapFactory.decodeByteArray (outstr.toByteArray (), 0,
> >        outstr.size ());
>
> Ok, now we're where we should be...except what you have about should look
> more like this:
>
> public void onPictureTaken(final byte[] data, final Camera camera) {
>    .
>    Bitmap bmp = BitmapFactory.decodeByteArray(data, 0, data.length, options);
>    .
>
> }
>
> And then you have your bitmap.  Be careful, however...anything over about
> 3 MP is going to cause an Out Of Memory Error when you exceed the amount
> of heap the Java side allows you to use (which may be higher for devices
> with higher-resolution cameras).  I suggest using try/catch to avoid
> locking the camera and forcing the user to reboot to reset the camera.
> Then you can at least exit gracefully.
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)            MiSTie #49997      < Running Mac OS X Lion >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>                    Saw something on TV about Psych-os.
>              H, Psych OS.  Perhaps the next freeware OS   --me
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is it possible to reduce the variability of camera shutter lag time?

2012-07-30 Thread gjs
Hi,

Set other camera parameter values to non-auto settings eg: set a specific 
white balance such as daylight, set flash to off etc.

Other than that ensure there is no other non essential app's / services 
running at the same time & examine your own app to minimise or eliminate 
any garbage collection, reduce sensor use / frequency.

Try a few different devices, dual cores, quad cores particularly those 
claiming zero shutter lag. Some devices let you vary the camera preview 
frame rate & preview size maybe try this as well, not sure if that would 
make a difference as I've have not tried this myself.

If that is still not good enough consider triggering a remote camera 
instead, such as an SLR via bluetooth or usb.

Regards 

On Tuesday, July 31, 2012 6:41:53 AM UTC+10, greg wrote:
>
> Thanks Richard. Setting the focus to Camera.Parameters.FOCUS_MODE_INFINITY 
> helped as shown in the added histogram at 
> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>
> At the risk of sounding like an ingrate, do you have any ideas on how to 
> reduce the variability even more? (A range of 0.2 s still covers a large 
> portion of the periodic motion.)
>
> -- Greg
>
> On Monday, July 30, 2012 3:05:50 PM UTC-4, RichardC wrote:
>>
>> Could it be related to auto-focus? Try turning it off.
>>
>> On Monday, July 30, 2012 7:55:52 PM UTC+1, greg wrote:
>>>
>>> Given a known periodic motion (e.g., walking), I'd like to take a full 
>>> resolution snapshot at the same point in the motion (i.e., the same time 
>>> offset within different periods). However on the Nexus S (currently running 
>>> OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much 
>>> variability in the shutter lag that I cannot accurately plan the timing of 
>>> the snapshot. Is there anything I can do in the application to reduce this 
>>> shutter lag variability? (In this application, the mean lag can be any 
>>> duration but the standard deviation must be small ... much smaller than the 
>>> 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever 
>>> suggestion. If I don't get any suggestions, I'll post a feature request in 
>>> the Android bug tracker.
>>>
>>> I've posted the same question (and showing a histogram of camera shutter 
>>> lag times) at
>>>
>>>
>>> http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag
>>>
>>> Thanks! -- Greg
>>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: GPS in android application

2012-07-23 Thread gjs
Hi,

You need to code the bluetooth connection and I/O to the external GPS 
device yourself, you will then get access to the NMEA string from the 
device.

Search the internet and you should be able to find examples where a mock 
Location provider is connected to a BT GPS device.

Regards

On Friday, July 20, 2012 7:37:53 AM UTC+10, Susanne wrote:
>
> Hi,
>  
> I am porting my windows-mobile GIS application to android (samsung galaxy 
> SII). 
> Now I want to use external GPS (wintec WBT-202) to get geographical 
> location.
>  
> How can I force my application to take position from external gps and not 
> from internal?
> I already did connect mobile-phone to gps via bluetooth and did set 
> "android.permission.BLUETOOTH_ADMIN".
> Which listener shall I take: GpsListener or NmeaListener?
> Is there anything else to consider or does somebody have test source code 
> specifying this topic?
>  
> thanks you a lot for any hint,
> Susanne
>  
>  
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: URGENT : HELP NEEDED ! Loading Bitmap Image into Custom ListView using AsyncTask

2012-07-23 Thread gjs
Hi,

Do you eventually see the bitmap in imageView, after it is loaded from the 
network ?

See the definitive example from Romain Guy -  
http://code.google.com/p/shelves/ 

And discussed here - 
http://www.curious-creature.org/2009/03/04/speed-up-your-android-ui/

Also no need to say a post is URGENT, we assume all posts are urgent anyway.

Regards

On Tuesday, July 24, 2012 9:44:30 AM UTC+10, Raghav Shankar wrote:
>
> I am working on an android application that has a custom listview that 
> contains an imageview and a textview. I am loading an image from the 
> internet and converting it into a bitmap image. I am doing this using an 
> async task.  I am trying to display the bitmap in the imageview. When the 
> activity starts I am only able to see a black screen and I don't see any 
> listview. I would appreciate any help. Here is my code: 
>
>  public class CustomList {
>
> public Bitmap icon;
> public String title;
> public CustomList(){
> super();
> }
> 
> public CustomList(Bitmap icon, String title) {
> super();
> this.icon = icon;
> this.title = title;
> }
> }
>
>
> Here is my adapter class: 
>
>
> public class CustomListAdapter extends ArrayAdapter {
>
> Context context;
> int layoutResourceId;
> LinkedList data = new LinkedList();
>  public CustomListAdapter(Context context, int layoutResourceId,
> LinkedList data) {
> super(context, layoutResourceId, data);
> // TODO Auto-generated constructor stub
>  this.context = context;
> this.layoutResourceId = layoutResourceId;
> this.data = data;
> }
>
> @Override
> public View getView(int position, View convertView, ViewGroup parent) {
> // TODO Auto-generated method stub
> View row = convertView;
> CustomListHolder holder = null;
>  if(row == null){
> LayoutInflater inflater = ((Activity)context).getLayoutInflater();
> row = inflater.inflate(layoutResourceId, parent, false);
> holder = new CustomListHolder();
>
>  holder.text = (TextView)row.findViewById(R.id.txtTitle);
>  holder.thumbnail = (ImageView)row.findViewById(R.id.imgIcon);
>  row.setTag(holder);
> }
>  else
> holder = (CustomListHolder)row.getTag();
>  CustomList cl = data.get(position);
> holder.text.setText(cl.title);
> if(cl.icon != null)
> holder.thumbnail.setImageBitmap(cl.icon);
> 
>  return row;
>  }
>  static class CustomListHolder
> {
> ImageView thumbnail;
> TextView text;
> }
>
> }
>
>
> Here is my main activity and it has an async class as a sub class: 
>
> public class MainActivity extends Activity {
>  LinkedList list_data = new LinkedList();
> LinkedList photo_url = new LinkedList();
> LinkedList list_title = new LinkedList();
> ListView lv ;
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.list_main);
> photo_url.add(0,"
> http://java.sogeti.nl/JavaBlog/wp-content/uploads/2009/04/android_icon_256.png
> ");
> list_title.add(0, "Android");
> LoadImage eventImageLoader = new LoadImage(MainActivity.this, 
> photo_url, list_title);
> eventImageLoader.execute();
> 
> CustomListAdapter adapter = new 
> CustomListAdapter(this,R.layout.list_item, list_data);
> lv = (ListView)findViewById(R.id.listView1);
> lv.setAdapter(adapter);
>   
> }
>
> public class LoadImage extends AsyncTask LinkedList>{
>
>  Context callingContext = null;
>  LinkedList pic_url = new LinkedList();
>  LinkedList title = new LinkedList();
>  Bitmap b = null;
>  LinkedList bm = new LinkedList();
>  
>  public LoadImage(Context callingContext, LinkedList pic_url, 
> LinkedList title){
>  
>  this.callingContext = callingContext;
>  this.pic_url = pic_url;
>  this.title = title;
>  }
>  
> @Override
> protected LinkedList doInBackground(Void... params) {
> // TODO Auto-generated method stub
>  URL imageUrl;
> CustomList temp;
> for(int i = 0; i < pic_url.size(); i++)
> {   
> try {
> imageUrl = new URL(pic_url.get(i));
> temp = new 
> CustomList(BitmapFactory.decodeStream(imageUrl.openConnection().getInputStream()),title.get(i));
> list_data.add(i,temp);
> System.out.println("Added" + i + "th Value");
> } catch (IOException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> } 
> }
>  return list_data; 
> }
>  
> protected void onPostExecute(LinkedList bm) {
> // TODO Auto-generated method stub
> super.onPostExecute(bm);
>
> } 
> }   
> }
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, vi

[android-developers] Re: Maximum number of thread created by an Android activity

2012-07-17 Thread gjs
Hi,

Just code a test activity that creates an increasing number of Threads and 
you will get your own answer.

Regards

On Wednesday, July 18, 2012 7:42:41 AM UTC+10, michael s wrote:
>
> Hi,
>
> Is there a limit for the number of thread created by an Android activity 
> runs on a phone?
> If yes, how can I find out such limit?
>
> Thank you.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Audio Stream buffers within 8 secs on Emulator but takes almost 50 secs to buffer on a Phone

2012-07-17 Thread gjs
Hi,

And how long does it take on HTC One using cell phone network connection ?

Regards

On Wednesday, July 18, 2012 3:52:47 PM UTC+10, Zoheb Rahman wrote:
>
> Went through the LogCat in verbose ... can't find anything !!! somebody ! 
> anybody !! HELP !!!
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Does anyone use Task API before?

2012-07-16 Thread gjs
Hi,

Read the TOS - https://developers.google.com/google-apps/tasks/terms

Regards

On Jul 16, 9:54 pm, Michael Leung  wrote:
> Hi all,
>   Does anyone use Task 
> API(https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-an...)
> before?
> Any legal requirements to their API java library?
>
> --
> Regards,
> Michael Leunghttp://www.itblogs.info- My IT Bloghttp://diary.skynovel.info- 
> My Bloghttp://www.michaelleung.info- My Homepage

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Eclipse Android Virtual Device on the retina MacBook Pro

2012-07-12 Thread gjs
Hi,

That is a good problem to have, looking forward to it myself soon, I'd 
suggest debugging on a real device instead of the emulator.

If you also have Parallels or similar and run a Windows VM do you get the 
same issue using Eclipse under Windows? Perhaps you could try to using a 
different screen resolution in a Windows VM.

Regards

On Thursday, July 12, 2012 3:47:23 PM UTC+10, Andrew Chen wrote:
>
> I have an macbook pro retina and experience the same issue..what's the fix?
>
>
> On Friday, June 22, 2012 11:39:13 AM UTC-7, Diveflo wrote:
>>
>> Hi,
>>
>> I found the following issue while developing an Android app with Eclipse 
>> on my new MacBook Pro with retina display.
>> Whenever I launch the Android Virtual Device to emulate the app, the 
>> emulator starts with a way too big window. 
>> This ALSO happens if I run the MacBook on the 'native' resolution of 
>> 2880x1800...so it's not because this resolution gets mapped to 1440x900.
>> It wouldn't be a big problem by itself, but the mouse clicks get mapped 
>> to the whole window...so I have to click somewhere else within that window 
>> to get the actual UI-element I wanted to hit :/
>>
>> Has anyone else experienced this and found a solution?
>>
>> I would really appreciate any help...and also no Apple/Goole flamewar if 
>> anyway possible ;)
>>
>> Thank u!
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android Barcode Scanner Not reading some barcodes.

2012-07-11 Thread gjs
Hi,

Perhaps try another device.

regards

On Wednesday, July 11, 2012 9:01:01 PM UTC+10, Reji Joseph wrote:
>
>
>
> I am working on a Project which uses the Barcode Scanner for  redeem 
> points. I have tried Zxing,QR Droid, Red Laser,Scan Life,Shop Savy etc 
> usig HTC EVO 3D. None of them read all barcodes. But Zbar for IOS reading 
> all the same codes.I think its the problem with hardware of the device.Any 
> Comments about this?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: fail to save camera snapped Picture on device

2012-07-10 Thread gjs
Hi,

Post the code you are using.

Regards

On Jul 11, 5:49 am, hytham ALOBYDI  wrote:
> Hi all;
> i am writing an android application that take pictures using the camera
> and upload to the server. I created a costume folder so that all
> the snapped pic will be saved to, the issue is this ;when i take
> the snapshot using the simulator the file is saved on the folder normal,
> now when i use the same code on the real device the picture is saved inside
> the camera folder not inside the costume folder i created.
> can some body help me with this explainable issue
> with my best regards
> I am using API10

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth Connection failing in android OS 2.3 and above

2012-07-10 Thread gjs
Hi,

Try the bluetooth chat sample app & see if that works ok.

Regards

On Jul 3, 10:43 pm, Jonathan Lim 
wrote:
> Hi, i have am developing an application which connects to Bluetooth and it
> works perfectly in android OS 2.1 and 2.2 however when i tested with OS 2.3
> and above i am unable to connect, does anyone have any clue?
>
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android File Transfer no longer working with Galaxy Nexus after 4.0.4 upgrade

2012-07-10 Thread gjs
Hi,

Yes I have exact same issue.

It would be good if Google published the source code to the File
Transfer app for OSX.

You can still transfer files from within Eclipse ok using ddms.

Or you can connect to a Windows machine and transfer files. (I also
wrote a mtp transfer app in c# for windows but that is no use for
osx).

Otherwise try some of the ftp apps etc.

Regards

On Jul 5, 9:09 am, tuanomsok  wrote:
> My Galaxy Nexus just updated to 4.0.4.  I have Android File Transfer on OSX
> 10.6.8.
>
> Just noticed that when I plug my phone in via USB, AFT doesn't launch like
> it normally does.  When I manually launch the app, I get an "Android Device
> Not Found" error.
>
> Anyone else having issues after the 4.0.4 update?  How does one fix this
> issue?
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: OutOfMemoryException

2012-07-07 Thread gjs
Hi,

It is unlikely you would need all 1000 loaded at the same time, try a
different approach perhaps load on demand as needed.

Regards

On Jul 7, 2:51 am, RichardC  wrote:
> How large are your images (not file size, but width*hight*bits-per-pixel)
> images are uncompressed when loaded so you need to budget your memory on
> the expanded size?
> How many do you load the same time?
> Do you unload bitmaps that you have finished using?
>
>
>
>
>
>
>
> On Friday, July 6, 2012 5:16:17 PM UTC+1, Android Developer wrote:
>
> > Hi,
>
> > I am working in a avatar like application that has lots of images more
> > than 1000 where user can change any image at runtime. But its frequently
> > running out of heap space and then crashed.
>
> > I checked this.
> >http://developer.android.com/training/displaying-bitmaps/index.html
>
> > But it didnt solve my problem. Even i have worker thread to update the
> > image to UI.
>
> > *Stack Trace :
>
> > 07-06 21:54:45.707: E/AndroidRuntime(14405): java.lang.OutOfMemoryError
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:7 
> > 73)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.content.res.Resources.loadDrawable(Resources.java:1935)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.content.res.Resources.getDrawable(Resources.java:664)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.widget.ImageView.resolveUri(ImageView.java:542)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.widget.ImageView.setImageResource(ImageView.java:315)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.os.AsyncTask.finish(AsyncTask.java:602)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.os.AsyncTask.access$600(AsyncTask.java:156)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.os.Looper.loop(Looper.java:137)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > android.app.ActivityThread.main(ActivityThread.java:4424)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > java.lang.reflect.Method.invoke(Method.java:511)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
> > 784)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> > 07-06 21:54:45.707: E/AndroidRuntime(14405):     at
> > dalvik.system.NativeStart.main(Native Method)
>
> > *Thanks in Advance
> > *
> > *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth chat bug?

2012-07-07 Thread gjs
Hi,

And by that logic device might be null as well...

Maybe check the source code.

Regards

On Jul 7, 5:12 am, bob  wrote:
> I'm looking at the Bluetooth chat example:
>
>             // When discovery finds a device
>             if (BluetoothDevice.ACTION_FOUND.equals(action)) {
>                 // Get the BluetoothDevice object from the Intent
>                 BluetoothDevice device =
> intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
>                 // If it's already paired, skip it, because it's been
> listed already
>                 if (device.getBondState() != BluetoothDevice.BOND_BONDED) {
>                     mNewDevicesArrayAdapter.add(device.getName() + "\n" +
> device.getAddress());
>                 }
>             // When discovery is finished, change the Activity title
>             }
>
> I think there is a bug here because it assumes device.getName() does not
> return null, when in fact it might.
>
> What do you guys think?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to make own map for application on android

2012-07-01 Thread gjs
Hi,

Put an overlay on top of your google map with the details you require.

Regards

On Jun 29, 6:21 am, Cher Yots  wrote:
> Now I'm developing an application Map of University on Android. I use
> google map api The problem is that I found on the Google Map does not show
> the buildings. And routing services. The University has a total area of
> only there's a way to solve these problem,however. Sample or not. how to
> create geo, the building and routing services in the university
>
> Map Picture 
>
> I mean about polygon and polyline.
>
> Thank you For answer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Testing in-app billing

2012-06-28 Thread gjs
Hi,

If you read the docs it says you have to pay but you can also issue a
refund apparently.

Regards

On Jun 28, 8:47 pm, adrian del campo  wrote:
> Hi,
>
> I'm creating a simple library to manage in-app billing from our apps. I
> have tested everything with the static test products from google and it
> seems to work fine. The problem is that when I try to buy a real product
> using a test account google play is asking me for a credit card even
> without publishing the application.
>
> Is there any way to test in-app billing with real products without having
> to pay? For example a fake credit card or something similar?
>
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Much time taken in data read from socket

2012-06-27 Thread gjs
Hi,

Read more than 1 byte at a time, use an array buffer.

Regards

On Jun 25, 6:06 pm, Azmat Alikhan  wrote:
> I'm using sockets for data transfer from one android phone and PC, it is
> taking 15 seconds to read about 1 Mb of data. I want to improve its
> performance.
>
> Could anyone suggest any better way to do that?
>
> My Code is:
>
> InputStream is= socket.getInputStream();
> DataInputStream inChannel= new DataInputStream(new BufferedInputStream(in));
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> int oneByte;
> while ((oneByte = inChannel.read()) != -1) {
>             if (oneByte == 0) {
>                 break;
>             }
>             baos.write(oneByte);
>             byteCount++;
>         }
> byte[] inData = baos.toByteArray();
> baos.close();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: listenUsingInsecureRfcommWithServiceRecord

2012-06-26 Thread gjs
Hi,

If you dig deeply I think you will find it was present in API's before
Level 10 but was only available unsupported/privately by using java
reflection.

See in here for an example
http://mobisocial.github.com/EasyNFC/apidocs/reference/mobisocial/nfc/addon/BluetoothConnector.OnConnectedListener-source.html

Regards

On Jun 27, 3:19 am, bob  wrote:
> Can someone help me understand why this feature did not show up until API
> Level 10?
>
> public BluetoothServerSocket listenUsingInsecureRfcommWithServiceRecord
> (String name, UUID uuid)
>
> Is this making use of some new feature that is not widely supported?  I'm
> trying to program a desktop to talk to an Android device that's calling
> this function, and it's not going well.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How do I save a complete webpage displayed in Android's WebView?

2012-06-20 Thread gjs
Hi,

No quite what you are looking for but you can save the entire
(rendered) web page as an image to view offline.

See a very old post of mine that show how to do this, in older
versions of Android  -

https://groups.google.com/group/android-developers/browse_thread/thread/5bab2668cd5ab44f/81651cbd13bc6faa?lnk=gst&q=gjs+yahoo#81651cbd13bc6faa

You could save the page as an image & also the url to view the page
online again later.

Regards

On Jun 21, 11:32 am, imsproject ims  wrote:
> Hi Nobu Games,
>
> Thanks for your reply.  I will try using javascript as you mentioned.
>
> Thanks,
>
> On Wed, Jun 20, 2012 at 6:10 PM, Nobu Games wrote:
>
>
>
>
>
>
>
> > I just found a simpler example without JavaScript to Android interface:
>
> >http://lexandera.com/2009/01/extracting-html-from-a-webview/
>
> > Above link also shows how to implement your own WebViewClient class to
> > control some basic WebView behavior.
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: trace mobile location through phone number

2012-06-15 Thread gjs
Hi,

That capability is usually reserved for telco's & government agencies
with warrants using cell phone tower triangulation.

Regards

On Jun 15, 10:34 pm, Narendra Singh Rathore 
wrote:
> On Fri, Jun 15, 2012 at 4:59 PM, Raghav Sood  wrote:
> > This has nothing to do with the Android SDK. You'll need to find an online
> > website with an API that allows you to do this. This isn't the list to find
> > that website.
>
> Ok, thanks for the suggestion. I realized what I wanted can actually be
> achieved in the manner, I thought, as I mentioned above.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Running camera preview while recording video at the same time

2012-06-07 Thread gjs
Hi,

Normally camera preview *IS* present during video recording, read the
video section of this carefully -

http://developer.android.com/guide/topics/media/camera.html

Regards

On Jun 6, 8:20 pm, DeveloperbyChoice  wrote:
> I am still loking for the solution ? any solution yet ?
>
>
>
>
>
>
>
> On Tuesday, March 27, 2012 12:09:08 PM UTC-4, Qianqian Fang wrote:
>
> > hi
>
> > I am working on a real-time video processing project. I used
> > setPreviewCallbackWithBuffer() and display both the preview image and
> > the processed image on SurfaceViews. Now, I'd like to record video at
> > the same time. I read from some posts that the video recording
> > involves low-level io that is not in conflict with the preview buffer.
>
> > I took some sample code from the second post of this link to do the
> > video recording:
>
> >http://stackoverflow.com/questions/1817742/android-video-recording-sa...
>
> > however, after merging it with my camera
> > setPreviewCallbackWithBuffer() code, I kept getting "MediaRecorder:
> > start called in an invalid state 4" when I tried to call mrec.start().
> > Both the initRecorder() and prepareRecorder() ran fine when the
> > surface is created.
>
> > Anyone know what might be causing this error? the MediaRecorder object
> > does share the same camera object that is used for buffered preview.
>
> > thanks
>
> > Qianqian

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Find path between 2 pairs of lat and long

2012-06-07 Thread gjs
Hi,

It is true, the op did not specify the purpose of the path between the
two points, that's why I suggested a better question was probably in
order.

It is likely the path required was for navigation? between the two
points in which case 
https://developers.google.com/maps/documentation/javascript/directions
would be useful.

Regards

On Jun 7, 12:38 am, Kristopher Micinski 
wrote:
> On Wed, Jun 6, 2012 at 3:15 AM, gjs  wrote:
> > Hi,
>
> > The path is just a straight line between the two points.
>
> > Perhaps you need a better question.
>
> > Regards
>
> That's not true at all...
>
> The path is just a straight line on a flat surface...
>
> The earth isn't flat...
>
> http://en.wikipedia.org/wiki/Great-circle_distance
>
> kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Find path between 2 pairs of lat and long

2012-06-06 Thread gjs
Hi,

The path is just a straight line between the two points.

Perhaps you need a better question.

Regards

On Jun 4, 9:45 pm, Mini agrawal  wrote:
> HI,
>
> I have a 2 sets of latitude and longitude pairs. I want to find
> path between these 2 pairs of lat and long and then show it on Google map.
> How can I find the path for android?
>
> Thanks in advance !

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Getting GPS values without LocationManager's onLocationChanged

2012-06-04 Thread gjs
Hi,

See also 
http://developer.android.com/reference/android/location/GpsStatus.NmeaListener.html

Regards

On Jun 3, 10:28 pm, Mark Murphy  wrote:
> GPS fixes will arrive at a rate determined by the GPS hardware and the
> environment. You cannot control this.
>
> Either adjust your code to deal with a variable rate of data, or make
> your own fixed interval polling loop, retrieving values from
> getLastKnownLocation(). You will still need to use
> requestLocationUpdates(), to cause GPS to continuously acquire fixes.
>
>
>
>
>
>
>
>
>
> On Sun, Jun 3, 2012 at 8:18 AM, Sumedh  wrote:
> > Hi,
>
> > I developed a code in which i want to access GPS values like
> > lattitude, longitude, speed and date-time for every fixed interval.
> > Currently I am using LocationManager's onLocationChanged() method to
> > get those values. but I want those GPS values for fixed interval
> > irrespective of any event.
> > Is there any way to do it, or any other method in LocationManager I
> > can use
>
> > thanks and regards,
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Multishots in android

2012-05-23 Thread gjs
Hi,

Depends on the device, Galaxy Nexus can do two in just under a second,
also new Galaxy S3 is said to support this as well.

Other option is to capture camera preview frames which can be done
between 10 to 15 images per second.

Also try reducing the photo capture size, this helps reduce time
between successive photos.

Regards

On May 21, 8:56 pm, Saurav Aran  wrote:
> Hi all,
>
> I've been trying to take two pictures with the difference of just fractions
> of seconds ( multiple photos in 1 second). I've been stuck on this problem
> since a long time. I tried these two things and yet unable to succeed:
>
> 1) Calling two takePicture(...) methods simultaneously but it crashes.
> 2) Calling takePicture and after it is finished calling the takePicture
> again. This method snaps two pictures but it is really slow, There is a
> difference of 1 second in between these two shots which is not preferrable
> for my app.
>
> Is there any way that i can snap two photos quickly (a second)? Thanks in
> advance!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth Peer to Peer network in Android..

2012-05-21 Thread gjs
Hi,

I have had 3 and 4 ptp bt connections on real android devices ( all
different ) & once 5, but I found getting reliable connections beyond
3 is usually quite difficult.

Configuration was 1 server & multiple clients, I think you may do
better if you daisy chain connections.

Regards

On May 22, 2:56 am, Kristopher Micinski 
wrote:
> Right, that's what I said... But I also said that I doubt that for a
> real live device, if any one can have more than two open connections
> at a time, I'd be surprised, please tell if so!  And, if you're
> talking to 950 nodes where the average degree is two for each node...
> That's gonna be pretty harsh ;-)
>
> kris
>
>
>
>
>
>
>
> On Mon, May 21, 2012 at 12:53 PM, mike digioia  wrote:
> > You can do this with a multicast based Openfire system! This uses IP.
> > Bluetooth as the transport using sockets is still under study, since I am
> > just attempting to get the first case to work with only one chat between two
> > phones. Since this uses Content Centric networking, it can be extended to
> > handle many nodes by extending bluetooth headers and doing packet
> > fragmentation (BT max is 950) to handle large packets.
>
> > On Sun, May 20, 2012 at 10:01 AM, Kristopher Micinski
> >  wrote:
>
> >> You basically, can't do it for Bluetooth, with more than two / three
> >> (max usually) nodes.
>
> >> You can look into wifi direct.
>
> >> You can also put a p2p overlay on top of a standard java socket.  But
> >> that makes this no more interesting than any desktop java app.  I.e.,
> >> there is absolutely nothing that makes it Android specific.
>
> >>http://www.zeromq.org/build:android
>
> >> There's a 0MQ build on Android, but it's using the NDK, and I haven't
> >> seen Java bindings, so it's probably going to a real pain to use.
> >> (Though in real apps, a message queue like 0mq would be a real
> >> lifesaver, since you're basically going to emulate that anyway!)
>
> >> kris
>
> >> On Sun, May 20, 2012 at 12:41 PM, sudheesh ap 
> >> wrote:
> >> >      Yes, it's for a class project. The aim is to make a p2p overlay
> >> > network
> >> > in android platform to  support p2p android applications such as
> >> > multiplayer
> >> > games.I was asking about the possibility to make it over the
> >> > bluetooth/wifi
> >> > connection. Waiting for your valuable suggestions.
>
> >> > Regards,
> >> > sap
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Connecting to two bluetooth devices alternatively

2012-05-16 Thread gjs
Hi,

Ok, trying running in debug, add some breakpoints & observe what is
happening when you switch between devices, perhaps you need a bit of a
delay when switching to ensure the connection is ready.

Study the different bluetooth chat classes carefully to understand
what they are doing, in theory you should also be able to connect to
both UARTS at the same time by having more than one instance of the
relevant objects. Often the hardest part is getting devices to connect
successfully, perhaps you don't need to disconnect & reconnect each
time ? Maybe just read / write to each device alternatively rather
than disconnect & reconnect between ?

Good luck.

Regards

On May 16, 7:33 pm, Yamanoor Sai Ram  wrote:
> >>  My objective is to read data from a bluetooth device alternatively.
>
> 1) I would like to connect to device 1.
> 2) Read data from the device
> 3) Disconnect from device 1 and connect to device 2.
> 4) Repeat from step 1 for device 2.
>
> I achieved this when I was using Processing language for Android. I took a
> video of the same:
>
> http://www.youtube.com/watch?v=MVut3Vn5BFAch
>
> I am also able to read and write data to the UART data module once the
> connection is established.
>
>  I am not able to close the Bluetooth Socket and switch devices properly
> when I try to establish the above mentioned sequence. It seems to get stuck
> in an infinite loop.
>
> Thanks,
> Sai
>
>
>
>
>
>
>
> On Wed, May 16, 2012 at 2:24 AM, gjs  wrote:
> > Hi
>
> > What you mean by -
>
> > My objective is to read data from a bluetooth device alternatively. I
> > was successful in storing the address of the devices selected. This
> > is
> > how I am trying to connect to the devices alternatively:
>
> > - Specifically what do you mean by 'read data from a bluetooth device
> > alternatively' ???
>
> > Can you get your bluetooth UART to echo back the data to the bluetooth
> > Android (chat) example, once the devices are connected ?
>
> > Regards
>
> > On May 15, 1:18 pm, yamanoorsai  wrote:
> > > Hi,
>
> > > I tweaked the android bluetooth example to get my android device to
> > > communicate with my UART Bluetooth module. I just changed the UUID to
> > > communicate to the module.
>
> > > My objective is to read data from a bluetooth device alternatively. I
> > > was successful in storing the address of the devices selected. This is
> > > how I am trying to connect to the devices alternatively:
>
> > > case MESSAGE_READ:
> > >             byte[] readBuf = (byte[]) msg.obj;
> > >             // construct a string from the valid bytes in the buffer
> > >             String readMessage = new String(readBuf, 0, msg.arg1);
> > >             mConversationArrayAdapter.add(mConnectedDeviceName+":  " +
> > > readMessage);
> > >             if(status==0)
> > >             {
> > >                 mChatService.stop();
> > >                 BluetoothDevice device =
> > > mBluetoothAdapter.getRemoteDevice(address);
> > >                 mChatService.connect(device);
> > >                 status =1;
> > >                 break;
> > >             }
> > >             else {
> > >                 mChatService.stop();
> > >                 BluetoothDevice device =
> > > mBluetoothAdapter.getRemoteDevice(address1);
> > >                 mChatService.connect(device);
> > >                 status =0;
> > >             }
>
> > > The device successfully disconnects and reconnect successfully. This
> > > activity repeats only for a few cycles then it stops connecting. I am
> > > an inexperienced programmer and I am not sure how to establish a
> > > robust mechanism.
>
> > > Any thoughts would be appreciated.
>
> > > Thanks,
> > > Sai
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Connecting to two bluetooth devices alternatively

2012-05-16 Thread gjs
Hi

What you mean by -

My objective is to read data from a bluetooth device alternatively. I
was successful in storing the address of the devices selected. This
is
how I am trying to connect to the devices alternatively:

- Specifically what do you mean by 'read data from a bluetooth device
alternatively' ???

Can you get your bluetooth UART to echo back the data to the bluetooth
Android (chat) example, once the devices are connected ?

Regards

On May 15, 1:18 pm, yamanoorsai  wrote:
> Hi,
>
> I tweaked the android bluetooth example to get my android device to
> communicate with my UART Bluetooth module. I just changed the UUID to
> communicate to the module.
>
> My objective is to read data from a bluetooth device alternatively. I
> was successful in storing the address of the devices selected. This is
> how I am trying to connect to the devices alternatively:
>
> case MESSAGE_READ:
>             byte[] readBuf = (byte[]) msg.obj;
>             // construct a string from the valid bytes in the buffer
>             String readMessage = new String(readBuf, 0, msg.arg1);
>             mConversationArrayAdapter.add(mConnectedDeviceName+":  " +
> readMessage);
>             if(status==0)
>             {
>                 mChatService.stop();
>                 BluetoothDevice device =
> mBluetoothAdapter.getRemoteDevice(address);
>                 mChatService.connect(device);
>                 status =1;
>                 break;
>             }
>             else {
>                 mChatService.stop();
>                 BluetoothDevice device =
> mBluetoothAdapter.getRemoteDevice(address1);
>                 mChatService.connect(device);
>                 status =0;
>             }
>
> The device successfully disconnects and reconnect successfully. This
> activity repeats only for a few cycles then it stops connecting. I am
> an inexperienced programmer and I am not sure how to establish a
> robust mechanism.
>
> Any thoughts would be appreciated.
>
> Thanks,
> Sai

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: which android phone has Environment sensors hardware?

2012-05-10 Thread gjs
Hi,

Only device I have had that measures temperature was the original t-
mobile G1 & even then what was measuring was the battery temp not
ambient.

If you want to measure ambient, I'd suggest looking at the bluetooth
Sensaris devices eg http://www.sensaris.com/products/senspod/

Regards

On May 10, 8:50 pm, Jxn  wrote:
> Hello.
>
> On 10 Maj, 07:56, Rajender  wrote:
>
> > Hello,
>
> > which android phone in market has Environment sensors hardware?
>
> That's the wrong question, unless you want to buy some devices to test
> your app.
>
> To check devices that work would give you a loong list in your program
> to update. If you need a list, have a list with exceptions, devices
> with bugs. That would also be easier to administrate, just add device
> when a bug report arrives.
>
> > I want to use these senors to measure Room Temperature.
>
> > Sensor :  "TYPE_AMBIENT_TEMPERATURE
>
> > Regards,
>
> > Rajender K Goud
>
> Good luck, Anders.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Long running Android service is getting recreated over and over

2012-05-10 Thread gjs
Hi,
And so do we, I've only had to add start foreground since ICS, before
that the service ran OK for days or weeks without being killed.
That GPS uses a lot of battery is a total myth IMHO. With screen off
can log for over 8 hours & more on some devices.
I also support sub seconds GPS logging from external Bluetooth
devices, buffering the data & writing periodically significantly
reduces battery drain.
Regards

On May 10, 8:56 pm, lbendlin  wrote:
> We have such a program that supports GPS logging every second. We use a
> foreground service (and a notification icon) and the service very rarely
> gets killed (and most of the time it gets restarted quickly by the OS) .
> Our users are fully aware of and fully ok with the battery impact. Most of
> them use the app in the car with the device in a powered cradle. You
> wouldn't believe how many requests we get for subsecond GPS logging.
> Thankfully the consumer GPS devices don't go that low.
>
> We actually see the opposite problem. When the user exits the application
> this sends the stop signal to the service. However, the service then
> sometimes restarts on its own. We had to add logic to the service to check
> if the app is still there or if the service is orphaned (in which case we
> stop it from the inside). Hmm, maybe that's the idea. Not bother stopping
> the service from the app, let the service stop itself?
>
>
>
>
>
>
>
> On Thursday, May 10, 2012 6:17:30 AM UTC-4, William Kelley wrote:
>
> > On Wednesday, May 9, 2012 9:40:20 PM UTC-7, Kristopher Micinski wrote:
>
> >> What you're doing isn't draining the battery only because of the
> >> service, but also because of the location updates you'll be getting..
>
> > GPS fixing is definitely the main battery killer here, but there are smart
> > ways to handle it.
>
> >> 30-40 seconds, do you really need that kind of accuracy?  I would say
> >> that I'd only want something like 5 minutes, which an AlarmManger
> >> certainly could do (I believe, at least..)
>
> > Actually, I like to get accuracy of about 5-10 seconds when driving, less
> > when walking. But 5 minutes would be basically useless. At 70 miles an
> > hour, that's 6 miles between points. Even when hiking, I can make quite a
> > few switchbacks and directional changes in 5 minutes. It all really depends
> > on what you want out of a GPS tracker. I want a detailed log with great
> > accuracy. I know battery life suffers, but when you're in a car, you can be
> > plugged in, so that helps. And even when hiking, 10 seconds between fixes
> > allows my phone to go for 8 hour hikes, so it's completely reasonable.
>
> > I changed my app to run as a foreground service and so far that has made
> > all the difference. It hasn't once been restarted in 3 hours. For some
> > reason, I thought a background process would be less likely to be killed,
> > but now I see that services that let the user know exactly what is going on
> > by being in the foreground and being required to show a notification icon
> > are more transparent and thereby more "trusted" by the OS. The one thing
> > that I don't understand is WakeLock. I am running my service without a
> > wakelock, the phone has been off for a few hours, and it is still logging
> > GPS points. Should I assume that some other app (I am running Tasker and
> > some other automation apps as well as CatLog) are keeping the CPU awake?
>
> > Thanks for everyone's help. Little by little, I am getting a better grasp
> > of what I am doing.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: IP Camera Live Streaming

2012-05-06 Thread gjs
Hi,

Some / most (?) IP webcams come with an SDK, try reading that.

For example http://www.axis.com/products/dev_sdk/

Regards

On May 7, 1:00 am, Maha Abdel rahman  wrote:
> I have a question
> is any IP camera can be viewed & controlled from android application,
> or there are specific specifications that must be available in the cam
> to be controlled remotely?
>
> On May 4, 3:49 pm, lbendlin  wrote:
>
>
>
>
>
>
>
> > does your camera already provide native 3GPP or MP4 streaming? If so, just
> > connect to it with a rtsp player.  If not, grab the JPEG files from the
> > camera and pipe them to your screen as fast as you can (which won't be very
> > fast)
>
> > On Wednesday, May 2, 2012 6:32:10 AM UTC-4, Rami sleiman wrote:
>
> > > Hi All,
> > > I am new to android. i want to develop an application that streams
> > > from a linksys wirless-G ip camera. I have read many posts and no one
> > > is explaining about streaming from IP Cameras. any help will be
> > > appreciated. Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth devices is pairing but not connecting

2012-04-30 Thread gjs
Hi,

Build bluetooth chat demo app from sdk & try connecting with that.

Regards

On Apr 30, 4:43 pm, hüseyin toplu  wrote:
> i found my problem problem  have server code
>   tmp = mAdapter.listenUsingRfcommWithServiceRecord(NAME_SECURE,
>                     MY_UUID_SECURE);
>             } else {
>                 tmp = mAdapter.listenUsingRfcommWithServiceRecord(
>                         NAME_INSECURE, MY_UUID_INSECURE);
>             }
>         } catch (IOException e) {}
>
> Problem is uuid because I dont know other device uuid.i dont send file
> to my application i wanna just send file over bluettooth to any device
>
> i chanced this code with this
>         m = mAdapter.getClass().getMethod("listenUsingRfcommOn", new Class[]
> { int.class });
>                                         tmp = (BluetoothServerSocket) 
> m.invoke(mAdapter, 1);
>                                 } catch (SecurityException e) {
>                                                                               
>   e.printStackTrace();
>                                 } catch (Exception e) {
>                                         e.printStackTrace();
>                                 }
> it send java.lang.reflect.invocationtargetexception erorr please
> help :S

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: onPreviewFrame returning wrong information?

2012-04-26 Thread gjs
Hi,

Read this post it might help.

http://groups.google.com/group/android-developers/browse_thread/thread/65796050ccf3e022/067df0e92c366937?lnk=gst&q=compressToJpeg#067df0e92c366937

or search for compressToJpeg in this forum.

regards

On Apr 26, 3:11 pm, Taylor Niver  wrote:
> Also, much of the code has been copied from various sources online, it is
> not 100% mine
>
>
>
>
>
>
>
> On Thursday, April 26, 2012 1:09:23 AM UTC-4, Taylor Niver wrote:
>
> > The code below works but it is returning images like this 
> > :IMG
> >  .
> > Is there something wrong with my code where it is not receiving the correct
> > byte array from the surface holder?
>
> > -Taylor
>
> >> public void surfaceChanged(SurfaceHolder holder, int format, int width,
> >> int height) {
> >> Camera.Parameters parameters = camera.getParameters();
> >> parameters.setPictureFormat(ImageFormat.YUY2);
> >> //parameters.setPreviewFormat(ImageFormat.JPEG);
> >> camera.setParameters(parameters);
> >> camera.startPreview();
>
> >> camera.setPreviewCallback(new PreviewCallback(){
> >> @Override
> >> public void onPreviewFrame(byte[] _data, Camera camera){
> >> YuvImage im = new YuvImage(_data, ImageFormat.YUY2, 540,
> >>                         884, null);
> >> Rect r = new Rect(0,0,540,884);
> >> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> >> im.compressToJpeg(r, 100, baos);
> >> try{
> >> FileOutputStream output = new FileOutputStream(String.format(
> >> "/sdcard/%s%d.jpg", strPrevCBType, System.currentTimeMillis()));
> >> output.write(baos.toByteArray());
> >> output.flush();
> >> output.close();
> >> }catch(FileNotFoundException e){
> >> Log.d("ERROR", e.toString());
> >> }catch(IOException e){
> >> }
> >> }
> >> });

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Hi to every body

2012-03-04 Thread gjs
Hi,

See the google zxing project.

Regards

On Mar 2, 6:12 pm, suraj nittala  wrote:
> Hi all,
> This is suraj I am planning to do develop an application fro reading the qr
> code for that i have searched in the net but I haven't find any thing if
> anybody have the source code for developing a qr code
>  please sent it to me .
> you can use this mail as a reference for contacting me
> Thanks to all
> Regards,
> suraj

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Any way to change one color to another on a bitmap?

2012-03-04 Thread gjs
Hi,

Did you try the array version of setPixels() rather than the single
pixel method ?
Array version is much faster.

Regards

On Mar 3, 6:56 am, darrinps  wrote:
> I have a bitmap and want to be able to change all black pixels to all
> blue. I know you can do this via Bitmap.setPixel but that process is
> extremely slow (believe me, I tried it).
>
> Researching this is see where people recommend using PorterDuff Xor,
> but there isn't any posts on how this was successfully done. Lots of
> people asking...no one spelling out the answer.
>
> So using, paint, bitmap, and canvas, how do you change every black
> pixel to all blue ones?
>
> Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to read EXIF Data from Image File on Android?

2012-02-25 Thread gjs

Hi
Use the android exif class in the sdk
Regards
On Feb 25, 3:17 am, Jaison Brooks  wrote:
> So I'm trying to develop a application of my own that can take any
> image and read its EXIF data and use it to do something. Display it or
> using a intent send data to another application that can read its
> data. I've searched and I've searched and I just can't find a way to
> write this code. Any ideas would be great.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: requestLocationUpdates ignore minTime parameter?

2012-02-25 Thread gjs

Hi,
Ordinary GPS devices only provide updates at 1 second intervals
Regards

On Feb 24, 2:23 pm, StarTraX  wrote:
> But doesn't that beg the question what the parameter is there for at
> all?
> My testing indicates that the value is entirely ignored and always
> uses around 1000 ms on a Samsung Galaxy S11, Android 2.3.3.
> Why would the Android SDK provide something that looks very useful but
> actually delivers nothing?
> It's just d@mn foolish in my opinion.
> And I need to interrogate my position more frequently than 1 second.
> BAH!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: camera app FC/no FC dep. on startup method

2012-02-25 Thread gjs

Hi,
Add code / try catch block to check if camera connects OK. If not
indicate to user camera is busy, exit and restart app.
Regards

On Feb 25, 10:33 am, Jim Graham  wrote:
> One more detail
>
> On Fri, Feb 24, 2012 at 05:12:47PM -0600, Jim Graham wrote:
> > What I'm seeing is a Force Close of my camera app in only one of four
> > situations:
>
> >    1) side-load app, open via installer, pause using Home button,
> >       resume using Honeycomb's active apps display (don't know what
> >       it's called---the vertical listing of running apps with mini
> >       displays and app names); then close app.  NO FORCE CLOSE.
>
> >    2) open via icon; pause; resume via app icon; close; NO FORCE CLOSE
>
> >    3) open via icon; pause; resume via HC listing; close; NO FORCE CLOSE
>
> >    4) side-load, open via installer, pause, open via app icon this time,
> >       close; FORCE CLOSES
>
>      5) open via either route, DO NOT pause, close app; NO FORCE CLOSE
>
> Thanks,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>           "The iPad is a status symbol for yuppies. The Android
>          is for people who actually want something that works."
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to get around restriction on Bluetooth major device class of 0?

2012-02-25 Thread gjs
Hi
Find a phone that does connect to the bt device, note down its bt
address. Connect using the bt address on the phone that skips class 0.
I find reading logs is not always reliable.
Regards

On Feb 25, 4:40 pm, DonFrench  wrote:
> I found a workaround:  
> http://zornsoftware.talsit.info/blog/pairing-spp-bluetooth-devices-wi...
>
> However, I am still not able to connect to my gadget with a Droid
> Incredible.  I am tempted to call it the incredibly stupid phone.
>
>
>
>
>
>
>
> On Friday, February 17, 2012 5:18:53 PM UTC-6, DonFrench wrote:
>
> > Some Android devices are programmed by the manufacturer to skip over
> > devices with major device class of 0
> > (BluetoothClass.Device.Major.MISC).  This means that it is impossible
> > to use those Android devices to control many existing gadgets that
> > contain simple serial Bluetooth transceivers, most of which advertise
> > major device class 0.  Does anyone have any thoughts on how to get
> > around this unreasonable restriction?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth (RFComm) and broken phones

2012-02-22 Thread gjs
Hi,

Try turning BT off & on, then see if it connects ok.

Regards

On Feb 23, 9:50 am, eehouse  wrote:
> I'm modifying a board game app to allow play via Bluetooth.  I'm
> testing on a stack of devices from Samsung, Kyocera, Motorola and
> HTC.  Consistently the HTC phone (Sensation) gets into a state where
> it won't accept connections (BluetoothServerSocket.accept() never
> returns though the logs show that ACTION_ACL_CONNECTED was received.)
> I'm new to BT on Android (not on Linux or PalmOS, though), so it could
> be my mistake, but that it works on the other devices *and* that the
> SDK BluetoothChat sample app also fails on the Sensation makes me
> suspect the phone.
>
> There are also a lot of complaints online about HTC's Bluetooth
> stack
>
> Assuming I can't get this to work on the Sensation, I'm going to want
> to find a nice way to tell owners of that phone not to bother
> downloading.  Those of you who have some experience with Android
> Bluetooth: how do you play nice in a world where some of your users
> are going to have a really bad experience with your software?  Do BT-
> savvy users know to stay away from certain brands or models?
>
> That the problem manifests as accept() never returning means the
> broken device is the last to know; I can't just put up a message
> suggesting you uninstall.  What I'm doing so far is putting up Toasts
> "Failed for the th time to connect to device EricsSensation."  When
> you have a table full of devices all pointing the finger at one of
> their number it's pretty clear, but most users have only one phone.
> What's the collective wisdom on this?
>
> Thanks!
>
> --Eric

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: What's a solid accuracy measurement from LocationManager?

2012-02-13 Thread gjs
Hi,

It returns meters not %

public float getAccuracy ()

Since: API Level 1
Returns the accuracy of the fix in meters. If hasAccuracy() is false,
0.0 is returned.

Regards

On Feb 14, 1:05 pm, Chris Stewart  wrote:
> 30% is from the getAccuracy call on the Location returned.
>
> Chris Stewart
> Founder, Locomo Labshttp://locomolabs.com
> On Feb 13, 2012 8:53 PM, "gjs"  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > 30% of what ?, percentage seem meaningless to me.
>
> > Try examining
> >http://developer.android.com/reference/android/location/Location.html...()
>
> > And yes you can often get GPS fix ok on Android devices indoors near
> > to window, helps if there is good sunny weather outside.
>
> > Regards
>
> > On Feb 14, 4:35 am, Chris Stewart  wrote:
> > > Sure, that makes sense.  I would assume that walking directions means
> > > they're outside, in which case I would expect GPS to be available.  I'm
> > > trying to tell what business someone is in, so some level of accuracy is
> > > required.  I'm plugging the coordinates being returned into Google Maps
> > and
> > > it's finding me just fine.  However, simply seeing 30% is concerning.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to get 5mtr range of accuracy in gps?

2012-02-13 Thread gjs
Hi,

Use a high quality GPS receiver eg via bluetooth.

Alternatively would might try standing still & averaging several
reading. Best done is clear sky sunny conditions.

Regards

On Feb 14, 4:31 am, Dhaval Varia  wrote:
> I m giving address of location...
> How can i have best possible location accuracy?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: What's a solid accuracy measurement from LocationManager?

2012-02-13 Thread gjs
Hi,

30% of what ?, percentage seem meaningless to me.

Try examining 
http://developer.android.com/reference/android/location/Location.html#getAccuracy()

And yes you can often get GPS fix ok on Android devices indoors near
to window, helps if there is good sunny weather outside.

Regards

On Feb 14, 4:35 am, Chris Stewart  wrote:
> Sure, that makes sense.  I would assume that walking directions means
> they're outside, in which case I would expect GPS to be available.  I'm
> trying to tell what business someone is in, so some level of accuracy is
> required.  I'm plugging the coordinates being returned into Google Maps and
> it's finding me just fine.  However, simply seeing 30% is concerning.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Force close while opening an imageView from a bitmap

2012-02-13 Thread gjs
Hi,

Just fyi - jpg does not support alpha, png does.

Regards

On Feb 14, 8:18 am, Jim Graham  wrote:
> On Mon, Feb 13, 2012 at 09:52:03PM +0100, Daniele Segato wrote:
> > On 02/13/2012 05:51 AM, Jim Graham wrote:
>
> > why don't you just go into debug mode and see where the bmp goes null?
>
> I guess you missed the post where I said it was fixed.  :-)
>
> And as for debug mode, I looked through every line of the logcat output
> The first mention of bmp being null was when I tried to load it into
> the ImageView.
>
> But it doesn't matter anymore...it's working, and I'm taking the rest of
> the day off before (once again due to permanent aftermath from cancer #1)
> I start getting migraines and my eyes go so blurry I can't even read HUGE
> lettering...and I'm very close to being there right now.
>
> Thanks anyways,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)        MiSTie #49997  < Running FreeBSD 7.0 >
> spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W
>
>       "'Wrong' is one of those concepts that depends on witnesses."
>      --Catbert:  Evil Director of Human Resources (Dilbert, 05Nov09)
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Is there a way to access/edit the camera preview image?

2012-02-09 Thread gjs
Hi,

Here is an older post that might help you along a little with your
project -

http://groups.google.com/group/android-developers/browse_thread/thread/65796050ccf3e022/b8296e4c283b24ff

Regards

On Feb 10, 3:12 pm, Jim Graham  wrote:
> On Thu, Feb 09, 2012 at 02:02:42PM -0800, Adam Ratana wrote:
> > There are some popular apps such as Paper Camera which affect the camera
> > preview.  The work is likely in implementing the onPreviewFrame:
>
> >http://developer.android.com/reference/android/hardware/Camera.Previe...
>
> > I think that's probably where to start.
>
> Thanks.  I'll check that out.
>
> Later,
>    --jim
>
> --
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>                My policy on spammers:
>                   "Castrate first, ask questions later."
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: I've been making games for a while now but how do I make them successful?

2012-02-07 Thread gjs
Hi,

One suggestion is not to mention that the game is still in development
even if it is, some people may think it is not complete or has bugs
etc and they are just being used to test your game.

Keep trying to make a great game with great visuals.

Regards

On Feb 7, 5:04 pm, Pedro Gabriel Fonteles Furtado
 wrote:
> I have just released this 
> game:https://market.android.com/details?id=monster.puzzle
>
> It has okay visuals, okay gameplay, I think it even hits some
> interesting key words. Yet it's not getting a lot of downloads.
>
> I used to think you need to hit popular key words to be successful in
> order to have organic growth, but that doesn't seem to be the case.
> The popular key words are drowned with applications so you can't rank
> high on searches.
>
> How do you make an fresh new game app successful? Do you have to beg
> for reviews from different websites?
> Do you have to hit popular key words that don't have a lot of apps?
>
> What's the trick?
>
> Thank you for your time!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: GPS - SMS - Mock Location

2012-02-07 Thread gjs
Hi,

Someone might help if you post the log with FC details.

Regards

On Feb 7, 7:58 am, Hohorlan B  wrote:
> I have this code for my project. (Not mine, but I revised it so it
> will suit my needs.)
>
> http://pastebin.com/Tn4guLNR
>
> My Project is about a specific GPS hardware that will send GPS
> position to the Android Phone. The phone will have to display the
> location via Offline maps like mapdroyd. This program, when the button
> is clicked, it will display the offline map. The gps mock location
> will then be turned on. So the map will display the Mocked location
> from SMS.
>
> However, my program keeps on Showing Force close. Can someone help me
> for this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Bluetooth insecurerfcomm automated pairing request on ICS

2012-02-07 Thread gjs
Hi,

Just ignore the pairing, or pair it anyway it should only happen
once...

Regards

On Feb 8, 3:27 am, rapgaroo  wrote:
> I own a Nexus S and it's currently running ICS 4.0.3 (OTA from T-
> Mobile). I have my own application which does Bluetooth connection
> stuff using Insecure method to ignore the boring pairing process.
> After when I updated my Android OS to ICS 4.0.3, my app is requesting
> for a pairing with the Bluetooth device even though I'm using
> createInsecureRfcommSocketToServiceRecord method. I already changed
> API to 4.0.3 for the application but I cannot find any clear answer to
> this type of problem.
> The exact same code works fine under Gingerbread and Honeycomb (i tested it)
> Under Gingerbread and Honeycomb, it does not require any pairing process if
> I use insecurerfcomm...
>
> Anyone has advice or idea to this matter?
>
> Please help me out here...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how can access android phone (sdcard) on my computer browser via wifi ?

2012-02-07 Thread gjs
Hi,

Sure write an app with its own http server.

http://developer.android.com/reference/java/net/ServerSocket.html

Regards

On Jan 31, 2:01 pm, ltvie  wrote:
> Hi everyone...!!
>
> I want to know,,how can access android phone (sdcard) on my computer
> browser via wifi ?
> for example,from my computer browser i can access android phone just
> type IP and port (http://192.168.2.125:8080).. than show webpage from
> android phone ??
>
> #sorry for my bad english..:)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Image comparison problem: getPixel() in android and getRGB() in JDK return different values for the same image

2012-02-03 Thread gjs
Hi,

Also maybe try .png format if possible.

Regards

On Feb 4, 8:21 am, Romain Guy  wrote:
> First make sure that both return values in the same format (Android returns
> ARGB not RGBA.) Also, f I remember correctly, Java2D can apply color
> profiles when loading a bitmap.
> On Feb 3, 2012 11:05 AM, "Ergen"  wrote:
>
>
>
>
>
>
>
> > Hi.  I want to compare two images. One image is on the android client
> > and another image is on the server (with Tomcat, JDK).  I need also to
> > calculate two histograms - one for each image - and to compare they
>
> > The problem is: getPixel (x, y) (on Android) and getRGB (x, y) (JDK)
> > return different rgb color numbers for the point with the same
> > coordinates (x, y). The images are here identical (JPG, Size: 3x3).
>
> > Why are the results different?  And what to do? I've been looking for
> > the answer everywhere, but...
>
> > ***
> > Pseudocode for Androids Activity
> > ***
> > BitmapFactory.Options opt = new BitmapFactory.Options();
> > opt.inPreferredConfig = Bitmap.Config.ARGB_;
>
> > mBitmap = BitmapFactory.decodeFile(imageSource, opt);
>
> > int intColor = 0;
> > for (int x = 0; x < mBitmap.getWidth(); x++) {
> >   for (int y = 0; y < mBitmap.getHeight(); y++) {
> >        intColor = mBitmap.getPixel(x, y);
> >        System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> >   }
> > }System.out.println();
>
> > Result for example image 3x3:
> > (0,0)c:-7882802   (0,1)c:-9859138   (0,2)c:-6507579
> > (1,0)c:-12883825 (1,1)c:-6574388   (1,2)c:-7948604
> > (2,0)c:-7489593   (2,1)c:-10579009 (2,2)c:-6573359
>
> > 
> > Pseudocode for JDK
> > 
> > BufferedImage img = ImageIO.read( file );
>
> > int intColor = 0;
> > for ( int x = 0; x < img.getWidth(); x++ )      {
> >   for ( int y = 0; y < img.getHeight(); y++ ) {
> >      intColor = img.getRGB( x, y );
> >      System.out.print(" ("+ x + ","+ y +") c:" + intColor);
> >   }
> > }System.out.println();
>
> > Result for the same image:
> >  (0,0)c:-7883056    (0,1)c:-9728065   (0,2)c:-6507579
> >  (1,0)c:-12818030  (1,1)c:-6377523   (1,2)c:-7883323
> >  (2,0)c:-7424055    (2,1)c:-10513470 (2,2)c:-6573358
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread gjs
Hi,

In computing anything can be faked...

Regards

On Jan 30, 12:27 pm, Kristopher Micinski 
wrote:
> This can be faked.. If you use GPS, it's easy, if you use the
> telephone network, harder, but still doable.
>
> kris
>
>
>
>
>
>
>
> On Sun, Jan 29, 2012 at 8:25 PM, gjs  wrote:
> > Hi,
>
> > You could use GPS or Network location to determine if the device is
> > within your state and act accordingly.
>
> > Regards
>
> > On Jan 29, 6:39 pm, Kristopher Micinski 
> > wrote:
> >> At the same time.. Once somebody gets your apk, there's no way to stop
> >> them from installing it outside of that region, but you're probably
> >> just most worried about market distribution anyway.
>
> >> kris
>
> >> On Sun, Jan 29, 2012 at 2:25 AM, TreKing  wrote:
> >> > On Sat, Jan 28, 2012 at 6:04 AM, kumar varma  wrote:
>
> >> >> My Client requirement is to lunch the application only in Andhra 
> >> >> Pradesh-
> >> >> India !
>
> >> >http://support.google.com/androidmarket/developer/bin/answer.py?hl=en...
>
> >> > ---
> >> >  --
> >> > TreKing - Chicago transit tracking app for Android-powered devices
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Lunch and Accessible only to a Specific location-Within State.

2012-01-29 Thread gjs
Hi,

You could use GPS or Network location to determine if the device is
within your state and act accordingly.

Regards

On Jan 29, 6:39 pm, Kristopher Micinski 
wrote:
> At the same time.. Once somebody gets your apk, there's no way to stop
> them from installing it outside of that region, but you're probably
> just most worried about market distribution anyway.
>
> kris
>
>
>
>
>
>
>
> On Sun, Jan 29, 2012 at 2:25 AM, TreKing  wrote:
> > On Sat, Jan 28, 2012 at 6:04 AM, kumar varma  wrote:
>
> >> My Client requirement is to lunch the application only in Andhra Pradesh-
> >> India !
>
> >http://support.google.com/androidmarket/developer/bin/answer.py?hl=en...
>
> > --- 
> > --
> > TreKing - Chicago transit tracking app for Android-powered devices
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to Increase frame rate (fps) from onPreviewFrame??

2012-01-19 Thread gjs
Hi,

You could make minor? improvements by doing the standard optimizations
of moving various static queries and variable initilizations to
outside of the onPreview method.

For example, most of this code does not need to be executed for every
onPreview method call -

Camera.Parameters parameters = camera.getParameters();
int format = parameters.getPreviewFormat();
 //YUV formats require more conversion
if (format == ImageFormat.NV21 /*|| format ==
ImageFormat.YUY2 || format == ImageFormat.NV16*/)
{
int w = parameters.getPreviewSize().width;
int h = parameters.getPreviewSize().height;

...

// Convert YuV to Jpeg
Rect rect = new Rect(0, 0, 320, 240);
ByteArrayOutputStream output_stream = new
ByteArrayOutputStream();

Also you might query camera parameters to see if you can change the
preview frame rate -

http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewFpsRange(int,
int)

Regards

On Jan 20, 1:44 am, "muhammad.ume...@hotmail.com"
 wrote:
> hi,
>     I am getting frames from onPreviewFrame, compress to jpeg image
> with YUV and send over the network(TCP),
> but the problem is, i want to increase the frame rate. Now it is 4fps
> but i want 15fps and my image size is 4- 6 kb what can i do to
> increase frame rate, here is my code
>
> public void onPreviewFrame(byte[] data, Camera camera) {
>
>                 Camera.Parameters parameters = camera.getParameters();
>                 int format = parameters.getPreviewFormat();
>
>                  //YUV formats require more conversion
>                 if (format == ImageFormat.NV21 /*|| format ==
> ImageFormat.YUY2 || format == ImageFormat.NV16*/)
>                 {
>                 int w = parameters.getPreviewSize().width;
>                 int h = parameters.getPreviewSize().height;
>
>                 // Get the YuV image
>                 YuvImage yuv_image = new YuvImage(data, format, w, h,
> null);
>                 // Convert YuV to Jpeg
>                 Rect rect = new Rect(0, 0, 320, 240);
>                 ByteArrayOutputStream output_stream = new
> ByteArrayOutputStream();
>                 yuv_image.compressToJpeg(rect, 30, output_stream);
>                 byte[] byt=output_stream.toByteArray();
>
>                          try {
>
>                                   obj.writeObject(byt);
>                                   obj.flush();
>
>                            //     Log.d(TAG, "onPictureTaken - wrote bytes: " 
> +
> data.length);
>                               } catch (FileNotFoundException e) {
>                                 e.printStackTrace();
>                              } catch (IOException e) {
>                                 e.printStackTrace();
>                              } finally {
>                              }
>
>                            Preview.this.invalidate();
>                        }
>                  }
>
> Thanks and Regards
> umer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: What percentage of users lack the ability to install from outside the Droid marketplace ?

2012-01-02 Thread gjs
Hi,

I think you will find that they relaxed that policy a while ago, at
least for some devices eg the Atrix.

Regards

On Jan 3, 2:14 pm, John Coryat  wrote:
> You can count every AT&T customer as one who won't be able to get your app.
> AT&T cripples their Android devices by preventing them from downloading
> apps from "unknown sources." I don't know what the percentage of Android
> users are on AT&T but it isn't miniscule.
>
> -John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: latitude / longitude / altitude / direction of photo/image-taken in metadata of android-camera ?

2012-01-01 Thread gjs
Hi,

Sure, try my app http://market.android.com/details?id=com.imageotag

Regards

On Dec 29 2011, 11:48 pm, henke54  wrote:
> Can it be possible that a Android camera can 'capture' the correct 4
> 'dimensions' : latitude / longitude / altitude / direction of photo/
> image-taken , so that everybody can 'reproduce' the exact place-and-
> direction-of-taken-photo to share with somebody else in streetview or
> google maps ???

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ADB driver...

2011-12-12 Thread gjs
hi,

from xda forum -

1st December 2011, 12:57 AM
On Windows 7 you go to device manager and select

Updated driver > Browse my computer... > Let me select... > Show all >
Have disk

And then browse to the inf file in the android-sdk-windows\extras
\google\usb_driver folder.

It's a pain but it works perfectly.

regards

On Dec 13, 12:37 pm, sblantipodi  wrote:
> Sure but I havent finded anything.
> My android/extras/usb_drivers contains drivers but windows 7 64bit
> doesn't like it ;)
>
> what to do?
>
> On 13 Dic, 00:49, TreKing  wrote:
>
>
>
>
>
>
>
> > On Mon, Dec 12, 2011 at 5:47 PM, sblantipodi
> > wrote:
>
> > > where can I download the ADB driver for my galaxy nexus?
>
> > Did you try Googling that exactly?
>
> > --- 
> > --
> > TreKing  - Chicago
> > transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Help needed with GPS/TTS app

2011-12-08 Thread gjs
Hi,

You will probably want to use a Service ( with a PARTIAL WAKE LOCK )
rather than an Activity assuming you are not already.

GPS will keep going ok, not sure about TTS in a Service.

Regards

On Dec 8, 8:41 am, gotok  wrote:
> First of all, I am very much a beginner working on my first app, and I
> am stuck on  a problem. My app uses GPS and TTS and is intended for
> use when I am skiing. It has a single screen which displays speed,
> odometer, altitude, and GPS coordinates. It also uses TTS to speak
> speed, odometer, altitude, and time at user selected intervals. I have
> it typically set to speak speed at 5mph intervals. So whenever the
> speed crosses 5mph, 10,mph, 15mph, etc either on the way up or down,
> the speed is spoken. Similarly, odomenter is spoken every mile,
> altitude every 1000ft, and time every quarter hour. It is implemented
> as a single activity and built for API level 8. The target device is a
> Samsung YP-G70CW MP3 player which runs Froyo 2.2.2. Everything works
> as intended when the screen is on. However, the behavior is not
> consistent with the screen off (the primary use mode), either by
> timeout or directly with the power button. Sometimes the TTS reporting
> continues to work fine just as with the screen on. More likely, it
> runs at a reduced rate where the odometer and time reports occur on
> time, but the speed reports are much less frequent than normal and are
> delayed. When the screen goes off, it will get into one of these two
> modes and then stay that way. When in the "slow" mode, if I turn the
> screen back on, it speeds up to normal. I have diagnostic TTS reports,
> "pausing" in the onPause override, and "resuming" in the onResume
> override, so I can hear that it pauses when the screen goes off. Now
> my many questions:
> 1. My app is paused, but it continues to run, either at full or
> partial speed. So what does it mean for an app to be paused? Is it
> reasonable to implement this kind of app as an activity, or is a
> service required?
> 2. What all happens when the screen goes off? The Android
> documentation notes that one function, Proximity alerts, are slowed
> down when the screen is off. Are other GPS functions slowed down also?
> 3. I have tried a PARTIAL_WAKE_LOCK acquired in the onCreate override,
> and released at the onDestroy override, but it seems to have no
> affect. I also added diagnostic TTS such that when I report time I
> also check whether the wake lock is held or not. Sometimes it is not
> held, so who could be releasing the wake lock?
> I would really appreciate any comments/advice to help me solve this
> problem.
> thanks...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: simple task of getting frames from a video file

2011-12-07 Thread gjs
Hi,

Google search ffmpeg and android

Regards

On Dec 7, 8:12 pm, visual depth  wrote:
> I used xuggle library which works fine in native java code and get
> frames from a video and store in {jpg,png,bmp}
> I couldn't find help of getting this task done in Android .
> I want to get frames from video and represent in image button or
> another image control of Android .

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Need A web xml parsing code... Urgently please

2011-12-01 Thread gjs
Hi,

When I run that code, it never returns from -

iHaveTheSkillToDoMyOwnWork()

:-)

Regards

On Dec 2, 7:51 am, Streets Of Boston  wrote:
> Sorry Treking,
> But the example you provided won't work. He asked for Urgent*ly* ... slight
> typo on your part, can happen to the best of us
> :-D

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android - Beagleboard - Input via serial port

2011-12-01 Thread gjs
Hi,

Check this out http://slickdevlabs.com/slick-usb-2-serial-library/

Regards

On Dec 2, 9:57 am, Dalton Cézane  wrote:
> Hi.
>
> I would like to know what you recomend for reading data from serial port
> (or usb) in a beagleboard. I saw that android does not have native suport
> for serial port access.
>
> Thanks in advance.
>
> --
> ===
> Dalton Cézane - Smarteju Tecnologia
> Especialista em Ciência da Computação (UFCG)
> Bacharel em Ciência da Computação (UFCG)
> Técnico em Informática (ETER)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: how do i know if i am on road between two points in android

2011-12-01 Thread gjs
Hi,

This might help http://www.movable-type.co.uk/scripts/latlong.html

Regards

On Dec 2, 12:10 pm, TreKing  wrote:
> On Thu, Dec 1, 2011 at 5:49 AM, PaulH  wrote:
> > how can I check if my current location is in the zone if I have only the
> > start point and end point?
>
> If you're saying you have a set of points that define these "zoned roads",
> than some basic math will allow you to find the nearest points to your
> location and the distance to the line formed by those points. This of
> course has nothing to do with Android specifically.
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: database connectivity on real device

2011-12-01 Thread gjs
Hi,

Create you database in code, when app is first run. Load data from
assets. If there is a lot of data load it from internet.

Regards

On Dec 2, 2:07 pm, Narendra Singh Rathore 
wrote:
> Hi again, my problem solved by storing my database in sdcard, but even now
> I have to push my database for the first time I m using it.
>
> Now, I want something likestoring my database in assets folder, so that
> it can directly be installed with the apk directly, without using push.
>
> Here is what I did.
> 1) Copied the database in assets folder.
>
> Now, for accessing that database, I m doing---
>
> 2) 
> db=*SQLiteDatabase.openDatabase*("file:android_assets/MY_DATABASE //android_assets/MY_DATABASE>",
> null, SQLiteDatabase.CREATE_IF_NECESSARY);
>
> Am I doing something wrong here, let me know if I m wrong.
>
> I hope, u all got my problem..
>
> Narendra :(

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android with cloud computing

2011-11-28 Thread gjs
Hi,

Google App Engine.

regards

On Nov 28, 3:46 pm, Akash  wrote:
> Hi,
> I am a developer of android and much familiar with Android SDK. I am
> very much eager to learn Android with cloud computing but can't find
> any relevant stuff anywhere. I would like someone to suggest the stuff
> for learning the same.
>
> Thank you :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Barcode reader app in android

2011-11-28 Thread gjs
Hi,

Goole zxing

Regards

On Nov 26, 6:02 pm, Ali Rangwala  wrote:
> Dear All,
>
> we have been trying to build a Barcode reader app in Android.. we got a
> SDK/open source code of Red Laser however it doesnt seem to work well.
>
> If any of you have developed similar app and would not mind to share the
> code snippet and technical details of making a basic barcode reader app
> would be really helpful.
>
> Thanks in advance for your support.
>
> BR,
> Ali

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Notification sound not played to end

2011-11-28 Thread gjs
Hi,

I play sound asynchronously (in a separate thread). The first thing I
do is query the duration of the sound clip ie how many miliseconds,
then I play the sound clip & keep the thread running for at least the
duration of the clip. That way the sound is not 'cut off' before it
has finished playing.

Regards

On Nov 27, 8:06 am, Morten Frederiksen  wrote:
> I am attempting to make some high quality notification sounds, but when the
> sounds are played they are not played entirely. Playback cuts off near the
> end of the sound so the notification sound ends prematurely and abruptly.
>
> When played through the media player on the phone, the sound is played
> entirely, so the file format is not corrupt.
>
> I have tried various formats including Ogg Vorbis (16 bit PCM, 48 kHz, 320
> kb/s) which seems to working for the vendor supplied notification sounds on
> the phone.
>
> Adding extra silence at the end of the file does not always work, and is a
> clumsy workaround at best.
>
> Hope someone can shed some light on this problem.
>
> Regards,
> Morten

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: getting this error The apk must be signed with the same certificates as the previous version.

2011-11-28 Thread gjs
Hi,
You *must* use Java 1.6 to sign, java 1.7 does not work jarsigner
default algorithm has changed, as somebody already explained.
Regards

On Nov 28, 11:05 pm, Mariux  wrote:
> Tried with Chrome, Firefox and IE. Same issue for all of them.
>
> In fact, this can't be a browser-related issue. If I manually sign the apk
> using jarsigner and then zipalign it, I'm able to upgrade the app. So
> probably it's something related to ADT mis-signing the apks!!
>
> I opened a bug 
> here:http://code.google.com/p/android/issues/detail?id=22278&colspec=ID%20...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Please Help with GPS Provider Switch

2011-11-21 Thread gjs
Hi,

Yes I understand what you are attempting, I was just suggesting doing
all three at the same time in parallel , that way you'd have a results
in 30 seconds or less & not have to wait for up 90 seconds.

And no I don't know why your network provider is no working, try
adding some debug statement to see if startNetwork() is being called
ok. Other suggestion is to use getLastKnownLocation(String).

Regards

On Nov 22, 5:00 am, "Tommy Hartz"  wrote:
> Well I am not using them at the same time. Here is my process.
>
> 1) Start with GPS, set timer for 30 seconds. If GPS has not got a location
> in that time my timer goes off and stops the GPS. I then request the Passive
> provider. I allow again 30 seconds for that. If nothing happens in 30
> seconds the timer goes off, and starts my Network Provider.
>
> 2) Once the network provider gets called nothing happens it just sits there.
>
> 3) If I bypass the GPS and Passive the network provider works as it is
> suppose to.
>
> I am just trying to find out if I am doing something wrong or maybe there is
> a bug that screws the network provider up if the GPS provider has been
> requested and stopped before hand. Below is my original post with my code
> included:
>
> Hey,
>
> Right now when trying to get a user location I start with the GPS Provider.
> I have a timer set for 30 seconds, If a location is not found in 30 seconds
> the timer goes off and stops that location request. When that happens I move
> to the Passive Provider. After 30 seconds if a location is not found I stop
> the location request and move to the Network Provider.
>
> My issue is that when the network provider gets called it never does
> anything. If I start with the network provider it goes off just fine and
> returns a location back to me. Below is the code I am trying to use:
>
> gpsTimer.schedule(new TimerTask(){
>                   @Override
>                   public void run() {
>
>                         startPassive();
>
>                   }
>             }, 3);
>
>             currentTimer = "GPS";
>
> locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
> locationListener);
>
> private void startPassive(){
>
>             locationManager.removeUpdates(locationListener);
>
>             //Now we want to try for a Passive Fix
>             currentTimer = "Passive";
>             passiveTimer.schedule(new TimerTask(){
>
>                   @Override
>                   public void run() {
>                         startNetwork();
>                   }
>
>             }, 3);
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0,
> 0, locationListener);
>
> private void startNetwork(){
>             locationManager.removeUpdates(locationListener);
>             currentTimer = "Network";
>             Looper.prepare();
>             Looper.myLooper().quit();
>
> locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
> 0, locationListener);
>
> any help or suggestions would be greatly appreciated. Thank so much in
> advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android with radio wave

2011-11-21 Thread gjs
Hi,

Which radio ? Cell, Wifi, bluetooth, FM, NFC, Ant etc ?

Regards

On Nov 20, 9:08 am, boniyustin  wrote:
> Hi , I'm android developer,, very need help.
> anyone know how android receive radio wave..
> any idea for developer.?
>
> big thanks :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Testing App Battery Usage

2011-11-21 Thread gjs
Hi,

No I don't think so. You can run adb over tcp/ip wifi but that will
effect battery usage as well. Maybe just log to file on the device.

Regards

On Nov 18, 6:02 am, Ika Balzam  wrote:
> Hey Guys,
>
> We want to have a live debugger (mobile connected to the computer by
> usb) but we don't want the PC to charge the mobile so we will be able
> to see how our tests affect the battery.
>
> Is this possible?
> Running a debugger/logviewer on the device may cause a false report,
> so we want to use the PC, which should be a very low cost on the
> device.
>
> Thanks in advance,
> Ika

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Fw: Friends, I need help

2011-11-21 Thread gjs
Hi,

Looks ok, you need to wait a few minutes before the emulator starts,
also look in eclipse log for any errors.

Regards

On Nov 21, 9:53 pm,  wrote:
> Speak Lord, in peace?
> Friends, I need help, what version we are using Eclipse with Android?
>
> I'm new and I'm embarrassed about it: already installed the Android Eclipse 
> several times but can not run any application!
>
> When run command simply opens the Android emulator screen and displays a 
> message in the center of the screen 'ANDROID' and stands ...
>
> Already installed and uninstalled Eclipse several times, installed the 
> Android plugin online and offline ... and nothing ever the same behavior.
>
> I downloaded Eclipse Classic Indigo site:www.eclipse.org
>
> I downloaded the Android plugin 
> sites:https://dl-ssl.google.com/android/eclipse/http://dl.google.com/android/ADT-15.0.1.zip
>
> I downloaded the SDK 
> addresses:http://dl.google.com/android/android-sdk_r15-windows.ziphttp://dl.google.com/android/installer_r15-windows.exe
>
> I am using Windows XP, I thought to be the Android version, I downloaded all 
> ... and continue the mistake!
>
> Is it the version of Eclipse?
> Am I doing stupid things?
>
> thank you
>
> Francisco
>
> PS: Sorry for the bad English, I'm using a translator

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android SSLException - Google servers

2011-11-21 Thread gjs
Hi,

Did you change all url's from http: to https: ?

Also this might help - http://exampledepot.com/egs/javax.net.ssl/TrustAll.html

Regards

On Nov 18, 11:37 pm, Mike Mike  wrote:
> I need to develop an application that bring data from google.com/
> contacts. I have manage to do that in java  but in android I have
> some problems with ssl comunication. Caused by:
> javax.net.ssl.SSLException: Connection closed by peer) -  Android
> untrust my connection.
>
> I have used this exemple:  
> http://code.google.com/p/gdata-java-client/source/browse/trunk/java/s...
> - in java works fine but in android  it bring a SSLException.
>
> Also I've tried this 
> exemple:http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-...
> , but same problem with https request. What should I do?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: createRfcommSocket

2011-11-21 Thread gjs
Hi,

I find the Galaxy S2 quite problematic with bluetooth as well, often
needing to stop & start bluetooth in order to get it to device to
connect. I found it is more reliable using the undocumented method you
mentioned as well as using the insecure versions of the same method
calls and that this seems to work ok on all the devices I have tested
with - GS2, Nexus 1, Nexus S, Xperia Arc, LG 2x, HTC Evo 3D & Motorola
Xoom.

As far as what the diferences are it is best if you read through the
Android source code.

Regards

On Nov 18, 5:07 am, John  wrote:
> Our app uses a bluetooth connection and has been working fine for
> about a year. On a new Samsung G S2 phone we are seeing a problem
> connection the socket. The error is 'Service discovery failed'.
>
> Now we've seen this on HTC phones, and the solution was to include a
> call to createRfcommSocket, if the call to
> createRfcommSocketToServiceRecord failed. But the same code isn't
> working on this Samsung.
>
> So I am thinking that maybe by forcing the call to createRfcommSocket
> we can get this to work.
>
> However I cannot find any information about what createRfcommSocket is
> doing, differently than createRfcommSocketToServiceRecord. Is there
> any information on what that call does?
>
> Are there any other ideas on how to resolve this issue that doesn't
> include using an undocumented call?
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Please Help with GPS Provider Switch

2011-11-20 Thread gjs
Hi,

What's the problem if you start all 3 at once ? Then stop them once
they are not needed. I use GPS & NETWORK providers at the same time &
they work ok.

Regards

On Nov 21, 5:55 am, "Tommy Hartz"  wrote:
> The timer is there to only allow it to check for 30 seconds. Once the 30
> seconds are up if it hasn't got a location it cancels the GPS and tries the
> Passive, after 30 seconds it stops the passive and goes to network. The
> problem is once it gets to the network nothing happens.
>
> From: android-developers@googlegroups.com
> [mailto:android-developers@googlegroups.com] On Behalf Of Deepu George Jacob
> Sent: Saturday, November 19, 2011 11:07 AM
> To: android-developers@googlegroups.com
> Subject: Re: [android-developers] Re: Please Help with GPS Provider Switch
>
> GPS never use timer it will automatically update At first check your is
> GPS enabled..It also done by programatically ... To check the location
> changed by using location.getSpeed(); location.getLatitude() some thing like
> that
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Remove Log Statements

2011-11-17 Thread gjs
Hi,

If you are developing with Eclipse just do a global Search & press
Replace button, changing Log.X with // Log.X where X is your debug
level

Regards

On Nov 16, 10:07 pm, Android Developer 
wrote:
> Hi All,
>
> Any ideas,
>
> I dont have any luck to get this.
>
> Thanks
> Manikandan
>
> On Wed, Nov 16, 2011 at 1:54 PM, Android Developer
> wrote:
>
>
>
>
>
>
>
> > Hi All,
>
> > Im getting this exception.
>
> > Proguard returned with error code 1.
>
> > See console Unexpected error while performing partial evaluation:
> > Class = [org/restlet/engine/local/ZipClientHelper]
> > Method =
> > [handlePut(Lorg/restlet/Request;Lorg/restlet/Response;Ljava/io/File;Ljava/l 
> > ang/String;)V]
> > Exception = [java.lang.NullPointerException] (null)
> > java.lang.NullPointerException
>
> > I did all configurations.
>
> > Default.properties file
>
> > proguard.config=proguard.cfg
> > external.libs.dir=lib
>
> > proguard.cfg
>
> > -libraryjars /lib/
> > -dontwarn org.restlet.**
>
> > but i got the above exception
>
> > I did not use any ant build i am generate through eclipse.
>
> > Thanks
> > Mani.
>
> > On Wed, Nov 16, 2011 at 12:12 PM, Android Developer <
> > c2dmdevelo...@gmail.com> wrote:
>
> >> Hi All,
>
> >> Before pushing application to market we need to remove Log statements.
> >> if application contains more java files then its hard to remove one by
> >> one.
>
> >> is Proguard is the best solution for this scenario? if its that it
> >> giving some problem while optimizing external jar files especially
> >> restlet jar it throughs nullPointerException.
>
> >> How do i solve this?
>
> >> Thanks
> >> Mani.
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Problems when signing APKs with Java 7.

2011-11-17 Thread gjs
Hi,

Yes I can confirm the same problems happen with jarsigner & jdk 1.7
and Windows 7, must use jdk 1.6 or prior.

Regards

On Nov 17, 8:37 pm, Nikolay Elenkov  wrote:
> On Thu, Nov 17, 2011 at 5:37 PM, BoD  wrote:
> > Thanks for your answer.
> > I guess I was unlucky with my search terms because I did spent time a few
> > hours googleing but did not find anything. If you have the SO links I'd
> > appreciate it :)
>
> Here's one:
>
> http://stackoverflow.com/questions/8115111/transitioning-android-dev-...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Cheating the Rating, please google stop this.

2011-11-17 Thread gjs
Hi

I think you'll find it is an old business.

Regards

On Nov 17, 11:49 pm, sblantipodi  wrote:
> imho this could be a new business.
>
> On Nov 17, 8:56 am, Lew  wrote:
>
>
>
>
>
>
>
> > On Wednesday, November 16, 2011 11:39:56 AM UTC-8, sblantipodi wrote:
>
> > > Hi google,
> > > I received this email from a well known contact that I can give you
> > > via
> > > PVT if you are interested in it.
>
> > > ---
> > > Hi,
>
> > [snip]
>
> > > My team also am having a good command over
> > > english language..
>
> > [snip]
>
> > That was rich.
>
> > I'm not sure why you're upset over such an obvious spam.  Certainly I
> > wouldn't worry about it gaining any competitive edge; the whole piece was a
> > giant advertisement for why one should *not* use his services.
>
> > If you know this joker, it's more fun to give them advice than to report
> > them.  Tell him, for example, that before putting forward a claim of
> > "having a good command over english language" that one might wish to learn
> > English.
>
> > This guy you're worried about is more pathetic than dangerous.  Tell him so.
>
> > --
> > Lew

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: android 2.3 pauses my application

2011-11-15 Thread gjs
Hi,

Is TimerTask running from the Activity or an (Android) Service ?

Sound like you need to use a Service with a Wake Lock to keep cpu
running after you press Power button.

Regards

On Nov 15, 8:34 pm, kazuya  wrote:
> I have an application that takes pictures and upload them to server.
> Also I use TimerTask that sends these pictures to server.
> I follow these steps:
>
> 1. Take pictures
> 2. Click Home button and power
> 3. Wait for TimerTask to upload the picture
>
> This successfully runs on Motorola XT800 android 2.1. But when I
> install this in HTC A510e android 2.3, the application somehow paused.
> It resume after I turned it on using the power button.
> In cat log, I can also verify that in need there is a pause.
>
> What I want is to TimerTask(every 1 minute) to run always on both
> phones.
>
> Also I found this in the cat log:
> GC_CONCURRENT freed 434K, 52% free 3624K/7495K, external 0K/2028K,
> paused 10ms+25ms
>
> Please help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: boss is complaining

2011-11-14 Thread gjs
Hi,

Turn device on side - landscape.

Get a higher res device

pinch to zoom

What TreKing said

Regards

On Nov 15, 4:21 pm, Michael Leung  wrote:
> Are you writing an app or a webpage?
>
> On Tue, Nov 15, 2011 at 2:28 PM, Christopher Van Kirk <
>
>
>
>
>
>
>
>
>
> christopher.vank...@gmail.com> wrote:
> > So many snide and sarcastic responses spring to mind.
>
> > On 11/15/2011 11:59 AM, bob wrote:
>
> >> I'm converting an iphone retina app to Android, and my boss is
> >> complaining because the web pages are too big:
>
> >>http://i1190.photobucket.com/**albums/z449/m75214/ugh.jpg
>
> >> It's because Android has a lesser resolution.  Is there an easy way I
> >> can quiet my boss?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to 
> > android-developers@**googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+**unsubscr...@googlegroups.com > bscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/**group/android-developers?hl=en
>
> --
> Regards,
> Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 3.1 and USB to Serial

2011-11-14 Thread gjs
Hi,

Have a look at the adk.

http://developer.android.com/guide/topics/usb/adk.html

Regards

On Nov 14, 11:18 am, Erik  wrote:
> It's possible that I'm an idiot, but I can't seem to find a tutorial
> on USB communication that actually tells me something useful.
>
> Can someone kick my ass in the right direction?
>
> Does anyone know of the ability to use USB to serial adapters and talk
> to RS232 devices over the USB?
>
> Boss wants to use a Toshiba tablet running 3.1 to run a couple of bill
> validators that talk serially.
>
> TIA

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Hasmukh Gosai

2011-11-14 Thread gjs
You ask google

On Nov 15, 3:04 am, Bishesh Manandhar  wrote:
> HAHA, What kind of weird question is this.
>
>
>
>
>
>
>
> On Mon, Nov 14, 2011 at 7:50 AM, Jim Graham  wrote:
> > On Sat, Nov 12, 2011 at 05:17:22PM +0530, Hasmukh Gosai wrote:
> > > How to get list of all android users emails and mobile numbers ?
>
> > First, what makes you think you have any right to that information?
> > Answer:  You don't.
>
> > Second, you can't.  Good thing, too
>
> > Third, what does this have to do with Android apps development?
>
> > Later,
> >   --jim
>
> > --
> > THE SCORE:  ME:  2  CANCER:  0
> > 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> > spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
> >                   Saw something on TV about Psych-os.
> >             H, Psych OS.  Perhaps the next freeware OS   --me
>
> > Android Apps Listing athttp://www.jstrack.org/barcodes.html
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android Development Environment?

2011-11-14 Thread gjs
eclipse + mac

On Nov 15, 3:17 am, André Cipriani Bandarra 
wrote:
> +1 for Eclipse + Linux
>
> On Mon, Nov 14, 2011 at 2:11 PM, Latimerius wrote:
>
>
>
>
>
>
>
> > On Fri, Nov 11, 2011 at 10:56 PM, Jones  wrote:
> > > What development environments are most Android developers using
> > > (Eclipse, IntelliJ, etc)?
>
> > > What development platform is most prevalent (Windows, OSX, Linux)?
>
> > No idea as to what _most_ developers are doing but I use Eclipse/Linux.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Customize Android Source Code to run multiple Application on same Screen.

2011-11-11 Thread gjs
Hi,

In this thread the Op mentioned he had the hardware.
If the Op is something of a wizard he should be able to setup a
cluster of 2 or more complete android h/w & s/w instances, intercept
the video from each and output to a single screen eg using
http://www.slashgear.com/toshiba-6-inch-tablet-display-offers-498ppi-print-quality-20189556/
The Op would still need to deal with touchscreen input back to each
instance plus a bunch of other cross instance communications according
to how seamless such an implementation might need to be.
It would be an interesting project, better discussed in android-
platform.

Regards

On Nov 11, 7:18 pm, Dianne Hackborn  wrote:
> On Wed, Nov 9, 2011 at 10:12 AM, Pawan Singh Rathore <
>
> pawan.s.rath...@gmail.com> wrote:
> > Its my first task at source level.
>
> You are doomed.
>
> Seriously.
>
> This is not a first task kind of thing.
>
> It is not even a second task kind of thing.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Use the Gyroscope to improve the orientation

2011-11-11 Thread gjs
Hi,

hhenne - great insight & explanation thanks.

Regards

On Nov 12, 3:35 am, hhenne  wrote:
> Hi again,
>
> In my app, I am only interested in pitch and roll - not in yaw.
>
> The accelerometer can measure static pitch and roll (because of the
> gravity) - but not static yaw.
> Acceleration caused by movements are just unwanted noise in my app and
> is filtered away by a usual digital Lowpass filter.
>
> The Gyro cannot measure static pitch and roll and not static yaw
> either, It can only measure angular velocity - changes in pitch, roll
> and yaw.
> To convert angular velocity to angle, you have to use digital
> integration. But, because small errors would cause the computed angles
> to slowly drift away, you have to filter the slow variations away -
> that is done by a digital highpass filter. You can say that is
> actually to opposite working filters, but it is the correct way.
>
> And now the computed gyro signal cannot be used for detecting static
> pitch, roll and yaw because the static part is filtered away. But then
> it can be combined with the lowpass filtered accelerometer, simply
> adding the two signals, to get fast and correct detection of pitch and
> roll. That means if you make a sudden rotation of the device the
> signal should change from one level to the other with a small rise
> time and no overshoot. in signal terms the frequency response of the
> transfer function is linear from DC to around 5 hz.
>
> When you are interested in yaw, but not pitch and roll, you have to
> replace the accelerometer with the magnetic sensor. As mentioned by
> gjs, it cannot help you overcome magnetic interference. But it should
> be possible to get a much smoother and faster response by using
> magnetic sensor and gyro in combination than by using the magnetic
> sensor alone.
>
> I have spend a lot of time on Kalmann filters, whithout producing
> results worth the efforts. What you see in my keyboard app is the
> first shot of the 'complementary filter design' sketched above - and
> it only took me a few hours to implement. All right  - it is not
> perfect yet - for instance I need to take into account the variations
> in sample frequencies among the different sensors and also from device
> to device and from time to time. Never the less it was a great
> improvement from using the accelerometer alone. The same app runs on
> devices, only having an accelerometer. So if you have got two devices,
> and only one of them has a gyro, you can see and feel the
> difference.
>
> Hardy Henneberghttp://www.maxikeys.com
>
> On Nov 11, 3:30 am, gjs  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am only suggesting you use integration ( sum & 'average' last N
> > measurement over some short period of time ) for the compass/azimuth -
> > however you decide to get that data - just to smooth the data, so
> > these filtered reading don't jump around so much (this has got little
> > or nothing to do with accuracy of the sensors).
>
> > Then you might use the gyroscope &/or acceleration to detect relative
> > movement of the device, is it currently still or moving, to alter the
> > integration you are doing with the compass/azimuth, eg to reset or
> > change value of N mentioned. Kalman Filters are often mentioned here
> > as a solutionhttp://en.wikipedia.org/wiki/Kalman_filter
>
> > If you want high accuracy you will probably need to use external high
> > accuracy IMU / compass sensor devices. Even then you won't necessarily
> > get around external magnetic interference.
>
> > Regards
>
> > On Nov 10, 10:17 pm, Ferro Francesco 
> > wrote:
>
> > > I know what is an integration and How to do it. What I don't know it's 
> > > what
> > > do I do with the result? How can i combine is with the compass value ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: detecting QRcodes in an image

2011-11-10 Thread gjs
Hi,

Have a look in the Zxing code, or ask in the Zxing group.

regards

On Nov 11, 1:36 pm, Melaka Atalugamage  wrote:
> The main objective is not to read the QRcode values, but to detect multiple
> QRcodes on the screen. if you have anything to help me out it would be
> great.
>
> thanks in advance.
>
> On 11 November 2011 08:02, Zsolt Vasvari  wrote:
>
>
>
>
>
>
>
>
>
> > Yes, there must be a way, since Google Goggles does it.
>
> > On Nov 11, 10:23 am, Melaka Atalugamage  wrote:
> > > Hello friends,
>
> > > Is there a way to detect QR(quick response) codes in a bitmap with any
> > > technique(template matching, pattern matching, etc..).
> > > There can be multiple QRcodes in a bitmap.
>
> > > --
>
> > > *Kind Regards
> > > *
>
> > > *Melaka Atalugamage*
>
> > > Freelance Software Developer/Photographer(find me on
> > > deviantArt
> > > )
>
> > > (email: melak...@gmail.com)*
> > > *
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
>
> *Kind Regards
> *
>
> *Melaka Atalugamage*
>
> Freelance Software Developer/Photographer(find me on
> deviantArt
> )
>
> (email: melak...@gmail.com)*
> *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


<    1   2   3   4   5   6   7   >