[android-developers] Rear camera on my Samsung Tab 3 shows a white screen

2014-03-06 Thread James Black
Hello,
  I have been fighting with this for 3 days, and on my SurfaceView I am
getting a white screen from my rear camera, but the regular camera
application works fine.

  But, the front-face camera shows an image, so the SurfaceView appears to
be correct.

  I have tried this application: https://github.com/commonsguy/cwac-camera

  And I get the same results, which is why I finally decided to write.

  I also tried this fragment:
http://www.vogella.com/code/de.vogella.android.gallery/src/com/example/android/hcgallery/CameraFragment.html

  I am not certain how to troubleshoot this since it appears to be a
problem with my rear camera, but the camera does work with the camera
application.

  I also get Error 1001 which may be answered with
http://stackoverflow.com/questions/14493593/android-camera-error-1001-what-the-heck-is-that

  I extended SurfaceView instead of ViewGroup but no improvement.

Thank you for any help.
-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: example source code or tutorial on using fragments and OpenGL ES 2.0

2013-08-04 Thread James Black
Basically, my program has some similarity, in use, as a graphing
calculator, but, the equation may be planetary orbits, and the user may
want to rotate the solar system to see how the planetary orbits change.
 That is why I am looking at OpenGL, rather than canvas.

The user will be able to make changes to equations, then I show them the
effects graphically.

But, not being able to have more than one SurfaceView means that using
Fragments won't work anyway. :(

Thank you.


On Sun, Aug 4, 2013 at 3:13 PM, Nobu Games dev.nobu.ga...@gmail.com wrote:

 Hi James,

 as far as I know it's not (reliably) possible to have more than one
 SurfaceViewhttps://groups.google.com/forum/#!msg/android-developers/fQihJKLki7M/nz4QWV8eyxQJ(or
  GLSurfaceView) in one Activity at the same time. Since it sounds like
 you just want to draw graphs, it would be probably better to resort to a
 custom view component and drawing on a Canvas.

 If you fancy OpenGL ES rendering capabilities then you should just have a
 single GLSurfaceView and implement swiping / paging yourself by capturing
 touch events and drawing the OpenGL ES scene accordingly.




 On Saturday, August 3, 2013 10:00:32 PM UTC-5, James Black wrote:

 Hello,
   I want to start on a program using OpenGL ES but I want to use
 fragments, as it will be simpler, I think, to show equations in one
 fragment and the graph in another fragment.  The equations and the graphing
 will be separate instances of using GLSurfaceView.

   As I write this I almost wonder if I should use a HUD, as explained
 phere: http://stackoverflow.**com/questions/8842173/android-**
 image-over-opengl-es-game-hudhttp://stackoverflow.com/questions/8842173/android-image-over-opengl-es-game-hud

   But for equations that people can modify I don't know if that is the
 best option.

 http://stackoverflow.com/**questions/1629775/tutorials-**
 and-libraries-for-opengl-es-**games-on-androidhttp://stackoverflow.com/questions/1629775/tutorials-and-libraries-for-opengl-es-games-on-android

 Thank you.

 --
 Resume  Projects: 
 http://careers.stackoverflow.**com/jamesblackhttp://careers.stackoverflow.com/jamesblack

 I know that you believe you understand what you think I said, but I'm
 not sure you realize that what you heard is not what I meant.
 - Robert McCloskey

  --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] example source code or tutorial on using fragments and OpenGL ES 2.0

2013-08-03 Thread James Black
Hello,
  I want to start on a program using OpenGL ES but I want to use fragments,
as it will be simpler, I think, to show equations in one fragment and the
graph in another fragment.  The equations and the graphing will be separate
instances of using GLSurfaceView.

  As I write this I almost wonder if I should use a HUD, as explained
phere:
http://stackoverflow.com/questions/8842173/android-image-over-opengl-es-game-hud

  But for equations that people can modify I don't know if that is the best
option.

http://stackoverflow.com/questions/1629775/tutorials-and-libraries-for-opengl-es-games-on-android

Thank you.

-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Android-Arduino Uno

2013-02-21 Thread James Black
I haven't tried it but there is an arduino that integrates with Android, or
use a Wi-Fi shield to communicate.

On Feb 21, 2013 4:05 AM, acolytesumatra acolytesuma...@gmail.com wrote:

 hi,
 I'm currently developing a robotic spider which can be controlled by an
android devices. My question is Is it possible to communicate with Arduino
Uno even if my device doesn't support USB host?
 Can you help, I really need it now.
 Please!

 --
 --
 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 unsubscribe from this group and stop receiving emails from it, send an
email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Convert a view (layout) to a Bitmap

2012-11-20 Thread James Black
People deserve respect when not being nice, but if you want to attack Guy I
would suggest you watch him on YouTube and as mentioned, Google him.

He helps answer questions to share from his depth of knowledge, so if you
factually disagree be to the point and show where he erred, without the
attacks.
On Nov 17, 2012 3:19 PM, Justin Buser justin.bu...@gmail.com wrote:

 I don't understand why I keep finding different posts by you
 about forcing  layout passes.  The View instance this person is referring
 would never go through a layout pass, regardless of the point at which his
 code was executed for several reasons, most notably because it's never even
 added to the display list. Additionally, even if it *was* added to the
 Window correctly, calling layout() would not force the layout, you would
 call forceLayout() for that but even that would be pointless because the
 View doesn't have a layout assigned to it or even have anything to layout
 in the first place.

 The truly aggravating thing however is the fact that neither the question
 itself, nor the *actual* answer ever have anything to do with forcing
 layouts. Do you understand that when other people come across
 invalid/irrelevant information like this and believe it (if not because you
 claim to be a developer then simply because they don't know any better)
 then it's no longer a forgivable case of simply being wrong about
 something. At that point you are responsible for every adverse reaction
 your bad information results in. Every application crash/exception
 thrown/hour lost/dead kitten/etc... that occurs when someone tries your
 solution and it doesn't work is on your head.

 As a human being you should feel morally obligated to not present anything
 as fact unless you are 100% confident that it is indeed so. At the very
 least you should have first hand experience as it pertains to the
 information you are providing and if not then test / verify it before hand.
 Although each individual  failure in this may seem relatively
 insignificant, the aggregate result will ultimately have a negative impact
 on our evolutionary progress as a species. As far fetched as you may find
 this to be the vast multitude of problems that threaten our very existence
 are at some level caused by ignorance, as such it should not be taken
 lightly at *any* level.

 On Monday, November 17, 2008 11:20:41 AM UTC-5, Romain Guy wrote:

 Hi,

 If you do this in onCreate(), then the View didn't go through a layout
 pass yet, so its size is null (0 by 0 pixels.) You need to either wait
 for the first layout, or force the layout by calling layout() on the
 View.

 On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes jbee...@gmail.com wrote:
 
  Hello everybody.
 
  I am working with OpenGL and Android, and I was wondering if there is
  any way to create a Bitmap or a Drawable using a view (layout). The
  purpose is to use this Bitmap as Texture for an OpenGL figure.
 
  All I have untill now is:
 
  ** I create a new view from the context and the Id.
 
  View l = new View(context);
 
  l.findViewById(R.layout.main);
 
  ** I used DrawingCache...but dont know if it is well used:
 
  l.setDrawingCacheEnabled(true)**;
 
  Bitmap bmp = l.getDrawingCache();
 
  this bmp is null...
 
 
  Any idea?
 
  Thanks
  
 



 --
 Romain Guy
 www.curious-creature.org

  --
 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] using camera in support fragments, but it isn't being released

2012-09-12 Thread James Black
I have a fragment that initially opens a camera.
Then, when the user goes to look at the preview, that is in a new fragment,
so I pass the camera from MainFragment to PreviewFragment.
PreviewFragment then makes a callback, passing back the camera, to the main
activity when the user selects to take a picture.
That activity then gets MainFragment, sets the camera in MainFragment, and
a boolean to tell it to take the picture, and replaces the PreviewFragment
with MainFragment
In onResume, in MainFragment, it sees the boolean set and takes the picture.

I am trying to get this to work properly, but it seems to be very
convoluted, and, if you go into PreviewFragment, then hit home, the camera
hasn't been released, since I can't free the camera in the onPause method,
as I need it, it appears, in order for the picture to be taken.

So, what is the best way to use fragments to preview and take pictures.

I don't want to have the same fragment do both, as the MainFragment will
allow face recognition and marking the faces found, and putting the
SurfaceView over the other elements on MainFragment was problematic.

If looking at the code that goes through these will help please let me
know, but it may just make it more confusing.

Thank you.

-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] How to add a custom surfaceview to a fragment

2012-08-27 Thread James Black
When a user clicks on a button I want to show a custom surfaceview in my
fragment, as they preview the camera, but in `onCreateView` I don't see how
to add content to the view.

I want to be able to add/remove the surfaceview, or to somehow hide it when
it is not being previewed, without loading a new fragment.

-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: Error when compiling Android project with Eclipse

2012-08-15 Thread James Black
You may want to look at this:
http://stackoverflow.com/questions/1113088/install-failed-missing-shared-library-error-in-android


Does this apply to you:
To get past INSTALL_FAILED_MISSING_SHARED_LIBRARY error with Google Maps
for Android:

The first answer explains how to get past this error.

On Wed, Aug 15, 2012 at 5:19 PM, bob b...@coolfone.comze.com wrote:

 Check to make sure that you run on a google api emulator

 On Wednesday, August 15, 2012 3:23:31 PM UTC-5, Dan Uff wrote:

 Hi all,
 I'm getting the below error when I compile and try to run my project in
 the simulator:

 [2012-08-15 16:08:31 - LANTA] Installation error:
 INSTALL_FAILED_MISSING_SHARED_**LIBRARY

 [2012-08-15 16:08:31 - LANTA] Please check logcat output for more details.

 [2012-08-15 16:08:31 - LANTA] Launch canceled!

 Can someone tell me what these errors are and how to fix them?

 Thanks,
 Dan Uff

  --
 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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Canvas or OpenGL

2012-08-12 Thread James Black
I did it with DirectX 3D and my application took over the cpu while it was
running, so I was able to easily meet the requirements, but on the Android
an application can't hog the device as I had.  My video refresh rate was
just 30 fps, but looping through the audio part had to be much faster.

On Sat, Aug 11, 2012 at 8:28 PM, bob b...@coolfone.comze.com wrote:



 On Saturday, August 11, 2012 4:50:21 PM UTC-5, James Black wrote:

 Without more detail of what you want to do an answer is difficult.

 Do you need a fast refresh rate for example?  One music program I wrote
 had to turn notes on and off at the correct millisecond, under windows;
 that accuracy won't work on mobile devices.

 Millisecond accuracy won't work on Windows either due to the refresh rate
 of the display.


 If you just want to show notes either will work.

 Do you need a 3d canvas to show notes?  Then opengl is better.
 On Aug 11, 2012 2:51 PM, Simon Giddings mr.s.g...@gmail.com wrote:

 I am going to start the development of a Music document app.
 In the past, when I developed under widows, I used world coordinates and
 screen coordinates to provide scaling/zooming.

 I am unclear as to weather I should go to OpenGL under Android, or if I
 could still use Canvas.

 Can anyone advise me 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-d...@**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=enhttp://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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Canvas or OpenGL

2012-08-11 Thread James Black
Without more detail of what you want to do an answer is difficult.

Do you need a fast refresh rate for example?  One music program I wrote had
to turn notes on and off at the correct millisecond, under windows; that
accuracy won't work on mobile devices.

If you just want to show notes either will work.

Do you need a 3d canvas to show notes?  Then opengl is better.
On Aug 11, 2012 2:51 PM, Simon Giddings mr.s.giddi...@gmail.com wrote:

 I am going to start the development of a Music document app.
 In the past, when I developed under widows, I used world coordinates and
 screen coordinates to provide scaling/zooming.

 I am unclear as to weather I should go to OpenGL under Android, or if I
 could still use Canvas.

 Can anyone advise me 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

-- 
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] ReverseGeocoding NullPointerException

2012-08-08 Thread James Black
It takes time for a location to be available.

But it looks like you are just looking for the last known location which
can be null.

How are you waiting for location updates?
On Aug 8, 2012 8:13 AM, Ece Osmanağaoğlu ece.osmanagao...@gmail.com
wrote:

 I wanna get current location.
 There is null pointer exception in ListAddress

 locMan = (LocationManager)
 this.getSystemService(Context.LOCATION_SERVICE);
 gpsProv = LocationManager.GPS_PROVIDER;
 locMan.requestLocationUpdates(**LocationManager.GPS_PROVIDER,
 1000, 250, Kampusler.this);
 myGeo = new Geocoder(Kampusler.this, Locale.getDefault());

 loc = locMan.getLastKnownLocation(**gpsProv);
 try
 {
 ListAddress adres = myGeo.getFromLocation(loc.**getLatitude(),
 loc.getLongitude(), 1);
 if(adres != null)
 {
 for(int i=0; i  adres.get(0).**getMaxAddressLineIndex();
 i++)
 {
 result += adres.get(0).getAddressLine(i) + \n;
 }
 }
 else
 {
 Toast.makeText(Kampusler.this, Don't get address...,
 Toast.LENGTH_LONG).show();
 }
 }
 catch (Exception e)
 {
 e.printStackTrace();
 Toast.makeText(**getApplicationContext(), e.getMessage(),
 Toast.LENGTH_SHORT).show();
 }

 --
 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

