[android-developers] Multiple dynamic repeating alarm in application.

2011-09-21 Thread jagtap.jj
Hi,

  I have Notes like application, for every note there is one repeating
alarm, notes can grow to any number. for every note user will set
repeating alarm.
  How to achieve this? Any suggestions?

Thanks  Regards
Jalandar Jagtap

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


[android-developers] Re: Multiple dynamic repeating alarm in application.

2011-09-21 Thread jagtap.jj
It got resolved. Using pending intent with unique request code.

On Sep 21, 12:20 pm, jagtap.jj jagtap...@gmail.com wrote:
 Hi,

   I have Notes like application, for every note there is one repeating
 alarm, notes can grow to any number. for every note user will set
 repeating alarm.
   How to achieve this? Any suggestions?

 Thanks  Regards
 Jalandar Jagtap

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Handling webview event using JavaScript.

2011-05-23 Thread jagtap.jj
Hi All,

  I need guide, I am developing application using Android WebView, But
I want the click and touch event of WebView should be handled using
JavaScript.
  How to achieve this.

Thanks.

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


[android-developers] Re: android play youtube

2010-02-21 Thread jagtap.jj
Is there example to upload video from android to YouTube?
How we can achieve in Android to upload a video on YouTube?

On Feb 12, 8:23 am, David Toledo dtole...@gmail.com wrote:
 I used this url for  view video youtube in android. It is OK.

 startActivity(new Intent(Intent.ACTION_VIEW, 
 Uri.parse(http://www.youtube.com/watch?v=xxx;)));

 I need open the video by default in  Youtube app
 I don't  select before between Browser or Youtube app

 Thanks

 2010/2/11 DAVIDT dtole...@gmail.com



  Hi All

  Is possible play video from youtube with url using MediaPlayer

  Thanks
  David

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Camcorder not woking for video recording sdk1.6r1

2009-12-07 Thread jagtap.jj
Hello everybody

I tried the Camcorder(in built Android app) for both avds default and
custom(with camera) to record video, but the media recorder start
fails.
Is there any suggestion?

Here is log cat:

12-07 14:09:49.477: ERROR/CameraService(554): mHardware-startRecording
() failed with status -2147483648
12-07 14:09:49.527: ERROR/MediaRecorder(876): start failed:
-2147483648
12-07 14:09:49.789: ERROR/videocamera(876): Could not start media
recorder.
12-07 14:09:49.789: ERROR/videocamera(876):
java.lang.RuntimeException: start failed.
12-07 14:09:49.789: ERROR/videocamera(876): at
android.media.MediaRecorder.start(Native Method)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.camera.VideoCamera.startVideoRecording(VideoCamera.java:
1072)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.camera.VideoCamera.onShutterButtonClick(VideoCamera.java:
378)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.camera.ShutterButton.performClick(ShutterButton.java:116)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.View.onTouchEvent(View.java:4133)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.View.dispatchTouchEvent(View.java:3672)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1202)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.os.Handler.dispatchMessage(Handler.java:99)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.os.Looper.loop(Looper.java:123)
12-07 14:09:49.789: ERROR/videocamera(876): at
android.app.ActivityThread.main(ActivityThread.java:4203)
12-07 14:09:49.789: ERROR/videocamera(876): at
java.lang.reflect.Method.invokeNative(Native Method)
12-07 14:09:49.789: ERROR/videocamera(876): at
java.lang.reflect.Method.invoke(Method.java:521)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:791)
12-07 14:09:49.789: ERROR/videocamera(876): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
12-07 14:09:49.789: ERROR/videocamera(876): at
dalvik.system.NativeStart.main(Native Method)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 preserve old Db table, while adding new table columns for new version of app?

2009-11-16 Thread jagtap.jj
Hello everybody

Is there way for Android or in SQLite to preserve old version Db table
columns, while adding new table columns for new version.

The new application version should not vanish all user data from old
version.

Any suggestions?

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


[android-developers] Re: How to preserve old Db table, while adding new table columns for new version of app?

2009-11-16 Thread jagtap.jj
Thanks for reply

Flying Coder your approach looks smart,
How it will be for remote update, will it give proper results for apps
version up-gradation remotely.

Thank you.

On Nov 16, 12:57 pm, Flying Coder av8r.st...@gmail.com wrote:
 Override the onUpdate method of SQLiteOpenHelper and do:

 if (oldVersion  VERSION_WHEN_COLUMN_ADDED)
      db.execSQL(alter table  + TABLE_NAME +  add column  +
 COLUMN_NAME +   + COLUMN_TYPE + ;);

 Cheers,
 Steve

 On Nov 16, 8:17 am, jagtap.jj jagtap...@gmail.com wrote:

  Hello everybody

  Is there way for Android or in SQLite to preserve old version Db table
  columns, while adding new table columns for new version.

  The new application version should not vanish all user data from old
  version.

  Any suggestions?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] java.lang.StackOverflowError for sdk1_5r3