Re: [android-developers] Mecca direction app

2012-08-06 Thread James Black
The easiest way may be to get the current GPS coordinates of the phone and
know it for Mecca.

Then, Google for simple compass sensormanager  on android-er.blog spot (I
am on my phone so cut/paste would be a pain) and you should be able to help
the user point correctly.
On Aug 6, 2012 8:41 AM, Talha Qamar talha.kicsi...@gmail.com wrote:

 Hi i wanna make a Kibla(Qibla or Mecca the holy city) direction app for
 android.If any one have some knowledge about this.Please do share with
 me(Tutorials,Links and code).
 Regards,
 Talha Qamar.

 --
 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

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread James Black
To do this you would need to write your own mail client.  One advantage is
that you can store emails encrypted to limit risks, and then you can wipe.
On Aug 2, 2012 10:22 AM, The Simple mail2bhra...@gmail.com wrote:

 I am developing an application which will remotely wipe all corporate
 mail send to the employee ,when the employee leave the organization.I
 googled for a day but did not find any suitable solution for wipe email. So
 please give me some idea to wipe the email remotely using SMS.

 During my search I come across so many apps is doing the email wipe
 remotely. How they do it…?
 Note: company employee have permission to use any mail client.



 --
 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

Re: [android-developers] Remotely wipe mail in android.

2012-08-04 Thread James Black
So write your own server to interface with the mail server, which could be
behind a firewall, then this app is what can be used.

Basically, if pop/imap is used then the OP is out of luck, but, if other
approaches are allowed the problem can be solved
On Aug 4, 2012 10:21 PM, Kristopher Micinski krismicin...@gmail.com
wrote:

 But if your organization uses the traditional pop/smtp infrastructure then
 you can't stop the employee from just using another mail client...
 On Aug 4, 2012 9:11 PM, James Black planiturth...@gmail.com wrote:

 To do this you would need to write your own mail client.  One advantage
 is that you can store emails encrypted to limit risks, and then you can
 wipe.
 On Aug 2, 2012 10:22 AM, The Simple mail2bhra...@gmail.com wrote:

 I am developing an application which will remotely wipe all corporate
 mail send to the employee ,when the employee leave the organization.I
 googled for a day but did not find any suitable solution for wipe email. So
 please give me some idea to wipe the email remotely using SMS.

 During my search I come across so many apps is doing the email wipe
 remotely. How they do it…?
 Note: company employee have permission to use any mail client.



 --
 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

Re: [android-developers] function for blending two colors?

2012-07-24 Thread James Black
How do you want the blend to work?
On Jul 24, 2012 3:38 PM, bob b...@coolfone.comze.com wrote:

 Is there an Android function for blending two colors?


 It would look like this:


 Color blend(Color color1, Color color2, float frac);


  --
 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

Re: [android-developers] Best Pratice

2012-07-23 Thread James Black
You may want to look at the different types of apps, for example remote
service, content provider and actuvity-based and others and you may see
that dao works best with content providers and mvc with activities.

These devices have less power and ram, so don't make it too complicated
just to force some architecture on it.
On Jul 23, 2012 3:55 AM, Re JMD rjmdf...@gmail.com wrote:

 Guys,

 What best pratice for developer android app? I don't say about kind app,
 but about kind architetural of app, as MVC, DAO, developer process,
 organization of class of model, business or persistence. How is the
 integration with the best pratice on Java?

 Tank 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

-- 
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: How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread James Black
You can also allow them to export and import the data, to move from the
free to paid version.
On Jun 30, 2012 12:03 PM, Mystique joven.ch...@gmail.com wrote:

 Hi, yes I will consider in app purchase if that is the only option.

 So am I right to say some free and paid app actually release 2 versions
 which Google play see it as separate app and each app have their own data
 directory?

 On Saturday, 30 June 2012 23:34:56 UTC+8, RichardC wrote:

 Have you considered using in-app-purchasing to turn off the ads and
 unlock the extra features?



 On Saturday, June 30, 2012 10:01:11 AM UTC+1, Mystique wrote:

 Hi,

 I have a Ads supported app and I am planning to release a paid version
 without Ads and extra features.

 My questions are how do I release the app so my user can purchase and
 use with losing the preferences and db?
 Can I package it with the same name and upload into Google Play as new
 app or how is it been normally done?

 Cheers.

  --
 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

Re: [android-developers] Re: How to: Free to Paid App and retain preference and db files?

2012-06-30 Thread James Black
I went with import/export in both versions, but the paid version allows you
to email the export file also, for example.

On Sat, Jun 30, 2012 at 12:41 PM, TreKing treking...@gmail.com wrote:

 On Sat, Jun 30, 2012 at 11:19 AM, Mystique joven.ch...@gmail.com wrote:

 Right, I have import/export features but only available in the plan paid
 version :) that's why.


 So add the export part to the free version as well ...


 -
 TreKing http://sites.google.com/site/rezmobileapps/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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: Purchase App Source Code

2012-06-29 Thread James Black
Unless it copied a better known drawing application.
On Jun 29, 2012 6:25 PM, Mitchell mitchell.raf...@gmail.com wrote:

 Obviously a drawing app should not have any problems.

 On Jun 29, 5:37 pm, Uwe Maurer uwe.mau...@gmail.com wrote:
  What kind of app was it ?
 
 
 
  On Friday, June 29, 2012 12:07:13 AM UTC+2, Mitchell wrote:
 
   Hi,
 
   I purchased app source code from a developer changed a phew things and
   published my app. 5 days later my account got suspended. The email
 stated
   previous account violations. I'm thinking this dev may have been
 suspended
   previously. Can anyone give some insight on what could have happened?
 
   Best Regards
 
   Mitchell

 --
 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

Re: [android-developers] Bluetooth error on socket call

2012-06-16 Thread James Black
How do you set btDevice?
On Jun 15, 2012 7:04 PM, mike digioia mpd...@gmail.com wrote:

 Bluetooth error on socket call-

 Anyone know what the issues are with my Samsung Nexus S device when I get
 this error in my native code call to the socket LIB --  code starts here:

 btface = -1;
 btDevice = NULL;
 btsock = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);

 if ( btsock  0 ) {
 btDevice=NULL;
 #ifdef DEBUG
 ccnd_msg(h, ccnd_run: btDevice is NULL\n);
 #endif
 __code end

 __Debug Message

 I/CCND(  709): 1339785624.784335 ccnd[709]: ccnd_run: btDevice is NULL

 I can use the example BT chat application fine on this phone with
 discovery. So the BT device is working fine. Something with the socket call
 or libbluetooth.so (copied from the phone) I am using.

 /mpd

 --
 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

Re: [android-developers] Send Json array object to WCF Service

2012-06-06 Thread James Black
I just put my objects into a List and then called toJson on that.

My model has @SerializedName for each attribute.

You may want to give it a shot and see where you get stuck.
On Jun 6, 2012 9:02 AM, Heladio Benicio benicio.hela...@gmail.com wrote:

 Hello all,

 Someone will can to post a sample code to convert list of objects to
 json (using Gson) and sending this json to WCF Rest WebService.


 Thank you all!

 --
 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

Re: [android-developers] Re: Invoking a web service created in java

2012-06-02 Thread James Black
If you look at this link:
http://stackoverflow.com/questions/5321906/how-to-find-the-jar-of-java-rmi-package

you will see that this problem is difficult to resolve, but there are some
suggestions that may help you.

The problem is that there is a missing class that java on the desktop has,
which is why you get the error on the android.

You may want to try using ksoap ( http://code.google.com/p/ksoap2-android/ )
instead of axis, and your problem may go away.

On Fri, Jun 1, 2012 at 11:51 PM, Bunty gautam.i...@gmail.com wrote:

 No. I have got Axis.jar in my android project build path. the same
 thing when i do in java project, it works excellently. But in android
 project it does not.

 Compilation error:

 The type java.rmi.RemoteException cannot be resolved. It is indirectly
 referenced from required .class files

 and many more..seems like its not supported in android project.

 Please help me with possible ways.

 On Jun 2, 8:44 am, James Black planiturth...@gmail.com wrote:
  What kind of errors are you getting?
 
  It may be that you are missing a library, perhaps.
 
 
 
 
 
 
 
 
 
  On Fri, Jun 1, 2012 at 11:27 PM, Bunty gautam.i...@gmail.com wrote:
   Hi all,
 
   I need to invoke a web service from android app. I have the wsdl file
   of a web service created in java, i don't have the source code of the
   same.
 
   In java, i use the Generate Client option to generate the files from
   a wsdl and then invoke the web service via my java app using Axis.jar.
 
   When i click the Generate Client option the files are generated
   along with some compilation errors. But the same thing when i am doing
   in an java app, the generated files does not have any compilation
   errors.
 
   Please inform the proper way of doing the same from the android
   prospective.
 
   Regatds,
   Bunty
 
   --
   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
 
  --
  Resume  Projects:http://careers.stackoverflow.com/jamesblack
 
  I know that you believe you understand what you think I said, but I'm
 not
  sure you realize that what you heard is not what I meant.
  - Robert McCloskey

 --
 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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Adding markers with different drawables on google map in android

2012-06-01 Thread James Black
Do you use modified latitude and longitude coordinates?

Can you give an example of what points you are plotting to?
 On Jun 1, 2012 3:37 PM, mehedi hasan khan mehedi.mail...@gmail.com
wrote:

 I've zoomed it manually and searched for the pins.still can't see any
 other pin than the source and the last added one.Zoomed the map as far as
 the zoom controlls allow.I'll recheck if the points are accurate.

 On Sat, Jun 2, 2012 at 12:13 AM, TreKing treking...@gmail.com wrote:

 On Fri, Jun 1, 2012 at 12:26 PM, mehedi hasan khan 
 mehedi.mail...@gmail.com wrote:

 will u plz explain?


 You know the word is spelled please, right? The 'z' doesn't even make
 sense ... :-)
 Sorry, pet peeve ... anyway ...


  I've used
 mapView.getController().zoomToSpan(sourcemarker.getLatSpanE6(),
 sourcemarker.getLonSpanE6());  won't that do the zooming?


 I mean literally, physically zoom the map out yourself, with your finger,
 using the zoom controls on the map. Go looking for your markers to make
 sure they didn't up in Zimbabwe or something. When I started with adding a
 map to my app, I was trying to plot a bus stop in downtown Chicago but
 ended up placing it in the middle of the Atlantic Ocean. It happens - all
 it takes is one wrong digit ...



 -
 TreKing http://sites.google.com/site/rezmobileapps/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




 --
 *Mehedi*
 CSE'07,BUET
 মহাবিশ্বের কোন কোণে,ইতিহাসের কোন ক্ষণে, আমিও ছিলাম...
 আমায় যেন পড়ে মনে,সে প্রয়াসে সঙ্গোপনে,পদচিহ্ন রেখে যেতে আমিও চেয়েছিলাম।।

  --
 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

Re: [android-developers] Invoking a web service created in java

2012-06-01 Thread James Black
What kind of errors are you getting?

It may be that you are missing a library, perhaps.

On Fri, Jun 1, 2012 at 11:27 PM, Bunty gautam.i...@gmail.com wrote:

 Hi all,

 I need to invoke a web service from android app. I have the wsdl file
 of a web service created in java, i don't have the source code of the
 same.

 In java, i use the Generate Client option to generate the files from
 a wsdl and then invoke the web service via my java app using Axis.jar.

 When i click the Generate Client option the files are generated
 along with some compilation errors. But the same thing when i am doing
 in an java app, the generated files does not have any compilation
 errors.

 Please inform the proper way of doing the same from the android
 prospective.

 Regatds,
 Bunty

 --
 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




-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] technical solution to develop an App in Android

2012-05-30 Thread James Black
You may want to find someone to pay to give the solution, as this list has
helpful people on it, but we are not here to do your work for you.

If you need some advice that is one thing, but solving this is a bit much.
On May 30, 2012 5:37 AM, Ramya Vegesna ramyavegesna...@gmail.com wrote:

 hi
 Good Day !

 I request a kind support from the group. I am unable to develop the
 below requirement, can anyone post the solution:

 Requirement flow:

 i want to  receive xml data through web service and want to display in
 android and it should update every time.

 Can you please provide me a technical solution on how to develop this.

 Thanks  Regards,
 Ramya.

 --
 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

Re: [android-developers] Connecting to USB-Serial Converter in Android

2012-05-30 Thread James Black
This list is for SDK questions.  You may want to find a list for hardware.
On May 30, 2012 5:37 AM, Hans Paul hans.p...@aigens.com wrote:

 I am attempting to connect to a serial device from a Android tablet, via
 USB-Serial Converter. In order to interface with this particular serial
 device, a linux library must be used as an interface.
 This library takes an integer as an argument, and tries to connect to the
 device at the following location : /dev/ttySx, where x is the arguement. If
 2 is provided to the library, it will look for the device at /dev/ttyS2.
 Very simple.

 When I connect the device to Ubuntu, there's is one simple extra step for
 this device to work with the USB-Serial convert. The converter is exposed
 at the location /dev/ttyUSB1. I just need to create a simple soft-link with
 the serial port pattern (etc ln -s /dev/ttyUSV1 /dev/ttyS99). It works
 perfectly.

 Now the problem arises for Android. The converter is seen at
 /dev/bus/usb/01/01. I never seen this convention in other project. The
 question is how can I direct the I/O from /dev/ttySX to /dev/bus/usb/01/01




  --
 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

Re: [android-developers] Confirmation when mail has been sent

2012-05-30 Thread James Black
What I settled on it to store the file information in a list, and in on
destroy I delete them.
On May 30, 2012 7:24 AM, IronBlossom i4idrh...@gmail.com wrote:

 Same issue , just the difference is intent type,
 (intent.setType(application/*), because im sending email with attachments
 (pdf or zip). But my problem is with the attachment.The Intent.EXTRA_STREAM
 read from sdcard but after sending the mail i want to delete it from
 sdcard. So i used startActivityForResult and onActivityResult i delete that
 file from sdcard. Everything works well except the received mail has no
 attachment(not even the file name with 0 size). Think the sending process
 done by some other thread rather than a UI thread. and the deletion task is
 done from the UI thread even before the sending process is complete.

 On Wednesday, September 29, 2010 5:07:07 PM UTC+6, Mark Murphy wrote:

 On Wed, Sep 29, 2010 at 7:02 AM, Amit amitmishr...@gmail.com wrote:
  When the user has actually send the mail, I want to know whether the
  mail has been sent or not?

 Sorry, but that is not part of the ACTION_SEND system, as far as I know.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in London: 
 http://skillsmatter.com/go/os-**mobile-serverhttp://skillsmatter.com/go/os-mobile-server

  --
 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

Re: [android-developers] Re: New TAX arrangements?

2012-05-30 Thread James Black
This sounds like a problem in need of a software solution.

It should be easy enough to have something that will pull down your info
and tell you how .much goes where.
On May 30, 2012 2:25 PM, Streets Of Boston flyingdutc...@gmail.com
wrote:

 My understanding is that Google is not your dealer. It is your agent and
 payment processor. It's a market not a store. You were and will be
 responsible for paying taxes, before this change to Google Play and after
 this change to Google Play. Nothing changed here.

 E.g. I'm from Massachusetts and I have to collect taxes from customers
 from MA. I then have to pay that taxes to the government. It is my
 responsibility. I can get a sales report from Google and figure out what
 sales taxes i have to submit to the state and what income taxes to submit
 to the federal and state government. Google does not pay the taxes for me.

 You are selling stuff. It is a business and it comes with business
 processes such as paying income and sales taxes.

 On Wednesday, May 30, 2012 1:50:31 PM UTC-4, Terry wrote:



 On 30 Mai, 19:09, Streets Of Boston flyingdutc...@gmail.com wrote:
  Generally, yes. If you sell stuff you need to pay taxes (sales
 taxes/VAT)
  on it.

 Yes. But until recently, when goods were sold from one country to
 another, there was no VAT.
 Is that no longer true?

 If not, shall every Android developer keep track of which country
 requires VAT to be included - and which country does not - when goods
 are being sold from another/particular country?

  But If you are not selling more than a certain dollar (or other
 currency)
  amount to users in a given country, don't expect a taxman to bang on
 your
  door trying to collect from you.Only after a certain threshold you are
  required to pay taxes.
 
 WHO is goind to keep track of such tresholds? Each developer?

 I thought that it was the DEALER (i.e. Google) who should be
 responsible for collecting/paying taxes, and not each contributor/
 developer?

 This may be the end of the Google Play Store.

  --
 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

Re: [android-developers] Questions on Digital Signing and Verification

2012-05-30 Thread James Black
I haven't dealt with this yet, but my expectation is to generate a
certificate on the server and then that should be used on iOS and Android.

I have no experience with it, but look at chilkatsoft.com, bit it will cost.

Also, you can look at the source for how the key is packaged and port it to
iOS.
On May 30, 2012 9:00 PM, Qin Ding qindi...@gmail.com wrote:

 I have an application that requires digital signing plain text messages on
 the client (Android and IOS) and the signature verification is performed on
 J2EE server.
 For example, on Android, when the application is registered with my app,
 it generates a keypair on device. The private key is stored on device and
 publicKey is sent to server for future use. The private key is protected by
 a secret key only known to the user.  When the server sends the message for
 the client to sign, the private key is retrieved and the message is signed
 using the private key.  The result signature is sent to the server, which
 retrieves the user's publicKey and use it to verify the signature.  It
 works very well.

 Now we have IOS customers.  When the publicKey and signature are generated
 on IOS device, I tried to send the IOS publicKey and signature as byte[] in
 a hope that I can reconstruct the publicKey from byte[] at the J2EE server.
  It failed to rebuild the publicKey using X509PublicKeySpec.  How should I
 handle this using the publicKey and signature from non-java source.

 I wonder if someone has the experience in verify digital signature using
 the publicKey and signature from IOS or RIM.  Thank you in advance for any
 pointers and ideas.

 QD

 --
 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

Re: [android-developers] Which is better, one trigger receiver and multiple services -- or -- one trigger receiver per service.

2012-05-25 Thread James Black
Are these running in the same process as the main activity or remotely?

But, it seems that you are asking if you should have five separate services
and simpler logic or slightly more complex in one.

Unless sufficiently complex I would go with one service and see later if
more are needed.
On May 25, 2012 1:15 AM, Put_tiMe putt...@gmail.com wrote:

 I have a situation where in I need to have 5 or more services running in
 the same package.
 Let's call it service A, B, C, D and E

 Which is a better way of doing this? Better in terms of memory and CPU
 usage (and hence battery usage and efficiency).

 1. Have 1 main service running, apart from the 5 mentioned above.
 Have only one trigger receiver and a the main service is linked with
 this trigger receiver.
 This will listen to all intents that are required.
 When an intent goes off, then we check if A needs this intent. If it
 needs, then we call startService(A, intent);
 Same with the other 4 services.

 2. Have 1 trigger receiver linked with each of the 5 services.
 Handle intents 1 on 1 basis.


  --
 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

Re: [android-developers] About DataBase

2012-05-25 Thread James Black
Or store the initial data in a resource file, then read it in and
create/populate the database.
On May 25, 2012 7:23 AM, Narendra Singh Rathore nsr.curi...@gmail.com
wrote:



 On Thu, May 24, 2012 at 5:35 PM, Anil Kumar vishnupriyaa...@gmail.comwrote:

  My problem is i created the database in my
 project and i successfully added the data in my database ... but after
 installing the apk in my mobile ... i dint get the values Once
 again i need to add alll my data .. How i can get the data what
 are all added in my system and where i have to put my .db file in
 mobile ... Please anybody suggest me.


 You must store your database (db file) in sd card of your mobile, and
 access that from there (sd card).
 You need to add permission in your manifest file to use your database from
 sd card as follows:

 uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/


 With Regards,
 NSR

  --
 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

Re: [android-developers] encrypt files to be opened up by a specific app only

2012-05-11 Thread James Black
Change the extension so the user doesn't get an error, then when they use
your program have them type in a pass phrase to decrypt the key then
decrypt the PDF in memory, then it can be seen.
On May 11, 2012 8:08 AM, Farhan Tariq farhan@gmail.com wrote:

 Hi developers,

 I want to make an app that would download pdf files and keep them in
 sdcard in encrypted form, such that the pdf can be opened by my app only
 and not even with any pdf reader installed on the device. Is it even
 possible? I would appreciate any help. Thanks

 Regards,

 Farhan

 --
 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

Re: [android-developers] Re: Music notation application

2012-05-09 Thread James Black
I remember doing this in C# for a directx app.

Depending on how picky you are, the numbers for time signatures, and the
clefs, can be a pain.

Good luck.
On May 9, 2012 11:00 AM, JackN j...@jacknorth.com wrote:

 I mean just develop the graphics using primative methods to produce the
 output you want. Like sprites (jpg, png), but procedural based.

 eg..

 void drawWholeNote(canvas, centerx,centery, scale)
 {
  canvas.drawCircle(etc.);
 }


  void drawHalfNote(canvas, centerx,centery, scale)
 {
  canvas.drawCircle(etc.)
  canvas.drawLine(etc)
 }



 On Tuesday, May 8, 2012 8:43:52 AM UTC-7, Simon Giddings wrote:

 Thank you for taking the time to reply.
 Can you point me in the direction for what this procedure based
 rendering is about ?

 On Tuesday, 8 May 2012 17:38:30 UTC+2, JackN wrote:

 you might want to consider procedure based rendering. Should scale well
 (and easy).

 I wish you luck and I would get you app when it is done.


 On Tuesday, May 8, 2012 6:43:08 AM UTC-7, Simon Giddings wrote:

 I am researching the writing of a simple music notation program which
 will permit simple actions such as

- Display
- Transposition
- Annotation
- etc

 My first hurdle is how to display the music.

 The majority of desktop apps use music fonts, which makes zooming and
 resizing quite simple. However, it would appear that I would need to be
 able to access the individual glyphs to do this - which is not possible in
 android as far as I understand.

 Should I stick with a music font and try to find a way to get the
 information needed ?

 Should I abandon this and be looking at using svg files or transparent
 PNGs ?

 Can anyone advise here, please ?

  --
 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

Re: [android-developers] Free No coding app development tool!? or Coding work?

2012-05-04 Thread James Black
This forum is for questions about using the android sdk, so I expect
everyone here programs.

You may want to ask this on an appropriate forum.
On May 4, 2012 8:35 AM, Sonny Kim sdki...@gmail.com wrote:

 Hi I love to developing android application and trying to upload in
 Android Market.
 Since I'm still learning how to use the C++ and Java it's pretty hard
 for me build some functions.
 So I trying to searching NO CODING app development tool. most of
 programs requires even it said NO CODING app development tool they
 need to use some coding work. However I want to know how much it will
 save time if I'm using those kinds of tool compare without using tool?
 There's few tools I found m-bizmaker, app-builder, and couple of
 programs and since only m-bizmaker is free version developing to
 packing and upload the market I'm using that one pretty often so far.
 I wonder what other ppl using the tool when they are developing
 application?

 --
 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

Re: [android-developers] The best way to connect remote DB

2012-05-04 Thread James Black
Look up how to make a REST web service.
On May 4, 2012 8:35 AM, mohammed alsadi ipqa...@gmail.com wrote:

 Hi Developers :)
 What is the best way to connect a remote database.
 I know that there is no JDBC in android.
 Best 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

-- 
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] HTML5 Geolocation doesn't work with Android default browser

2012-05-01 Thread James Black
You may want to ask this on stack overflow.com as this forum is for sdk
questions, and your question is html5.
On May 1, 2012 3:39 PM, Aymeric Raguet habee.cont...@gmail.com wrote:

 Hi,

 I am having some difficulties with the Geolocation API in Javascript. It works
 very well in the following cases:
 - On a PC with Chrome, Opera and Safari (not tested with IE)
 - On Windows Mobile phone with IE
 - On Android mobile with Opera (not tested on an iPhone)

 But it is not working with Firefox on PC and especially with the default
 browser on Android. I have a Samsung Galaxy S LC (equivalent to Galaxy S1)

 Here is my code (standard API Geoloc):

 body


 We need your location.


 script type=text/javascript

 // attempting to retrieve the GPS location


 document.write(Trying to retrieve your location);


 if(navigator.geolocation){

 document.write(Geolocation is supported);

 navigator.geolocation.getCurrentPosition(successCallback, errorCallback,

   {

 enableHighAccuracy : true,

 timeout : 5000,

 maximumAge : 0

   }

 );

  function successCallback(position){

 document.write(You have been located. Latitude :  +
 position.coords.latitude +, longitude :  + position.coords.longitude);

 };

  function errorCallback(error){

 document.write(We coulnd't get your location);

 switch(error.code){

 case error.PERMISSION_DENIED:

 document.write(Permission Denied);

 break;

 case error.POSITION_UNAVAILABLE:

 document.write(Position unavailable);

 break;

 case error.TIMEOUT:

 document.write(Timeout);

 break;

 case error.UNKNOW_ERROR:

 document.write(Unknown error);

 break;

 }

 }

 }

 else{

 document.write(La géolocalisation n'est pas supportée par le
 navigateur);

 }





 /script


 /body


 What's going on with the Android default browser:
 1. The following messages appear:
  Trying to retrieve your location 
 Geolocation is supported
 2. After the time specified by the timeout (10s here) the page becomes all
 white.
 The functions sucessCallback or errorCallback are not called.

 I then tried trough a Webview but it does the same.

 Thank you very much for your 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

-- 
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] Applications and databases

2012-05-01 Thread James Black
If you mean to write to any database then no.

But, if you mean whether someone writes to your database, then just provide a 
content provider and you can be informed.

On 1 May 2012, at 21:33, Meryeme Ayache wrote:

 how can we know if an application has entered to the database. I mean is 
 there any possiblity to know if an application get or write information in 
 Android Database.

-- 
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] Timer in Android

2012-04-30 Thread James Black
I would create a remote service for the timer, and query it, since it would
run independently from the activity.
On Apr 30, 2012 8:16 PM, Mai Al-Ammar mai.alam...@gmail.com wrote:

 Hello every one,

 I have a simple question about timer in Android, How can I know if the
 timer is stopped or not?
 I have an if statement which see if some condition is satisfied, then it
 will stop the timer by :
 if(timerTask != null)
 timerTask.cancel();
 I want to check after calling the timer if the timer is stopped or not?

 Please help me

 thanks in advance

 --
 Mai A. Al-Ammar
 Teacher Assistant
 Imam Mohammad bin Saud Islamic University
 College of Computer Science

 --
 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

Re: [android-developers] Android/JVM difference in RSA decryption

2012-04-26 Thread James Black
I just see garbage in your stack trace, but are you certain the private key
is pkcs8 encoded?

When you test on your desktop, is that on the emulator, a java program or
some other language?

Also, it may not have anything to do with the android sdk, so is probably
off-topic here.
On Apr 26, 2012 9:27 AM, Joseph j.flynn.dur...@gmail.com wrote:

 I am trying to decrypt a String, that I have encrypted elsewhere. Here
 is my code:

 private void test() {

try {
String

 stringMessage=Sf3O7Lr2+WN5szGyLejL3CjuBRZtQ72+ZBmgVTgWnatQZxUElzaBqFa1p0SVBqe9VWVxCxdEkejMVtDGEr0UJSVSK8EB/
 fPI6v8JE8dIu0JN0mMs4xlowhITy0tQR+1pcBtDFjzOl33xxQcq5JuPezxRDxFIp
 +IVkD8FdpqlttEKf2Tvqw9tqsdgiBKb5xDvKrkIDQXdLBh1gbAVZDSJYGHRkcOA8vz2ty/
 PeooKkfDK6IOn7KBwOBgSRgQr/MLBF3Xk2vRWgVGRh/fRkzu21EWo99Q5moWKxWl3HW/
 bbgTBQTb097XP3NTID9kSPhCfL0BEfBxonuNse5GBoeRnCw==;
//Convert String back to Byte[] and decrpt
byte[] byteMessage =
 Base64.decodeBase64(stringMessage.getBytes(UTF-8));
System.out.println(ENCRYPTED MESSAGE byte Length:
 +byteMessage.length);

String decryptedMsg = decryptString(byteMessage,
 loadCASPrivateKey());
System.out.println(decryptedMsg);
} catch (Exception e) {
e.printStackTrace();
return;
}
 }

 private static String decryptString(byte[] message, Key privateKey)
 throws InvalidKeyException, NoSuchAlgorithmException,
 NoSuchPaddingException, IllegalBlockSizeException,
 BadPaddingException, UnsupportedEncodingException {
Cipher cipher = Cipher.getInstance(RSA);
cipher.init(Cipher.DECRYPT_MODE, privateKey);

byte[] cipherData = cipher.doFinal(message);
return new String(cipherData, UTF-8);
 }

 private PrivateKey loadCASPrivateKey() throws IOException,
 NoSuchAlgorithmException, InvalidKeySpecException {
InputStream is = getClass().getResourceAsStream( /keys/app-
 private.key );
if (is == null) {
System.out.println(NULL);
}
byte[] encodedPrivateKey = new byte[(int) 2000];
is.read(encodedPrivateKey);
is.close();

// Generate KeyPair.
KeyFactory keyFactory = KeyFactory.getInstance(RSA);

PKCS8EncodedKeySpec privateKeySpec = new
 PKCS8EncodedKeySpec(encodedPrivateKey);
PrivateKey privateKey =
 keyFactory.generatePrivate(privateKeySpec);

return privateKey;

 }
 This works 100% how I would like it to under my desktop JVM, however
 when I run it in the Android emulator I get:

 04-24 22:42:21.011: I/System.out(1041): ��k���_��*�ݣ���93|
 @0�̍4�y)��Q�k�;*Ae�#��A� �oiu:�W5@$�w�j��uS�R�Ocxٰl �w'/
 �d�8uA��ؔ�{�4$�U�0��{Ԑ��t!9��n�� ��a��'Jdt2�t�T�D��k+k�;�� GF��
 \�rڼ��]�y+^w��� ��'E{�8R]�ZHyu��ζ��軟�ށ掱�{�A�#ȟ�

 I assume my problem is down to encoding, but I've spent all day trying
 to work out what and am really stumped.

 --
 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

Re: [android-developers] Android app- Requires continuous updates of current location-is not working properly

2012-04-26 Thread James Black
I believe you will get actual updates from GPS no faster than every second.

Also, are you verifying that the new position is better than the old, in
terms of accuracy?

And, GPS is not terribly accurate, probably worse than +/- 25m so it will
jump around.
On Apr 26, 2012 9:31 AM, Maneesh Janyavula mjan...@uic.edu wrote:

 I am developing an Android app, which routes the user from current
 location to a Parking spot(some random location) as the user moves on
 the road. I am using GPS_PROVIDER to get the current location.

 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
 500,0,locationListener);

 I am placing marker on the current location by using-

 public void addMarkers()
 {
 //Adding Current location marker
Drawable drawable_src =
 this.getResources().getDrawable(R.drawable.mapmarker_pink);
itemizedoverlay_src = new HelloItemizedOverlay(drawable_src,
 this);
GeoPoint src_point = new GeoPoint((int) (src_lat * 1E6),
(int) (src_long * 1E6));
overlayitem_src = new OverlayItem(src_point, Current
 Location,ConvertPointToLocation(src_point));
itemizedoverlay_src.addOverlay(overlayitem_src);
mapOverlays.add(itemizedoverlay_src);
 }

 I am using locationManager.getLastKnownLocation to intially get the
 location, and then later OnLocationChanged method is called, where in
 the location is updated, the previous marker is removed and new marked
 is added to the current location-

 private void updateMarker(GeoPoint point) {

//Removing previous marker
itemizedoverlay_src.removeOverlay(overlayitem_src);
mapOverlays.remove(itemizedoverlay_src);

//Adding Current location marker
overlayitem_src = new OverlayItem(point, Current
 Location,ConvertPointToLocation(point));
itemizedoverlay_src.addOverlay(overlayitem_src);
mapOverlays.add(itemizedoverlay_src);

 }

 I am doing, this so that it appears as though the marker moves
 continuously as the user's location is changed continuously. I am
 requesting the for updates every 500ms. But when I tested the app on
 the road network, The app turned out to be very slow, and gets hung
 frequently. I am not sure, why this happens?? Is there something wrong
 with my code? Is there a better efficient solution to this?

 Please help me out

 Thanks- Maneesh

 --
 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

Re: [android-developers] web service android

2012-04-24 Thread James Black
This is not the correct forum as this deals with the android sdk, but you
may want to look up soap or go to stackoverflow.com
On Apr 24, 2012 1:31 PM, saida gzem gzemsa...@gmail.com wrote:

 i'm calling web service and i'm getting my soapobject response  like
 that:

  response{
   errMesg=null;
   Id=54512;
   Article=article{id=898;Name=bej;DateArtic=2010/12/15;};

 Article=article{id=800;Name=saij;DateArtic=2011/12/15;};
   Article=article{id=802;Name=sui;DateArtic=2011/12/13;};
   description=this ;
}
 i just can read the second articl and 3 article??? how i can read it???
 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

-- 
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] Sending POST data in Android to a database?

2012-04-23 Thread James Black
Have you Googled it?

You will end up using HttpClient though.
On Apr 23, 2012 1:02 PM, Marcus Maximus marcus.pres...@gmail.com wrote:

 Hey guys,

 I want to send android post data(with a servlet) to a database(in fact
 google app engines db)

 How can I submit data from the phone to the database(for example:
 locationbased data...)?

 greetings and thx 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

-- 
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] GeoCoder.getFromLocationName when using bounding box returns results outside bounding box

2012-04-21 Thread James Black
Hello,
I am trying to use a bounding box to limit the locations returned to the
users, but I don't see why this isn't working.

This is the bounding box, and the center of where I am doing my offset:
35.71699581199971  36.0049961  36.29299638800029 == latitude
-84.3104074880003  -84.0224072  -83.73440691199971== longitude

So, I call the function with these parameters:
getFromLocationName(pilot, 10, 35.71699581199971, -84.3104074880003,
36.29299638800029, -83.73440691199971)

and it returns this, where I include the latitude and longitude for each
location, and most of these are outside the bounding box:
 Pilot, IL(41.0434706,-88.0705319)
 Pilot, IL(40.2274008,-87.8353278)
 Pite River(65.829223,19.7676296)
Pilot Travel Center 1200 S Hillcrest Dr Sulphur Springs, TX
75482(33.1165057,-95.6342561)
 Pilot 3300 Arkansas 391 North Little Rock, AR 72117(34.7812136,-92.1279496)
Pilot Travel Center 493 E State Road 44 Wildwood, FL
34785(28.8743055,-82.0952854)
 Pila 360 01 Pila(50.1804514,12.926315)
 Pilot 33570 Lussac(44.9869288,-0.0854641)
 Pila 345 33 Trhanov(49.4137006,12.8563052)
 The Pilot 25 Upper Stone St Maidstone Kent ME15 6EU(51.2698376,0.526036)

I expect nothing to be returned if there are no results.

Thank you for any help.

-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] how to get the average speed with GPS android

2012-04-18 Thread James Black
Just get where you start, at time zero, and then you could just get the
current location every several seconds.

Determine the distance, there is a call for that, and speed is
distance/time.

You can just add up the distance to get an accurate total of how far the
phone has gone.
 On Apr 18, 2012 2:30 PM, putzz12 renatoespinoza...@gmail.com wrote:

 hello,im doing a project and i need to know how to get the avg of the
 velocity when im running. for example if i run in the park or something i
 want to know the avg speed.
 if someone can help me will be soo good.
 thx.

 --
 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

Re: [android-developers] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
The Activity just disappears.

So, if I am on the home page, then I start my application, I get the first
screen, then the second activity comes up, starts the remote service, and
then I end up on the home page again, as the second activity ended.

But, the exact same program works fine on Android 2.3.3.

Unfortunately I have no other information than what I am seeing.

I don't get any logging from onStop or onDestroy, but that may be expected,
so I am not certain how to tell if it went through there, are, as I fear,
it was killed and doesn't go through the lifecycle steps in this case.

On Sun, Apr 15, 2012 at 1:29 AM, TreKing treking...@gmail.com wrote:

 On Sat, Apr 14, 2012 at 11:06 PM, James Black planiturth...@gmail.comwrote:

 Almost immediately after binding to and calling onStart on the service
 the mapview activity dies.


 Can you elaborate on dies?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
I have it working, at the moment, by having this in my manifest:
uses-sdk
android:minSdkVersion=7
android:targetSdkVersion=9 /

So targeting SDK 11 or 18 leads to it to crash.

And no, I just use
startActivity(intent);

with these flags:
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_CLEAR_TOP);

On Sun, Apr 15, 2012 at 8:30 AM, Farhan Tariq farhan@gmail.com wrote:

 Are you using 'startActivityForResult()' method in your code to start the
 new activity?


 On Sun, Apr 15, 2012 at 5:27 PM, James Black planiturth...@gmail.comwrote:

 The Activity just disappears.

 So, if I am on the home page, then I start my application, I get the
 first screen, then the second activity comes up, starts the remote service,
 and then I end up on the home page again, as the second activity ended.

 But, the exact same program works fine on Android 2.3.3.

 Unfortunately I have no other information than what I am seeing.

 I don't get any logging from onStop or onDestroy, but that may be
 expected, so I am not certain how to tell if it went through there, are, as
 I fear, it was killed and doesn't go through the lifecycle steps in this
 case.

 On Sun, Apr 15, 2012 at 1:29 AM, TreKing treking...@gmail.com wrote:

 On Sat, Apr 14, 2012 at 11:06 PM, James Black 
 planiturth...@gmail.comwrote:

 Almost immediately after binding to and calling onStart on the service
 the mapview activity dies.


 Can you elaborate on dies?


 -
 TreKing http://sites.google.com/site/rezmobileapps/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




 --
 I know that you believe you understand what you think I said, but I'm
 not sure you realize that what you heard is not what I meant.
 - Robert McCloskey

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
That is the problem, with logcat there is no additional information.

I have it attached to my computer through the usb connection, and am able
to see all the data in logcat.

That is why I decided to ask for help in how to approach it, as I am
confused as to what is going on.

Here is what I see when it dies:
04-15 08:50:02.213: I/ErrandMapActivity(5805): onServiceConnected
04-15 08:50:02.213: I/ErrandMapActivity(5805): registering callback
04-15 08:50:02.213: I/ErrandAssistantService(5931): registerCallback
04-15 08:50:02.217: I/ErrandMapActivity(5805): onResume - binding succeeded

OK, then I see this, which may explain it:
04-15 08:50:08.682: D/CDA(5805): onBackPressed Called
04-15 08:50:08.682: D/CustomMapActivity(5805): finish entered

And, when I look much further in the log I found onStop and onDestroy,
being logged, which makes me feel better.

So, now it appears that the phone thinks the back button is being pressed
when it is sitting untouched, but only if the SDK version is  9.

On Sun, Apr 15, 2012 at 8:48 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Apr 15, 2012 at 8:45 AM, James Black planiturth...@gmail.com
 wrote:
  I have it working, at the moment, by having this in my manifest:
  uses-sdk
  android:minSdkVersion=7
  android:targetSdkVersion=9 /
 
  So targeting SDK 11 or 18 leads to it to crash.
 
  And no, I just use
  startActivity(intent);
 
  with these flags:
  intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
  | Intent.FLAG_ACTIVITY_CLEAR_TOP);

 Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine
 LogCat and look at the stack trace associated with your crash.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-15 Thread James Black
OK, I have tried it a couple of more times, and don't see the back button
log again.

This is what I see:
04-15 09:13:46.614: I/ErrandAssistantService(7015): Setting a new request
for location updates
04-15 09:13:46.661: I/ErrandAssistantService(7015): saveProximityAlert -
used GPS
04-15 09:13:46.669: I/ErrandAssistantService(7015): saveProximityAlert -
used network
04-15 09:13:46.677: I/ErrandAssistantService(7015): saveProximityAlert -
used GPS
04-15 09:13:46.681: I/ErrandAssistantService(7015): saveProximityAlert -
used network
04-15 09:13:47.025: W/CursorWrapperInner(7039): Cursor finalized without
prior close()
04-15 09:13:47.044: I/MapViewActivity(7039): OnResume: mapView loaded = true
04-15 09:13:47.083: I/MapActivity(7039): Handling network change
notification:CONNECTED
04-15 09:13:47.083: E/MapActivity(7039): Couldn't get connection factory
client
04-15 09:13:47.196: I/ErrandMapActivity(7039): onServiceConnected
04-15 09:13:47.196: I/ErrandMapActivity(7039): registering callback
04-15 09:13:47.200: I/ErrandAssistantService(7015): registerCallback
04-15 09:13:47.200: I/ErrandMapActivity(7039): onResume - binding succeeded

Then I see this:
04-15 09:13:49.142: I/ErrandAssistantService(7015): Sent location changed
callback
04-15 09:13:49.142: I/ErrandAssistantService(7015): Sent route changed
04-15 09:13:49.142: I/ErrandAssistantService(7015): geoPoint set


So, the activity had bound to the service, and then later the service sends
back data to the activity, but that activity has already exited.

And, there is no longer anything about the back button having been pressed.

I had cleared the logcat in Eclipse then ran it again, in case I was
confusing when certain code was happening, and that may indeed have been
the case.

On Sun, Apr 15, 2012 at 9:09 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Sun, Apr 15, 2012 at 9:02 AM, James Black planiturth...@gmail.com
 wrote:
  That is the problem, with logcat there is no additional information.

 Then it is not crashing.

  OK, then I see this, which may explain it:
  04-15 08:50:08.682: D/CDA(5805): onBackPressed Called
  04-15 08:50:08.682: D/CustomMapActivity(5805): finish entered
 
  And, when I look much further in the log I found onStop and onDestroy,
 being
  logged, which makes me feel better.
 
  So, now it appears that the phone thinks the back button is being pressed
  when it is sitting untouched, but only if the SDK version is  9.

 I assume that CDA is your code. If so, set a breakpoint or throw a
 RuntimeException in onBackPressed() to see if there is something in
 the call trace that indicates what is triggering it.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] R cannot be resolved to a variable when deleting main.out.xml file

2012-04-15 Thread James Black
Have you added an import to your activity?

You may want to look at this:
http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error


On Sun, Apr 15, 2012 at 1:34 PM, Ruben Royo rubenroyolo...@gmail.comwrote:


 Hello,

 I had the mistake of clicking on Run on eclipse while I was on a xml
 file (main.xml). Eclipse created the main.out.xml file and I got a lot
 of problems. I deleted the main.out.xml file and cleaned the project
 and I still get the error that says:

 R cannot be resolved to a variable

 I didn't write anything, it is some problem generated by eclipse...
 Does anyone have an idea of what could it happen?

 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Program crashes on Android 4.0.4 but not on 2.3.3

2012-04-14 Thread James Black
Hello,
  I am trying to understand what may be happening in my program.  I don't
get any indication as to why it is crashing, but the basic flow is:
First activity starts
user selects to see map
Remote Service starts up
Almost immediately after binding to and calling onStart on the service the
mapview activity dies.

There is nothing in the logcat to help explain what may be going on.

This works fine on 2.3.3.

This is from my manifest:
uses-sdk
android:minSdkVersion=7
android:targetSdkVersion=11 /

I don't know if it could have anything to do with this.

Any idea how I may want to gather more information?

I put a breakpoint in onDestroy but that didn't help in any way.

When I don't bind to the service it still exits, so it appears the problem
has nothing to do with the service.

-- 
I know that you believe you understandst what you think I said, but I'm
not sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: add a scan barcode button to my webpage

2012-04-12 Thread James Black
You will probably need to just upload the info to your server.
On Apr 12, 2012 4:30 AM, akanit supatawaraporn aka...@gmail.com wrote:

 I want to do like you. If so, please tell me.

 On Wednesday, February 17, 2010 8:59:02 PM UTC+7, JB wrote:

 Does anyone know how to add a scan barcode button to a webpage like
 google has in the shopping page?  I am wanting to allow my clients
 using a droid phone to press the button scan a barcode and post the
 data back into my webpage.

 any suggestions?

 thanks JB

  --
 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

Re: [android-developers] Have you ever created this app?

2012-04-12 Thread James Black
It would gives lots of false positives.

For example, I am dodging a shredded semi truck or roadkill or potholes.

Unless it can see the road and discount those.
On Apr 12, 2012 4:35 AM, Raja Revanth rajaareva...@gmail.com wrote:

 I would like to know if any of you have created a App using
 accelerometer and orientation sensor to for drunk driving detection.
 It checks for the vehicle movement and the turning radius, pitch yaw
 and roll and calculates a few variables such as lateral and
 longitudinal acceleration and so on and later compares them with a
 threshold values and sends an sms if the detected values have crossed
 the threshold values after multiple matching patterns.

 --
 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

Re: [android-developers] Which HTML5 feature to avoid on Android tablets\mobiles?

2012-04-09 Thread James Black
You may want to check on HTTP://caniuse.com and see whether the features
you want are supported.
On Apr 9, 2012 6:36 AM, smoogli roy.ben.ha...@gmail.com wrote:

 Hi,
 I'm going to create a web app which is based on HTML.

 As far as I know, Android does not support the full set of HTML5
 features.

 Made a quick and simple decision: avoid any HTML5 feature which is not
 supported on the Majority of Android devices (tablet is primary,
 mobile comes second).

 Can anyone please point me to a list of HTML5 features which are not
 supported on most Android devices?

 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

-- 
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] Video Sharing to Facebook from Android App using share intent FAIL :( .

2012-04-04 Thread James Black
You could have shortened the code, but it appears your app doesn't have
permission to read from the data directory.

So ask for permission and gracefully handle when it doesn't read the file.
On Apr 4, 2012 9:08 AM, s.rawat imsaurabhra...@gmail.com wrote:

 HI ,
 I am trying to share the video on long press by using the share intent.I
 am able to share the image (.jpg) but not able to share the videos on
 facebook.
 *Following is my code.*

   Intent share = new Intent(Intent.ACTION_SEND);
   share.setType(video/3gpp);
   Uri uri = Uri.fromFile(new File(imageFilePath));
 * //image file is the /mnt/sdcard/file folder/file name with extension-
 3gpp*
   share.putExtra(Intent.EXTRA_STREAM, uri);
   startActivity(Intent.createChooser(share,Share
 Video));


 *I am getting this error .*

 Retrieve application default SharedPreferences.
 D/ACRA( 7160): Set OnSharedPreferenceChangeListener.
 D/ACRA( 7160): ACRA is enabled for com.facebook.katana, intializing...
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 D/dalvikvm( 7160): GC_CONCURRENT freed 746K, 48% free 3521K/6727K,
 external 1892K/2137K, paused 4ms+3ms
 D/dalvikvm( 7160): GC_EXTERNAL_ALLOC freed 54K, 49% free 3484K/6727K,
 external 1925K/2137K, paused 23ms
 I/ActivityManager(  115): Displayed
 com.facebook.katana/.activity.media.UploadVideoActivity: +1s201ms
 D/dalvikvm(  192): GC_EXTERNAL_ALLOC freed 127K, 51% free 3096K/6215K,
 external 7414K/7681K, paused 72ms
 D/dalvikvm( 7160): GC_CONCURRENT freed 582K, 44% free 3891K/6919K,
 external 2360K/2837K, paused 2ms+3ms
 D/dalvikvm( 7160): GC_CONCURRENT freed 1067K, 48% free 3954K/7495K,
 external 2360K/2837K, paused 3ms+3ms
 D/AndroidRuntime( 7160): Shutting down VM
 W/dalvikvm( 7160): threadid=1: thread exiting with uncaught exception
 (group=0x40015560)
 E/ACRA( 7160): ACRA caught a NullPointerException exception for
 com.facebook.katana. Building report.
 D/ACRA( 7160): Retrieve application default SharedPreferences.
 I/ACRA( 7160): READ_LOGS not allowed. ACRA will not include LogCat and
 DropBox data.
 D/dalvikvm( 7160): GC_CONCURRENT freed 1015K, 46% free 4128K/7623K,
 external 2380K/2837K, paused 2ms+3ms
 D/ACRA( 7160): Writing crash report file.
 D/ACRA( 7160): Mark all pending reports as approved.
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 V/ACRA( 7160): About to start ReportSenderWorker from #handleException
 D/ACRA( 7160): Add user comment to null
 D/ACRA( 7160): #checkAndSendReports - start
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 I/ACRA( 7160): Sending file 1333563805000-approved.stacktrace
 D/ACRA( 7160): Connect to
 https://www.facebook.com/mobile/android_crash_logs/
 D/ACRA( 7160): Setting httpPost headers
 D/ACRA( 7160): Sending request to
 https://www.facebook.com/mobile/android_crash_logs/
 W/ResponseProcessCookies( 7160): Invalid cookie header: Set-Cookie:
 datr=aER8T715TPEZWlWU-IknhcD0; expires=Fri, 04-Apr-2014 12:54:00 GMT;
 path=/; domain=.facebook.com; httponly. Unable to parse expires
 attribute: Fri
 D/ACRA( 7160): #checkAndSendReports - finish
 *E/AndroidRuntime( 7160): FATAL EXCEPTION: main
 E/AndroidRuntime( 7160): java.lang.NullPointerException
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.getRealPathFromURI(VideoUpload.java:144)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.start(VideoUpload.java:165)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.binding.AppSession.postToService(AppSession.java:4212)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.RequestVideoUpload(VideoUpload.java:73)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.activity.media.UploadVideoActivity.upload(UploadVideoActivity.java:209)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.activity.media.UploadVideoActivity.onClick(UploadVideoActivity.java:169)
 *
 E/AndroidRuntime( 7160): at
 android.view.View.performClick(View.java:2485)
 E/AndroidRuntime( 7160): at
 android.view.View$PerformClick.run(View.java:9080)
 E/AndroidRuntime( 7160): at
 android.os.Handler.handleCallback(Handler.java:587)
 E/AndroidRuntime( 7160): at
 android.os.Handler.dispatchMessage(Handler.java:92)
 E/AndroidRuntime( 7160): at android.os.Looper.loop(Looper.java:130)
 E/AndroidRuntime( 7160): at
 android.app.ActivityThread.main(ActivityThread.java:3683)
 E/AndroidRuntime( 7160): at
 java.lang.reflect.Method.invokeNative(Native Method)
 E/AndroidRuntime( 7160): at
 java.lang.reflect.Method.invoke(Method.java:507)
 E/AndroidRuntime( 7160): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
 E/AndroidRuntime( 7160): 

Re: [android-developers] Video Sharing to Facebook from Android App using share intent FAIL :( .

2012-04-04 Thread James Black
Look at where the npe is being thrown, put a breakpoint there, see what is
null that you expect isn't.
On Apr 4, 2012 10:39 AM, s.rawat imsaurabhra...@gmail.com wrote:

 How short?
 I am using
 * uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE / *
 in the manifest
 and
  data android:mimeType=video/* /
 in the Intent Filter for the app/
 Still getting the same crash.
 ..pain is temporary.quitting lasts forever.
  My Blog http://techshek4u.blogspot.in/



 On Wed, Apr 4, 2012 at 7:57 PM, James Black planiturth...@gmail.comwrote:

 You could have shortened the code, but it appears your app doesn't have
 permission to read from the data directory.

 So ask for permission and gracefully handle when it doesn't read the file.
 On Apr 4, 2012 9:08 AM, s.rawat imsaurabhra...@gmail.com wrote:

 HI ,
 I am trying to share the video on long press by using the share intent.I
 am able to share the image (.jpg) but not able to share the videos on
 facebook.
 *Following is my code.*

   Intent share = new Intent(Intent.ACTION_SEND);
   share.setType(video/3gpp);
   Uri uri = Uri.fromFile(new
 File(imageFilePath));* //image file is the /mnt/sdcard/file
 folder/file name with extension- 3gpp*
   share.putExtra(Intent.EXTRA_STREAM, uri);

 startActivity(Intent.createChooser(share,Share Video));


 *I am getting this error .*

 Retrieve application default SharedPreferences.
 D/ACRA( 7160): Set OnSharedPreferenceChangeListener.
 D/ACRA( 7160): ACRA is enabled for com.facebook.katana,
 intializing...
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 D/dalvikvm( 7160): GC_CONCURRENT freed 746K, 48% free 3521K/6727K,
 external 1892K/2137K, paused 4ms+3ms
 D/dalvikvm( 7160): GC_EXTERNAL_ALLOC freed 54K, 49% free 3484K/6727K,
 external 1925K/2137K, paused 23ms
 I/ActivityManager(  115): Displayed
 com.facebook.katana/.activity.media.UploadVideoActivity: +1s201ms
 D/dalvikvm(  192): GC_EXTERNAL_ALLOC freed 127K, 51% free 3096K/6215K,
 external 7414K/7681K, paused 72ms
 D/dalvikvm( 7160): GC_CONCURRENT freed 582K, 44% free 3891K/6919K,
 external 2360K/2837K, paused 2ms+3ms
 D/dalvikvm( 7160): GC_CONCURRENT freed 1067K, 48% free 3954K/7495K,
 external 2360K/2837K, paused 3ms+3ms
 D/AndroidRuntime( 7160): Shutting down VM
 W/dalvikvm( 7160): threadid=1: thread exiting with uncaught exception
 (group=0x40015560)
 E/ACRA( 7160): ACRA caught a NullPointerException exception for
 com.facebook.katana. Building report.
 D/ACRA( 7160): Retrieve application default SharedPreferences.
 I/ACRA( 7160): READ_LOGS not allowed. ACRA will not include LogCat
 and DropBox data.
 D/dalvikvm( 7160): GC_CONCURRENT freed 1015K, 46% free 4128K/7623K,
 external 2380K/2837K, paused 2ms+3ms
 D/ACRA( 7160): Writing crash report file.
 D/ACRA( 7160): Mark all pending reports as approved.
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 V/ACRA( 7160): About to start ReportSenderWorker from
 #handleException
 D/ACRA( 7160): Add user comment to null
 D/ACRA( 7160): #checkAndSendReports - start
 D/ACRA( 7160): Looking for error files in
 /data/data/com.facebook.katana/app_acra-reports
 I/ACRA( 7160): Sending file 1333563805000-approved.stacktrace
 D/ACRA( 7160): Connect to
 https://www.facebook.com/mobile/android_crash_logs/
 D/ACRA( 7160): Setting httpPost headers
 D/ACRA( 7160): Sending request to
 https://www.facebook.com/mobile/android_crash_logs/
 W/ResponseProcessCookies( 7160): Invalid cookie header: Set-Cookie:
 datr=aER8T715TPEZWlWU-IknhcD0; expires=Fri, 04-Apr-2014 12:54:00 GMT;
 path=/; domain=.facebook.com; httponly. Unable to parse expires
 attribute: Fri
 D/ACRA( 7160): #checkAndSendReports - finish
 *E/AndroidRuntime( 7160): FATAL EXCEPTION: main
 E/AndroidRuntime( 7160): java.lang.NullPointerException
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.getRealPathFromURI(VideoUpload.java:144)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.start(VideoUpload.java:165)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.binding.AppSession.postToService(AppSession.java:4212)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.service.method.VideoUpload.RequestVideoUpload(VideoUpload.java:73)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.activity.media.UploadVideoActivity.upload(UploadVideoActivity.java:209)
 E/AndroidRuntime( 7160): at
 com.facebook.katana.activity.media.UploadVideoActivity.onClick(UploadVideoActivity.java:169)
 *
 E/AndroidRuntime( 7160): at
 android.view.View.performClick(View.java:2485)
 E/AndroidRuntime( 7160): at
 android.view.View$PerformClick.run(View.java:9080)
 E/AndroidRuntime( 7160): at
 android.os.Handler.handleCallback(Handler.java:587)
 E

Re: [android-developers] 3D Charts

2012-03-31 Thread James Black
This is a fairly broad area, it would be helpful if you could narrow it down.

Basically, you need to connect to a server to get the data, or get it from 
sensors.

Then, use OpenGL to draw the graph.

On 31 Mar 2012, at 07:29, sourabh sahu wrote:

 How to draw 3D interactive charts in android.Please suggest something on it.
 
 Sourabh
 
 -- 
 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

Re: [android-developers] Rotation gesture detector.

2012-03-30 Thread James Black
You need to do more of the work on Android.

This may give you a start:
http://www.anddev.org/gesturedetector_and_gesturedetectorongesturelistener-t3204.html

On 31 Mar 2012, at 00:16, MB wrote:

 Hi,
 
 Is there a rotation gesture detector class available for Android? I've
 searched the docs but haven't found anything relevant.
 I am looking for the equivalent of UIRotationGestureRecognizer on iOS.
 
 Thanks,
 
 --MB.
 
 -- 
 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


Re: [android-developers] Can this be done on android?

2012-03-27 Thread James Black
You may want to look at the navigator to see if that will do part of what
you want.

If it does then yes.

The hard part is to be able to determine the best bus route to get to the
destination in a timely fashion.
On Mar 27, 2012 3:57 AM, Ajay Motah ajaymo...@gmail.com wrote:

 Dear friends, i am a university student competting for my bsc(hons) in
 IT! i suggested to have my final year project based on android, n for
 your info, i have never codded in android. im am supposed to give a
 suggestion by tomorow! and i would be completing my project by august!

 What the program is to to do, it
 1) automatically locate where you are in mauritius
 2) you select your destination upon tapping on specific location in
 maritius
 3) it will tel u the route you need to take to got thier...eg by car,
 the km and the duration u will reach their
 4) you may also wish to select to go by public bus, which will then
 retrieve the info from a database, about the bus schedule using the
 actual time, and tell you the bus fare

 My question is that be possible to be done on android, the map of
 mauritius with multiple roads, and locations, and route?
 Please help
 thanks a lot

 --
 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

Re: [android-developers] Faster Image Processing on Android

2012-03-27 Thread James Black
You could use ndk and do processing on the gpu
On Mar 25, 2012 4:18 PM, Christopher Wade christopher.w...@btinternet.com
wrote:

 Hi guys, my first post here so I hope this post is in the right place.

 I am currently writing an app that reads handwriting from a
 photograph, but I am having an issue doing the image processing.

 When you take a photograph it passed the bitmap to a new class and
 runs some edge detection etc on it. However, this is incredibly slow.
 I am using getPixel and setPixel on the bitmap to do this. This is
 unfortunately incredibly slow.

 I was just wondering, is there a faster way to process the image than
 this, and without using OpenGL? I am not adverse to using OpenGL but
 it will add a lot of time to development.

 Thanks guys.

 --
 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

Re: [android-developers] Mobile to Mobile remote access

2012-03-23 Thread James Black
What are you trying to do? For example, do you want to remotely see what
the camera does or make phone calls?
Remotely controlling seems like turning a phone into a zombie, but for
controlling a robot this could be useful.
More detail may help with better answers.
On Mar 23, 2012 3:04 AM, MadihaKhalid tears.blos...@gmail.com wrote:

 i just want to know that how i could develop an android application who
 give remote access to other Android mobile.

 I just want to know the ways of implementing an application through which
 I can access *Another Android device* including all the events that
 happens on the host device(just like TeamViewer for desktop).

 is there any protocol for Android device sharing ? (Note: I would like to
 do it using internet)

 please let me know any idea about it?

  --
 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

Re: [android-developers] Can a service have an ui?

2012-03-21 Thread James Black
You can do a notification to let the user know, then show the info in an
Activity.
On Mar 21, 2012 8:46 PM, guich guiha...@gmail.com wrote:

 Hi,

 Can an unbound service have also an user interface? I was thinking in
 the implementation of a message receiver. The service would start
 minimized, and keep checking for a message, and when it appears, it
 would maximize the application and show the message, then minimize
 again.

 thanks in advance,

   guich

 --
 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

Re: [android-developers] Dev Environment - maven-android-eclipse

2012-03-21 Thread James Black
I would expect that a problem is using other libraries. Are all of the jar
files built for the Android?
On Mar 21, 2012 12:17 PM, Ted Scott t...@hootinholler.com wrote:

 This is somewhat off topic, but I couldn't think of a better place to ask.

 Is anyone successfully using maven and eclipse to develop android apps? If
 so, are they complex apps? I really like the dependency management aspects
 of maven, but getting eclipse to play nicely with maven in an android
 project is problematic. In my ideal world I would be able to build and
 deploy in eclipse for development/debugging and use maven to do production
 builds.

 So, have you tried and rejected using maven? Or have you tried and gotten
 it to work nicely?

 I'm about ready to give up on getting it all to play nicely.

 -Ted

 --
 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.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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

Re: [android-developers] app freezes and get stucks

2012-03-20 Thread James Black
There are many areas to look.

Start with writing all exceptions to the log and perhaps before and after
loading images.

Then, when it locks up, get the log and see where it was when it died.

You may want to log going into onPause also.
On Mar 20, 2012 1:04 AM, vishnu raj android.vis...@gmail.com wrote:

 my app is an lock screen and during the lock activity i used to load
 images from the website as slide show. The images will continue to
 show like an loop and each time the image is downloaded from the net
 to display on the image view .

 now, after 20 or 25 minutes the app gets stuck and we cannot unlock
 the screen and cannot do anything.

 is there any problem in loading images in image view  continuously
 from the net .
 or is there any cache like feature that we can clear.

 my application loads on screen off intent



 --
 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

Re: [android-developers] Re: How to show a single country map rather then whole world map

2012-03-12 Thread James Black
Why not do your own map. Look at open streets for ideas on how to do it.
On Mar 12, 2012 2:34 AM, Harpreet Singh harry...@gmail.com wrote:

 Hi. I am just trying to crop the country map out of world map, or blur
 everything else and just show the single country but there is no hint
 regarding that.
 Regarding deadline, I think I have 2 more weeks to complete this. :)


 On Mar 9, 11:42 pm, Ali Chousein ali.chous...@gmail.com wrote:
   Here is an example on net which is showing a custom map. Plz check it
   out. Let me know if you find a way that how can we implement that in
   Android. I am also trying to figure it out.
 
  Sure. But you forgot to tell what the deadline is.

 --
 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

Re: [android-developers] Re: Android book for learners

2012-03-11 Thread James Black
If you have been working as a developer for 4 months, what in particular
are you trying to learn about from a book?

On Sun, Mar 11, 2012 at 10:48 PM, Chuck Krutsinger 
chuck.krutsin...@gmail.com wrote:

 This is a good book, Beginning Android 3:
 http://www.amazon.com/Beginning-Android-3-Mark-Murphy/dp/1430232978

 There is also a Beginning Android 4 and Advanced Android 3 and 4 from
 the same author.

 On Mar 9, 11:48 pm, pandey praveen@gmail.com wrote:
  Hi ,
  I am new to android and I have been working as android developer
  from 4 months . I was looking for some good book on android
  application development and I am confused about which one to buy .
  Help please ..

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: Android compatibility clarification

2012-03-11 Thread James Black
I use this:
uses-sdk
android:minSdkVersion=4
android:targetSdkVersion=15 /

in my manifest, so that it can work on older versions, but it will use the
newer UI if available.

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

On Sun, Mar 11, 2012 at 10:46 PM, Chuck Krutsinger 
chuck.krutsin...@gmail.com wrote:

 If you want your program to run on your phone, you will have to stick
 to the 2.2 version of Android.  If you want to develop to later
 versions, you can, but you will have to use an emulator to run and
 test the application and you won't be able to deploy to your phone
 until you upgrade to those versions.  If you write to the 2.2 version,
 it should still run on the later releases, but not the other way
 around.

 On Mar 9, 4:13 am, Vikram Bhuskute vikram...@gmail.com wrote:
  Hi All,
 
  I have an Andriod 2.2 phone . I have to write an app for my phone, which
 is
  about a book with index and navigation.
  I don't want to upgrade the phone as of now .
 
  My question is do I have to use 2.2 platform ? Or I can use any latest
 ones
  ?
  I guess if APIs are upgraded then I can not use newer version right ?
  But is there any known compatibility.
 
  Another point is if I develop app with 2.2 can it work on latest Android
  phone ?
 
  Thanks in advance for your help.
 
  Regards,
  Vikram

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: finding the java sdk

2012-03-11 Thread James Black
It won't be in your java directory, it will be installed in it's own
directory.

On Sun, Mar 11, 2012 at 10:42 PM, Chuck Krutsinger 
chuck.krutsin...@gmail.com wrote:

 Download the Java JDK at
 http://www.oracle.com/technetwork/java/javase/downloads/index.html.

 Follow the instructions posted there to install it.

 On Mar 11, 10:24 am, firebreather michaelirvingbr...@gmail.com
 wrote:
  i'm trying to download the android and java sdks so i can develop
  apps. besides the error i get in trying to download the android sdk
  mentioned previously. i dont seem to have a java sdk.exe file.
 
  in my oracle folder i have two other folders:
 
  javafx 2.0 runtime which contains a bin and lib file.
  javafx 2.0 sdk which contains bin, docs, rt, and tools, files.
 
  i dont see an application file to run the java 2.0 sdk anywhere.

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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: java.net.UnknownHostException: api.linkedin.com while trying to use sociallib in my app ?

2012-03-11 Thread James Black
It appears that url is no longer valid, so you may want to clone the
repository (which you may already have done) and perhaps find the correct
URL or remove the need for it.

On Sun, Mar 11, 2012 at 9:31 PM, Walaa Mahmoud walaamahmou...@gmail.comwrote:

 Yeah i have internet permission in manifest , I think it's something with
 proxy but i don't know how to deal with it :(


 On Mon, Mar 12, 2012 at 3:25 AM, Jonathan S xfsuno...@gmail.com wrote:

 Do you have

 uses-permission
 android:name=android.permission.INTERNET / in AndroidMainfest.xml 
 ?


 On Sunday, March 11, 2012 9:08:31 PM UTC-4, AndroidGirl8 wrote:

 Hello,
 I'm trying to use sociallib 
 http://www.**androidlibs.com/http://www.androidlibs.com/ in
 my new app i downloaded all jars needed and tried to use this code from
 here 
 http://code.google.com/p/**sociallib/wiki/SocialLibGuidehttp://code.google.com/p/sociallib/wiki/SocialLibGuide

 public class Test extends Activity {

 private static final String CONS_KEY = PutYourKeyHere;

 private static final String CONS_SEC = PutYourSecretHere;

 private static final String CALLBACK = testapp://linkedin;

 private static LinkedInConnector linkedIn;

 @Override
 public void onCreate(Bundle savedInstanceState) {

 super.onCreate(savedInstanceSt**ate);

 Uri uri = this.getIntent().getData();

 if (uri != null  uri.toString().startsWith(CALL**BACK)) {

 returningFromWebPage();
 } else {

 firstTimeHere();
 }
 }

 private void firstTimeHere() {

 linkedIn = 
 SocialNetworkHelper.createLink**edInConnector(CONS_KEY,

 CONS_SEC, CALLBACK);
 linkedIn.requestAuthorization(**this);

 // After this line of code, the user will be redirected to a web 
 page to enter  his credentials
 }

 private void returningFromWebPage() {

 // We are returning to the activity, the user has enterd 
 his credentials
 // already, so we can authorize the application

 linkedIn.authorize(this);

 ListLinkedInPost list;

 try {
 list = linkedIn.getWallPosts(); // We create a list 
 containing the user's wall posts

 linkedIn.comment(list.get(0),

 Just a comment on the first Wall 
 post); // We post a comment on the first post


 } catch (NotAuthentifiedException e) {

 Log.e(Sample, The user is not logged in);

 } catch (Exception e) {

 Log.e(Sample, e.getMessage());

 }
 }
 }







  and getting this exception

  java.net.**UnknownHostException: api.linkedin.com

 i don't know if i missing something but i'm new in using social media
 ,Please i need 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


  --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] device testing on iOS app port

2012-03-11 Thread James Black
It depends on what your application does.  For example, if you don't need
the camera or GPS you may be able to get away with using the emulator for
some devices.

What are you targeting and what features are you going to need?

On Fri, Mar 9, 2012 at 4:53 AM, Miles Egan milese...@gmail.com wrote:

 I've completed an iOS app for a client and they've asked me to do an
 Android port for them. I haven't written any real Android apps before but
 I've been hacking around on some of my own apps and studying the docs long
 enough to feel confident that I understand the APIs and conventions well
 enough to do the port. However, I'm a little concerned about testing. I
 don't currently own any Android devices at all. I'm willing to buy 2-3
 devices for testing purposes but I don't have the budget to buy more than
 this or to subscribe to one of the online testing services.

 So before I commit to this project, I'd like to ask people with more
 experience this: are two or three different phones enough to test a
 relatively simple app before release or would I need more to represent the
 large number of different devices out there?

 --
 miles

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Simple chess engine

2012-03-11 Thread James Black
Why not just write your own, since it won't be used for chess games?

You may want to look for some open source java chess games, to see what may
meet your needs.

I found this one with a quick search:
http://www.chesspresso.org/

On Sat, Mar 10, 2012 at 12:02 PM, onur formula...@gmail.com wrote:

 Hello i am new to android. i want to make a game like chess. i need most
 simple chess engine/sample. i searched about it but i need simple engine
 because i will not use it for chess games Which one do you suggest?

 --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Suspend from market?

2012-03-11 Thread James Black
I have never got a suspension, but on this page they have an example of a
message that would seem more likely to be legit, though I don't know
anything about the merits of the issue on this page, just looking at the
suspension email:

http://omgdroid.com/well-known-app-dev-team-better-android-apps-suspended-from-android-market-no-reason-was-given/


If you were to be suspended I doubt they will give you two days, as that
means someone has to do something two days from now (too much work), so if
you aren't suspended now I would guess it is a fake.

On Sun, Mar 11, 2012 at 7:15 AM, -Marcel- marcel.hifin...@gmail.com wrote:

 *Real or just a fake? *


 *Subject: Notification From Google Play
 From: Android Market Support androidmarketsp...@gmail.com*

 Hi,
 This is a notification that the application, *[APPNAME]*, with package *
 [PACKAGE-ID]* should be removed from Google Play in 2 business day due
 to a violation of the Developer Content Policy. For specific details
 regarding this particular violation, please see the Spam and Placement in
 the Store section of our Content Policy. In case the application is not
 removed, the Google Play publisher account will be suspended.


 *I'm not sure, but I think it is a fake...*


  --
 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Stack overflow error in android - help needed to execute

2012-03-11 Thread James Black
Have you looked in the referenced eclipse log file?

On Sun, Mar 11, 2012 at 6:42 PM, Karthick Siva karthicksiv...@gmail.comwrote:

 i get a stack overflow error while trying to draw a qr code in canvas,
 saying unable to create .dex file and prompting to close eclipse, even
 i changed memory in eclipse.ini but nothing worked

-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] What are Android websites ?

2012-03-11 Thread James Black
This has nothing to do with this list, but a mobile website can have
different meanings, but it will probably be some variation on a site that
works best on mobile devices, peryable to get GPS info, for example.
On Mar 11, 2012 6:31 PM, Farhan Tariq farhan@gmail.com wrote:

 Hi, I recently ran into online jobs for making mobile phone website and it
 got me a little confused. Aren't they just webViews ? Or is there more to
 it? To be able to make an android website, do I need to look into anything
 other than web View ? Is it just making a webView content? If it is, why do
 people require a website for a phone, when they can visit it from the
 phone's  browser?

 Looking forward to hearing from you.

 Regards,

 Farhan

  --
 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

Re: [android-developers] content provider locking?

2012-03-08 Thread James Black
Have the service do a callback to activities during just before starting
and after to prevent this, and return an empty list if they are not
well-behaved and request during this time.
On Mar 8, 2012 9:43 AM, bob b...@coolfone.comze.com wrote:

 So, I have a content provider that maintains a list of movies.

 Also, there is a service that runs in the background and refreshes the
 list of movies every five minutes.

 Is there a good way to ensure no one accesses the content provider's list
 of movies while they are being refreshed?  I don't want an activity to get
 a partial list of movies.

 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

-- 
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] Selling an app: Sales Tax and Tax Returns?

2012-03-05 Thread James Black
You will need to ask an accountant but if you make more than a threshold I
expect you will need to file your own taxes, but I am not an accountant.
On Mar 5, 2012 4:24 AM, bigluc biglu...@gmail.com wrote:

 I am a young developer (under 18), and am wondering about selling an app,
 but wonder about taxes. I live in California, US and have a parent who can
 file taxes. I am wondering if I need a buissness, report sales, or file a
 tax return on profit that I make from a paid app.

 --
 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

Re: [android-developers] Not able to display map in android app.

2012-03-04 Thread James Black
That seems to be a standard error that doesn't cause any issues so you will
have some other problem
On Mar 4, 2012 1:48 PM, ASHISH ashishkcusa...@gmail.com wrote:

 I am not able to display map in my android app.
 I am getting Exception  Couldn't get connection factory client.

 Anyone please help me for that.

 Thanks And Regards
 Ashish Keshri

 --
 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

Re: [android-developers] Splitting Android Royalties among two developers

2012-03-04 Thread James Black
Have it go to an accoutrements (perhaps PayPal) that both of you have
access to.
On Mar 4, 2012 2:03 PM, Mark swinef...@gmail.com wrote:

 Hi all

 I'm currently developing an app with a co-developer, and of course we
 want to split any earnings from the app we make. However, we live in
 different countries, and so transferring large amounts of money into/
 out of a country is often a headache. There are also often tax
 implications in large transfers. Is there any way to split the income
 at source? That is, is there any way that, whenever our app is
 downloaded, 50% of the income goes to one account and 50% to another
 (after Google's 30% of course). Does anyone know if this is possible,
 or would it be better to handle it afterwards.

 Thanks,
 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

-- 
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] About SQLite

2012-02-25 Thread James Black
Look at logcat and find the exception.
On Feb 24, 2012 5:40 PM, nunna narendra android developer 
nunnamca2...@gmail.com wrote:

 when i am trying to fetch the data from local database it is not
 working how can i solve this problem plz help me .

 --
 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

Re: [android-developers] Invoking web service from android.

2012-02-21 Thread James Black
You should ask on a ksoap list as this is not an android issue.
On Feb 20, 2012 11:29 PM, indumathy raju indumathyr...@gmail.com wrote:

 Hi all,
 I am new to android development. I am trying to invoke webservice from
 android using Ksoap2- 2.5 version. Below is the snippet of code I'm using.
 Getting SOAP-ENV: server faultstring excception. I couldt understand this
 error. help me to fix this.

 *ERROR*
 SoapFault - faultcode: 'SOAP-ENV:Server' faultstring: 'Castor
 unmarshalling exception; nested exception is
 org.exolab.castor.xml.MarshalException: The namespace associated with the
 prefix 'c' could not be resolved.' faultactor: 'null' detail: null

 *Code Snippet*

 protected void getWsUsingSoap() {
  final String NAMESPACE = http://com/ctdc/service;;
  final String URL =
 
 http://10.0.2.2:8080/mySpringPro/itemservice/services/ServiceImpl.wsdl;;

  final String SOAP_ACTION = ServiceImpl;
  final String METHOD_NAME = message;

 SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

 SoapSerializationEnvelope envelope =
 new SoapSerializationEnvelope(SoapEnvelope.VER11);
 envelope.setOutputSoapObject(request);
 HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

 try {
 androidHttpTransport.call(SOAP_ACTION, envelope);
  //SoapPrimitive result =
 (SoapPrimitive)envelope.getResponse();
  //System.out.println(res+result.toString());

 //Object response= envelope.getResponse();
 Object resultsRequestSOAP = envelope.bodyIn;
 //SoapObject resultsRequest = (SoapObject) resultsRequestSOAP;
 System.out.println(Received ===:
 +resultsRequestSOAP);
 } catch (Exception e) {
 e.printStackTrace();
 }

 }


 --
 Regards,

 INDU






 --
 Cheers,

 INDU






 --
 Cheers,

 INDU



  --
 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

Re: [android-developers] How to restrict my app??

2012-02-16 Thread James Black
Why not email it to those people, then?

Otherwise your program will need to query a server for permission, so if
there is no network connection the program won't start.
On Feb 16, 2012 6:30 AM, muhammad.ume...@hotmail.com 
muhammad.ume...@hotmail.com wrote:

 hi,
   I want to restrict my android app to just open on specific No.
 of mobiles that i want. how can i do that?




 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


-- 
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] How to restrict my app??

2012-02-16 Thread James Black
If you are the only user, or a small group, then just distribute it via
email, but you need to trust they won't send that email to others.
On Feb 16, 2012 6:58 AM, Muhammad UMER muhammad.ume...@hotmail.com
wrote:

  hi,
 thanks for reply, i have a server client app, client is my mobile, and
 i give the IP address of my server so you mean it's enough. or  i have to
 qurey for verfication?


 Regards


 umer
 --
 Date: Thu, 16 Feb 2012 06:41:54 -0500
 Subject: Re: [android-developers] How to restrict my app??
 From: planiturth...@gmail.com
 To: android-developers@googlegroups.com

 Why not email it to those people, then?
 Otherwise your program will need to query a server for permission, so if
 there is no network connection the program won't start.
 On Feb 16, 2012 6:30 AM, muhammad.ume...@hotmail.com 
 muhammad.ume...@hotmail.com wrote:

 hi,
   I want to restrict my android app to just open on specific No.
 of mobiles that i want. how can i do that?



 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


 --
 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

Re: [android-developers] accessing android mobiles remotely

2012-02-08 Thread James Black
If you want to login remotely then no, but you can have a server on the
phone and you can interact.
On Feb 8, 2012 4:58 AM, Pradeep predeeps...@gmail.com wrote:

 hi...
 Do any one have any about how to access the android mobiles remotely
 over wifi, as we do in the computers.
 if possible kindly send me the website links...
 thanks in advance.
 bye.

 --
 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

Re: [android-developers] How to use Google Map API for Android with the offline catch of map

2012-02-08 Thread James Black
There is an open-source database that may work for you, but it may not be
complete enough for you.
On Feb 7, 2012 5:06 PM, King Leung kingleun...@gmail.com wrote:

 Hello, may I ask a question: How to use Google Map API for Android
 with offline map catch? Because our application will use in this
 nonetwork places, we must pre download the offline catch of map.
 If it's only supply for enterprise, and what is the price for it, and
 what is the contact? I'm in china.
 Thanks a lot!

 --
 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

Re: [android-developers] Calling WCF Restfull

2012-02-08 Thread James Black
What I did was to create a client program in JavaScript so it could pass
the data and using the chrome developer tool I captured the data sent so I
could paste it into my program and modified the code until it matched.

I found that to be the easiest approach.
On Feb 7, 2012 7:44 PM, Heladio Benicio benicio.hela...@gmail.com wrote:

 json

 2012/2/7 James Black planiturth...@gmail.com

 How is the data packaged?

 Is JSON or XML, for example
 On Feb 7, 2012 5:02 PM, Heladio Benicio benicio.hela...@gmail.com
 wrote:

 Hi all,

 Does anyone know how to call a service rest post parameter passing
 an object as an object and getting in return?

 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

  --
 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




 --
 *Att,*
 *
 *
 *Heládio Benicio*



  --
 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

Re: [android-developers] Calling WCF Restfull

2012-02-07 Thread James Black
How is the data packaged?

Is JSON or XML, for example
On Feb 7, 2012 5:02 PM, Heladio Benicio benicio.hela...@gmail.com wrote:

 Hi all,

 Does anyone know how to call a service rest post parameter passing
 an object as an object and getting in return?

 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

-- 
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] bindService fails when startService called in previous activity

2012-02-05 Thread James Black
I am not certain how to resolve this, but in one Activity I call
startService, and then immediately call to start the next Activity:
Intent myIntent = new Intent(mContext, MyService.class);
  myIntent.putExtra(data1, data1Array);
  myIntent.putExtra(data2, data2Array);
  myIntent.putExtra(names, namesList.toArray(new String[0]));
  startService(myIntent);   // == This works, the service starts,
begins to process the data

  Intent intent = new Intent();
  myIntent.putExtra(data1, data1Array);
  myIntent.putExtra(data2, data2Array);
  myIntent.putExtra(names, namesList.toArray(new String[0]));

intent.setClassName(
my.package,
my.package.SecondActivity);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);  // == This works, goes to the next activity

This works, the service starts, and begins to process the data as expected.

This works, so I am now in the new Activity, and want to connect to my
Service so I can get data from the callback interface.

So I have this in the second Activity:
@Override
protected void onResume() {
super.onResume();
if (bindService(new Intent(IMyService.class.getName()),
mConnection, Context.BIND_AUTO_CREATE)) {
Toast.makeText(mContext, Bound to service succeeded,
Toast.LENGTH_LONG).show();
} else {
Toast.makeText(mContext, Bound to service failed,
Toast.LENGTH_LONG).show();
}
}

And this fails.

So, if the service is already running, how do I connect to this service so
I can get the updates?

IMyService is created by using a .aidl file, btw.

-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] App activation by Voice

2012-02-03 Thread James Black
I expect the answer to the first question is no, unless you have another
program already running.

For the second I expect the market application has something running in the
background that will periodically check for updates
On Feb 2, 2012 10:12 PM, Dhaval Varia dhavalkva...@gmail.com wrote:

 I am having two questoons

 1 . Is there any way to call my application by voice?

 2. How to update my software,which is already there on market? Actually i
 wanted to understand,how the software update taking place?

 --
 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

Re: [android-developers] android how to visit those files on pc server by wifi

2012-02-02 Thread James Black
Call a server on a PC, or look at iCloud and copy their approach.
On Feb 2, 2012 2:03 AM, silvan_liu silvanliuandr...@gmail.com wrote:

 android how to visit those files on pc server by wifi?

 --
 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

Re: [android-developers] MS SQL connection

2012-02-02 Thread James Black
MS should have examples using soap, but you may want to use REST instead.

Look for WCF and MSSQL on Google.
On Feb 2, 2012 7:40 AM, anand jh jhanan...@gmail.com wrote:

 can u give a sample code web service for accessing database

 --
 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] How to compile .aidl file that references a class in an android library

2012-02-02 Thread James Black
I have a library that my application uses.

In one version of my program I am going to have an Android Service, and I
am trying to compile the .aidl file, but, it references a class in my
android library, and now I am getting an error that it can't find the file.

I am using Eclipse for the compilation.

This is what my .aidl file looks like:

package com.myproject;

import com.mylibrary.model.Road;   //  == I am getting the error on this
line
import android.location.Location;

interface MyService {
java.util.ListRoad retrieveNewPath();

Location retrieveCurrentLocation();
}

-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Need architecture guidance in reference to a social app

2012-01-31 Thread James Black
Why not just send an SMS message, and look for a particular beginning to a
message, perhaps.

You can read this blog to see how to read messages:
http://droidcoders.blogspot.com/2011/09/sms-receive.html

On Tue, Jan 31, 2012 at 8:20 PM, leftcont...@gmail.com 
leftcont...@gmail.com wrote:

 i need to know how an actual developer might solve this problem .

 I have the app on my device and so do you.
 In the app i write a message and this message is passed to your app .
 You open and your app are notified a new message awaits.
 The action you take in reference to this message generates a
 notification to me and an update to facebook.
 This action also generates a  date and time that will populate another
 activity on your app and mine.

 I am thinking sqllite running off the sd on each device

 Question: How do i handle the exchange between the two devices.
 Am i going to need a server to accomplish 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




-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] Waypoints with Google Maps API

2012-01-30 Thread James Black
What do you mean by tracing a route?

To handle multiple way points I keep data in an array and let the user know
when they are near the waypoint.
On Jan 30, 2012 11:38 AM, alexslx alex_...@msn.com wrote:

 Hi folks,

 I'm searching in the web how to trace route with multiple waypoints,
 but i just found how to do it using Google Maps API for web
 (javascript). I also looked for gmaps android api, but didn't found
 nothing.

 I want to trace an route that my device is going, via GPS.

 Someone knows where i can find some tech details how to do it, or some
 example?

 --
 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

Re: [android-developers] MS SQL connection

2012-01-30 Thread James Black
Write a webservice to go to the database.
Call the webservice from the phone.
On Jan 30, 2012 11:41 AM, anand jh jhanan...@gmail.com wrote:

 I need to develop a android application in that I want to access MS
 SQL from my android application.Can some help as by giveing some
 code.Advance 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

-- 
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] UI requirement

2012-01-23 Thread James Black
How about making an expandable list then.
On Jan 23, 2012 3:59 AM, Rachna Sharma designndeve...@gmail.com wrote:

 Hi Group,

 I have UI requirement shown below:

 |---|
 |Header-1  |
 | Checkbox1[]|
 | Checkbox2[]|
 | Checkbox3[]|
 |---|
 |Header-2  |
 | Checkbox1 []   |
 | Checkbox2 []   |
 | Checkbox3 []   |
 and so on clicking below button.
 BUTTON  - clicking on this button on bottom will create header and 3
 checkbox everytime. How can i achieve this? This is very urgent. I can
 not take these in XML laypout as these need to be added dynamically on
 runtime.

 If possible, Please provide any sample code and guide me.

 Thanks,
 Rachana

 --
 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

Re: [android-developers] Want help regarding videos security in android application

2012-01-23 Thread James Black
If he stores it on the SD card can't anyone get to it?
On Jan 23, 2012 6:56 AM, Mark Murphy mmur...@commonsware.com wrote:

 On Sun, Jan 22, 2012 at 11:47 PM, Harshal Patil harshal...@gmail.com
 wrote:
  I am developing an application for android froyo tablet. I wish to
  store approx 15GB video on inbuilt memory of tablet with some security
  and access that video only through my application. So that no one can
  able to copy that videos.
  So plse some one suggest how i will make security for videos.

 Anyone who roots their device will be able to access the videos.
 Either stream them off the Internet or do not worry about rooted
 device users.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books

 --
 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] Spinner itemselectedlistener not working after extending ArrayAdapter

2012-01-23 Thread James Black
In the onCreate method I define this:
userNameSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView? parentView,
View selectedItemView, int position, long id) {
 Log.i(TAG, position);
}
});

In onResume and after calling a dialog where a new row can be added to my
list I call this, and it displays the Spinner as I expect when I touch it,
but, the OnItemSelectedListener doesn't appear to be working, as it never
calls the Log method in onItemSelected.  I am curious what I did wrong, or
if my order is wrong.
userNameSpinner.setAdapter(new ArrayAdapterString(mContext,
android.R.layout.simple_list_item_1, mylist
.toArray(new String[0])) {
@Override
public View getDropDownView(int position, View convertView,
android.view.ViewGroup parent) {
View v = convertView;
if (v == null) {
Context mContext = this.getContext();
LayoutInflater vi = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.row, null);
}
TextView tv = (TextView) v.findViewById(R.id.spinnerTarget);
tv.setText(mylist.get(position));
tv.setTextColor(Color.RED);
return v;
}
});


-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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] red crosses - beginner topic

2012-01-21 Thread James Black
I expect you haven't added these libraries to the build path, but this
question is off-topic for this list, so you can Google for more.
On Jan 20, 2012 8:15 PM, Nathan Harness 7600on...@gmail.com wrote:


 I admit to being a noob at Java/Android and Eclipse doesn't make for a
 nice beginner experience.

 The screenshots should tell the story, but ask ?? if not.

 There are 2 special java libraries [IOIOLib and IOIOLibBT] that need to be
 linked to the actual project:  IOIOSimpleApp

 I think the problem is improperly linked libraries which results in a
 multitude of errors of missing methods- struggling with how to give it what
 it wants.  I built a JAR of IOIOLib which you see in shot3 and referenced
 that external file...don't think that worked.  IOIOLibBT JAR file could not
 be created (errors).

 FYI:  IOIOLib and and IOIOLibBT are java libraries for a hardware device
 (embedded micro controller) that talks to Android over Bluetooth.  The
 IOIOSimpleApp is a sample project from the device maker and so that code,
 nor the libraries are the problem.  They aren't talking to each other

 Please help.  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

-- 
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] Dashboard Application

2012-01-20 Thread James Black
It looks like you are using a table.

You will need to update a file on an SD card or store this in preferences
or a database, but the buttons and links should not be in your layout.

I would suggest the app be empty then it gets an update and places the
buttons.

You may need to specify button colors or types in this file that is
downloaded.
On Jan 20, 2012 8:31 AM, Ubiracy Santos ubiracy@gmail.com wrote:

 Hello Android Developers!!!

 I have a dashboard application wich will be updated outside with a web
 application such as webservice. What is the best form to develop this
 application?


 https://lh5.googleusercontent.com/-2aqM99H11wQ/TxlsIOd7rxI/AGQ/CQrdzNd5MSY/s1600/HOME.png
 I will update the buttons and its links and the data will have to be
 available offline.

 --
 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

Re: [android-developers] Dashboard Application

2012-01-20 Thread James Black
You can instantiate the buttons from Java and add it to the table row you
would also create.

Look at the ask for the button widget.
On Jan 20, 2012 10:29 AM, Ubiracy Santos ubiracy@gmail.com wrote:

 How can I create dynamic buttons?

 --
 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] Best way to have Service inform Activity where user currently is

2012-01-19 Thread James Black
My navigation program is all in an Activity, and now I need to have the
part that makes the determination where the user is.

So, the activity will be in charge of drawing on the MapOverlay, but the
Service will be getting the location updates.

How should the service inform the drawing activity of the current location
and the path?

It would seem that the activity should probably just poll the service, so
that if there is no request for information then the service will just
quietly keep track of what is going on, and just put up a notification when
the user reaches their endpoint.

But I am not certain if this is the best approach.

Thank you.

-- 
I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
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   >