2009-09-17 Thread jagtap.jj

Hello everybody

Some serious error

I am using custom listadapter for ListActivity, but half adapter is
getting built and then throws java.lang.StackOverflowError.

 When I ran the same code on sdk1_1r1 it works perfect. When do i
try to run on sdk1_5r3, gives this error.
 Generally java.lang.StackOverflowError when happens if the some
function caught in infinite recursion, but if this is case then why
does it working on sdk1.1r1 perfectly.

I tested the appl on sdk1_5r3 both emulators default AVD(96 RAM) and
custom AVD(523 RAM).

For all try it gives the same error.

Any suggestion will great help.

Log Cat:

09-17 11:51:22.437: INFO/dalvikvm(880): Stack overflow, expanding
(0x41048200 to 0x41048000)
09-17 11:51:22.447: INFO/dalvikvm(880): Shrank stack (to 0x41048200,
curFrame is 0x41049cd8)
09-17 11:51:22.507: DEBUG/AndroidRuntime(880): Shutting down VM
09-17 11:51:22.548: WARN/dalvikvm(880): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)


09-17 11:03:54.488: ERROR/AndroidRuntime(769): Uncaught handler:
thread main exiting due to uncaught exception
09-17 11:03:54.597: ERROR/AndroidRuntime(769):
java.lang.StackOverflowError
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.text.Styled.measureText(Styled.java:371)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.text.Layout.measureText(Layout.java:1600)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.text.Layout.getLineMax(Layout.java:654)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.text.Layout.draw(Layout.java:310)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.text.BoringLayout.draw(BoringLayout.java:356)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.widget.TextView.onDraw(TextView.java:3921)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.View.draw(View.java:5838)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.widget.ListView.dispatchDraw(ListView.java:2820)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.View.draw(View.java:5944)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.widget.AbsListView.draw(AbsListView.java:2121)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.View.draw(View.java:5841)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
09-17 11:03:54.597: ERROR/AndroidRuntime(769): at

[android-developers] Re: java.lang.StackOverflowError for sdk1_5r3

2009-09-17 Thread jagtap.jj

Thanks for quick  reply

In list item having four views[2 text views, and 2 buttons]. Is there
any another way, I want to keep 4 views for single list item. Actually
In app I do have another Tab also it also having custom list adapter
and list item also having 4 views(2 TextView and 2 ImageButtons), that
Tab works fine.

Why does the same list item gets work perfectly on sdk1.1r1

On Sep 17, 11:41 am, Romain Guy romain...@google.com wrote:
 You have (way) too many views. Remove a few. Your app will load
 faster, layout faster, draw faster and won't crash.



 On Wed, Sep 16, 2009 at 11:38 PM, jagtap.jj jagtap...@gmail.com wrote:

  Hello everybody

  Some serious error

  I am using custom listadapter for ListActivity, but half adapter is
  getting built and then throws java.lang.StackOverflowError.

      When I ran the same code on sdk1_1r1 it works perfect. When do i
  try to run on sdk1_5r3, gives this error.
      Generally java.lang.StackOverflowError when happens if the some
  function caught in infinite recursion, but if this is case then why
  does it working on sdk1.1r1 perfectly.

  I tested the appl on sdk1_5r3 both emulators default AVD(96 RAM) and
  custom AVD(523 RAM).

  For all try it gives the same error.

  Any suggestion will great help.

  Log Cat:

  09-17 11:51:22.437: INFO/dalvikvm(880): Stack overflow, expanding
  (0x41048200 to 0x41048000)
  09-17 11:51:22.447: INFO/dalvikvm(880): Shrank stack (to 0x41048200,
  curFrame is 0x41049cd8)
  09-17 11:51:22.507: DEBUG/AndroidRuntime(880): Shutting down VM
  09-17 11:51:22.548: WARN/dalvikvm(880): threadid=3: thread exiting
  with uncaught exception (group=0x4000fe70)

  09-17 11:03:54.488: ERROR/AndroidRuntime(769): Uncaught handler:
  thread main exiting due to uncaught exception
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):
  java.lang.StackOverflowError
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.text.Styled.measureText(Styled.java:371)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.text.Layout.measureText(Layout.java:1600)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.text.Layout.getLineMax(Layout.java:654)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.text.Layout.draw(Layout.java:310)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.text.BoringLayout.draw(BoringLayout.java:356)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.widget.TextView.onDraw(TextView.java:3921)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.View.draw(View.java:5838)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1486)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1484)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1484)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1484)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1484)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.widget.ListView.dispatchDraw(ListView.java:2820)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.View.draw(View.java:5944)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.widget.AbsListView.draw(AbsListView.java:2121)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1486)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1484)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.View.draw(View.java:5841)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.widget.FrameLayout.draw(FrameLayout.java:352)
  09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
  android.view.ViewGroup.drawChild(ViewGroup.java:1486)
  09-17 11:03:54.597: ERROR

[android-developers] Re: java.lang.StackOverflowError for sdk1_5r3

2009-09-17 Thread jagtap.jj

Marvelous!

I just reduced one hierarchy of view group, and its working fine.
Thanks for valuable guide.

The hierarchy for list item layout was LinearLayout-TableLayout-
TableRow-LinearLayout-Button

Now just I removed the last layer of hierarchy  LinearLayout-
TableLayout-TableRow-Button
and now its working fine.

In Android, what Is max view hierarchy level normally can be
allowable?

Once again thanks for help.


On Sep 17, 12:08 pm, Romain Guy romain...@google.com wrote:
 The problem is the number of parents you have.



 On Wed, Sep 16, 2009 at 11:52 PM, jagtap.jj jagtap...@gmail.com wrote:

  Thanks for quick  reply

  In list item having four views[2 text views, and 2 buttons]. Is there
  any another way, I want to keep 4 views for single list item. Actually
  In app I do have another Tab also it also having custom list adapter
  and list item also having 4 views(2 TextView and 2 ImageButtons), that
  Tab works fine.

  Why does the same list item gets work perfectly on sdk1.1r1

  On Sep 17, 11:41 am, Romain Guy romain...@google.com wrote:
  You have (way) too many views. Remove a few. Your app will load
  faster, layout faster, draw faster and won't crash.

  On Wed, Sep 16, 2009 at 11:38 PM, jagtap.jj jagtap...@gmail.com wrote:

   Hello everybody

   Some serious error

   I am using custom listadapter for ListActivity, but half adapter is
   getting built and then throws java.lang.StackOverflowError.

       When I ran the same code on sdk1_1r1 it works perfect. When do i
   try to run on sdk1_5r3, gives this error.
       Generally java.lang.StackOverflowError when happens if the some
   function caught in infinite recursion, but if this is case then why
   does it working on sdk1.1r1 perfectly.

   I tested the appl on sdk1_5r3 both emulators default AVD(96 RAM) and
   custom AVD(523 RAM).

   For all try it gives the same error.

   Any suggestion will great help.

   Log Cat:

   09-17 11:51:22.437: INFO/dalvikvm(880): Stack overflow, expanding
   (0x41048200 to 0x41048000)
   09-17 11:51:22.447: INFO/dalvikvm(880): Shrank stack (to 0x41048200,
   curFrame is 0x41049cd8)
   09-17 11:51:22.507: DEBUG/AndroidRuntime(880): Shutting down VM
   09-17 11:51:22.548: WARN/dalvikvm(880): threadid=3: thread exiting
   with uncaught exception (group=0x4000fe70)

   09-17 11:03:54.488: ERROR/AndroidRuntime(769): Uncaught handler:
   thread main exiting due to uncaught exception
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):
   java.lang.StackOverflowError
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.text.Styled.measureText(Styled.java:371)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.text.Layout.measureText(Layout.java:1600)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.text.Layout.getLineMax(Layout.java:654)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.text.Layout.draw(Layout.java:310)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.text.BoringLayout.draw(BoringLayout.java:356)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.widget.TextView.onDraw(TextView.java:3921)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.View.draw(View.java:5838)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1486)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1484)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1484)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1484)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1484)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.widget.ListView.dispatchDraw(ListView.java:2820)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.View.draw(View.java:5944)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.widget.AbsListView.draw(AbsListView.java:2121)
   09-17 11:03:54.597: ERROR/AndroidRuntime(769):     at
   android.view.ViewGroup.drawChild(ViewGroup.java:1486)
   09-17

[android-developers] Re: How do I Activate the camera application from my app?

2009-08-21 Thread jagtap.jj

Refer this
Intent i = new Intent(android.media.action.IMAGE_CAPTURE);

try{
startActivityForResult(i, TAKEPICTURE_ACTIVITY);

}catch(ActivityNotFoundException e){
Toast.makeText(this, Application not available,
Toast.LENGTH_SHORT).show();
Log.e(TAG, Error in taking picture);
}

 @Override
protected void onActivityResult(int requestCode, int resultCode,
Intent intent) {
super.onActivityResult(requestCode, resultCode, intent);

  if (requestCode == TAKEPICTURE_ACTIVITY){
if (resultCode == RESULT_OK) {

Bundle extras = intent.getExtras();
Bitmap bitmap = (Bitmap) extras.get(data) ;
 }
  }
}

in the bitmap  u will get the picture taken from camera.


On Aug 20, 5:26 am, dualboot sv2...@gmail.com wrote:
 How do I pass an Intent from my application to the Camera application
 to bring it to the foreground?

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



[android-developers] Re: maps api and 1.5

2009-07-30 Thread jagtap.jj

Refer this
 http://www.anddev.org/viewtopic.php?p=24902#24902

On Jul 21, 10:12 pm, Spiral jmri...@gmail.com wrote:
 Same here.

 On Jul 6, 8:45 pm, Georgy georgearna...@gmail.com wrote:

  Hello Brian,

  I am having your same issue. Were you able to solve it?

  thanks

  On May 25, 8:48 am, brian.schimmel brian.schim...@googlemail.com
  wrote:

   Hi everybody,

   I'm getting the same problems. Of course I have read this thread and
   tried everything that was suggested (and some more), but it does not
   work. Here are the facts:
    * Using SDK 1.5_r1
    * Project target in Eclipse is Google APIs 1.5
    * AndroidManifest.xml contains uses-sdk android:minSdkVersion=3 /
   inside the manifest element
    * AndroidManifest.xml contains uses-library
   android:name=com.google.android.maps / inside the application
   element
    * maps.jar is NOT added manually to the buildpath, but is shown under
   Project - Google APIs - maps.jar
    * The maps key is setup properly (that is, worked before switching to
   1.5)
    * code works when compiled againt the 1.1 API, but I need to compile
   for 1.5 because I want to provide a Widget.

   On the emulator (Firmware 1.5, google_sdk_eng 1.5 CUPCAKE 147336 test-
   keys, the one that comes with DSK 1.5_r1) I get this:

   05-25 12:33:40.554: INFO/ActivityManager(568): Starting activity:Intent{ 
   comp={com.webxells.ourapp/.OurMapview} }
   05-25 12:33:40.564: DEBUG/AndroidRuntime(819): Shutting down VM
   05-25 12:33:40.564: WARN/dalvikvm(819): threadid=3: thread exiting
   with uncaught exception (group=0x4000fe70)
   05-25 12:33:40.564: ERROR/AndroidRuntime(819): Uncaught handler:
   thread main exiting due to uncaught exception
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):
   android.content.ActivityNotFoundException:Unableto find explicit
   activity class {com.webxells.ourapp/.OurMapview}; have you declared
   this activity in your AndroidManifest.xml?
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   android.app.Instrumentation.checkStartActivityResult
   (Instrumentation.java:1480)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   android.app.Instrumentation.execStartActivity(Instrumentation.java:
   1454)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   android.app.Activity.startActivityForResult(Activity.java:2656)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   android.app.Activity.startActivity(Activity.java:2700)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   com.webxells.ourapp.CommonUi.onOptionsItemSelected(CommonUi.java:64)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   com.webxells.ourapp.OurAppStart.onOptionsItemSelected(OurAppStart.java:
   22)
   05-25 12:33:40.584: ERROR/AndroidRuntime(819):     at
   android.app.Activity.onMenuItemSelected(Activity.java:2085)
   ... some more...

   Of course, the activity is declared in the AndroidManifest.xml, and
   this declaration worked when compiling against the 1.1 API.

   And on a real device (HTC Dev Phone 1, Firmware 1.5, dream_devphone-
   userdebug 1.5 CRB21 147201 test-keys) I get another error, instead of
   the one above:

   05-25 12:17:34.764: WARN/dalvikvm(691):Unabletoresolvesuperclass
   of Lcom/webxells/ourapp/OurMapview; (100)
   05-25 12:17:34.764: WARN/dalvikvm(691): Link of class 'Lcom/webxells/
   ourapp/OurMapview;' failed
   05-25 12:17:34.764: ERROR/dalvikvm(691): Could not find class
   'com.webxells.ourapp.OurMapview', referenced from method
   com.webxells.ourapp.CommonUi.onOptionsItemSelected
   05-25 12:17:34.764: WARN/dalvikvm(691): VFY:unabletoresolveconst-
   class 114 (Lcom/webxells/ourapp/OurMapview;) in Lcom/webxells/ourapp/
   CommonUi;
   05-25 12:17:34.764: WARN/dalvikvm(691): VFY:  rejecting opcode 0x1c at
   0x0045
   05-25 12:17:34.764: WARN/dalvikvm(691): VFY:  rejected Lcom/webxells/
   ourapp/CommonUi;.onOptionsItemSelected (Landroid/view/
   MenuItem;Landroid/app/Activity;)Z
   05-25 12:17:34.764: WARN/dalvikvm(691): Verifier rejected class Lcom/
   webxells/ourapp/CommonUi;
   05-25 12:17:34.764: DEBUG/AndroidRuntime(691): Shutting down VM
   05-25 12:17:34.764: WARN/dalvikvm(691): threadid=3: thread exiting
   with uncaught exception (group=0x4000fe70)
   05-25 12:17:34.764: ERROR/AndroidRuntime(691): Uncaught handler:
   thread main exiting due to uncaught exception
   05-25 12:17:34.784: ERROR/AndroidRuntime(691): java.lang.VerifyError:
   com.webxells.ourapp.CommonUi
   05-25 12:17:34.784: ERROR/AndroidRuntime(691):     at
   com.webxells.ourapp.ourappMain.onOptionsItemSelected(ourappMain.java:
   36)
   05-25 12:17:34.784: ERROR/AndroidRuntime(691):     at
   android.app.Activity.onMenuItemSelected(Activity.java:2085)
   ... some more ...

   of course, the unknownsuperclassof OurMapview is
   com.google.android.maps.MapActivity. Don't get confused by the name
   OurMapview, it's an activity, not a view.

   While trying different targets and small changes in the manifest, I
 

[android-developers] Cursor for service component?

2009-06-13 Thread jagtap.jj

Hello everybody

In application there is Service running in background, and appl
having private database, When appl runs in back ground with service. I
want to retrieve Cursor for query on appl database.
   For content provider having the solution, i.e. getting cursor for
Service too [
 ContentResolver  cr = getContentResolver();
Cursor cursor = cr. query(Uri uri, String[] projection, String
selection,
  String[] selectionArgs,
String sortOrder) ;
  ]


But, I don't want to keep app DB public(ContentProvider) ,

  IS THERE SOLUTION TO GET CURSOR FOR SERVICE COMPONENT FOR PRIVATE
APPL DB?

Thanks
Jagtap

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



[android-developers] Re: Writing text on images in Android

2009-06-04 Thread jagtap.jj

Well here is my tut

http://www.anddev.org/viewtopic.php?p=22718#22718

Thank you
jagtap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Showing travel path which will mach the real road on map.

2009-05-16 Thread jagtap.jj

 In the application gps points(lat, lon) are collected while device is
moving.
I am showing them  as travel path on map with overlays.

 Now the problem is when showing the path between the two points
which are at two road cross, it does not show path exactly on road, if
the distance between two point is large even inaccurate path comes,
not exactly comes on real road.
  What is solution for this since navigation package googlenav has
been deprecated since sdk .9. Which might have been solution for this.

 Is there any way to overcome this issue. Showing travel path which
will mach the real road on map.

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



[android-developers] Re: playing audio file using intent

2009-05-12 Thread jagtap.jj

the problem has been solved

I just used intent.setDataAndType(mUri, audio/*);
instead of using  separately  intent.setData(uri); intent.setType
(audio/*); 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] playing audio file using intent

2009-05-11 Thread jagtap.jj

I want play audio file, which is on sdcard, with intent

String path = Environment.getExternalStorageDirectory().getAbsolutePath
();
File audioFile = new  File(path, westron.mp3);
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(audioFile);
intent.setData(uri);

try{
if (uri != null) {
startActivity(intent);
   }
}catch(Exception e){}

but it is giving error activity not found exception.

it is working for  content provider why it is not work for external
file
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: playing audio file using intent

2009-05-11 Thread jagtap.jj

I want play audio file, which is on sdcard, with intent

String path = Environment.getExternalStorageDirectory
().getAbsolutePath
();
File audioFile = new  File(path, westron.mp3);
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.fromFile(audioFile);
intent.setData(uri);
intent.seType(audio/*);
try{
if (uri != null) {
startActivity(intent);
   }

}catch(Exception e){}

When the media file is in content provider it is working fine, the
following code works good, it launches androids audio players for this
intent
Note : for this media is recorded using Intent intent = new Intent
(Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, RECORD);
while file on sdcard is recorded using audio API s


Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = getVoiceUri(getIntent().getDataString());
intent.setData(uri);

Log.v(TAG, play  + uri);
if (uri != null) {
startActivity(intent);
}

Plz guide is it possible to launch intent for playing audio file which
on sdcard

Thank you
Jagtap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] private media file clean up by media provider

2009-05-09 Thread jagtap.jj

hello

the media provider cleans the media files, if files didn't get read
since last two month.

does it cleans(delete) the private application media file stored on
sdcard, too if didn't get read from last two month?

or Appl Private media file does not come under media file?

plz guide for issue;

Thank you
Jagtap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] what is android:maxEms from TextView class?

2009-05-09 Thread jagtap.jj


what is this tag for  android:maxEms from TextView class?

I wanted to restrict edited text to only 2 characters, which tag is
need for this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it possible to have, horizontal listview, scrolling horizontally?

2009-05-07 Thread jagtap.jj

Hello everybody

Is it possible to have, horizontal listview?
normally the listview scrolls vertically having horizontally rows .

is reverse case possible, listview scrolling horizontally and having
vertical  rows.


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