Re: [android-developers] Need help in every way!

2016-03-19 Thread Tushar Lal
Hi Xyler Aston,

The answer for your first question is that 4GB RAM is just not enough. I
know that on
http://developer.android.com/sdk/index.html?gclid=CMzG7fSkxcsCFdIRaAodWoIFtg#Requirements
it says that 4GB is enough because that depends upon how much RAM & CUP are
being taken up by other process & application.

As for the third question either you have to share the crash logs or your
code.

And for your forth and final question we can only say after seeing the
code. But by the description that you provided it can't be that bad.



Regards:
Tushar Lal

On Wed, Mar 16, 2016 at 6:28 PM, Xyler Aston <xyleras...@gmail.com> wrote:

> I just downloaded the Android Studio. I am running windows 7 64 bit with 4
> GBs of Ram. When I open the application it takes a few minutes to load the
> studio. It then loads to an error that says there was a rendering problem
> which I fix by changing the API from the drop down. I put 3 labels on the
> app and just wanted to see what that looked like so I tried running it. I
> ran it through the Emulator and after basically freezing my computer up and
> taking up to 5 minutes to build it works but then I see a blank screen. I
> don't even see my labels. So I tried running it from my phone and after a
> few hours I finally got it to where it would even recognize my phone as
> authorized. However, every time I try to run it it says the app has crashed
> before it even loads. I am using a Samsung Galaxy s3 so I tried it with API
> 17. So here are my questions.
>
> #1:
> Why is this program s slow? I have changed the gradle to be
> offline. I have also added this line to the
> properties org.gradle.daemon=true and still it takes forever and almost
> freezes up my computer.
>
> #2:
> Why aren't my labels showing when I run it through the emulator? I mean
> that's about as simple as you can get and it isn't even working.
>
> #3:
> Why does my phone crash before even loading the app? I have 32 GB of
> memory on my phone via an SD card if that even matters.
>
> #4:
> Can this program really be as bad as it seems? I've been "working with it"
> about 3 days now and I can't get it to function properly in any way.
>
> --
> 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.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/d992c8d0-c5a8-474a-9b9b-8d5009e8a1a0%40googlegroups.com
> <https://groups.google.com/d/msgid/android-developers/d992c8d0-c5a8-474a-9b9b-8d5009e8a1a0%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards:
Tushar
+91-9711577561

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAMxwX4tCegXsUumhEBBW5XDuOhuWAg-66QzJEXSDGh-pOZc-Ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Touch and Drag Image - Tutorial

2016-02-03 Thread Tushar Lal
Remove the android.R package and import the one which is having a package
name similar to your project package.
On Feb 4, 2016 4:53 AM, "Foo Fabulous"  wrote:

>
> 
> I tried to follow the tutorial as best I could @ Touch and Drag Image
> (youtube) 
>
> The problem is at the lines:
>
> setContentView(R.layout.touchdrag);
> iv=(ImageView)findViewById(R.id.iv);
>
>
> the error states that the symbols touchdrag and iv cannot be resolved.
>
>
> in the following TouchAndDrag.java file
>
>
> package org.foo.tabletop; /**
>  * Created by Foo on 2/3/2016.
>  */
> import android.app.Activity;
> import android.os.Bundle;
> import android.R;
> import android.view.MotionEvent;
> import android.view.View;
> import android.widget.ImageView;
>
>
> public class TouchAndDrag extends Activity implements View.OnTouchListener{
> ImageView iv;
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.touchdrag);
> iv=(ImageView)findViewById(R.id.iv);
> iv.setOnTouchListener(this);
> }
> float x,y=0.0f;
> boolean moving=false;
> @Override
> public boolean onTouch(View arg0, MotionEvent arg1) {
> switch(arg1.getAction()){
> case MotionEvent.ACTION_DOWN:
> moving=true;
> break;
> case MotionEvent.ACTION_MOVE:
> if(moving){
> x=arg1.getRawX()-iv.getWidth()/2;
> y=arg1.getY()-iv.getWidth()*3/2;
> iv.setX(x);
> iv.setY(y);
> }
> break;
> case MotionEvent.ACTION_UP:
> moving=false;
> break;
> }
> return true;
> }
> }
>
>
> the touchdrag.xml file:
>
> 
> http://schemas.android.com/apk/res/android;
> android:layout_width="match_parent"
> android:layout_height="match_parent">
>
>  android:layout_width="100dp"
> android:layout_height="100dp"
> android:id="@+id/iv"
> android:src="@drawable/smiley" />
> 
>
>
> Any help would be appreciated.
>
> Here is a screenshot that helps to show the structure of the app:
>
>
> 
>
>
>
> --
> 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.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/d9d591ac-9d08-4505-8fd5-1292ee378ea9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAMxwX4v46Eq3CBo73NR_bRK0xca74RRnqe8wT2ezb0G-ThStUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] How to prevent existing user from receiving bad app update

2015-05-05 Thread Tushar Lal
If you are some kind of repository for your code you can revert to the
stable version then in your manifest file increase the app version and app
code. Then publish it again.

I know that this might not be the perfect solution but it is a work around.

Regards
Tushar Lal

On 9:06AM, Wed, May 6, 2015 yccheok yancheng.ch...@gmail.com wrote:

 Is it uncommon that, we may make a bad update app release, which causes
 numerous crashes report received.

 What I usually do is immediately unpublish the app.

 However, I realize, unpublish app will only make new user unable to find
 my app.

 I still cannot prevent existing users, from receiving upgraded version of
 bad app.

 How can I prevent existing user from receiving bad app update, temporary?

 Thanks.
 Cheok


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


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

2014-09-18 Thread Tushar Lal
You can take a look at Ejabberd for server and asmack lib for android
device.
On Sep 17, 2014 10:35 PM, yogendra G yogi2...@gmail.com wrote:

 Dear All,

 I am in need of some nice open source for message broadcasting between
 many android devices without using GCM.

 Please help me out.

 Thanks  Br,
 Yogendra G.
 +91-9916168647

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Positioning Buttons side by side in Linear Layout (one button multi-lined)

2014-06-25 Thread Tushar Lal
Instead of  sp try dp...
On Jun 25, 2014 7:06 PM, 'RLScott' via Android Developers 
android-developers@googlegroups.com wrote:

 Two buttons are to be placed side by side in a horizonally-oriented
 LinearLayout whose width is match_parent.  To make the buttons share the
 width equally I have assigned each Button the layout_weight of 0.5.
 Everything looks good if both buttons have a single line of text, or if
 both buttons have two lines of text.  But when one button has 2 lines and
 the other button has 1 line, the two buttons appear at slightly different
 vertical positions.  They both have a fixed height (60sp) to allow for 1
 or 2 lines of text.  How can I make these buttons look symmetrical?  Here
 is the xml:

 LinearLayout
android:layout_width=match_parent
android:layout_height=wrap_content 

Button
   android:layout_height=60sp
   android:layout_weight=0.5
   android:text=Cancel the Calibration
   android:textSize=18sp /Button

Button
   android:layout_height=60sp
   android:layout_weight=0.5
   android:text=Accept
   android:textSize=18sp /Button

 /LinearLayout

 This is being rendered on a 320x480 portrait screen under Android 3.1.
 Why don't they appear at the same vertical position on the screen?

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


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


[android-developers] Re: Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-11 Thread Tushar
Martin,

Its for a custom hardware, which is not a mobile phone. The hardware is 
powered by Android and the use case mentioned is an essential requirement. 
It wont be an app on playstore as what your thinking. 

On Sunday, August 11, 2013 2:45:36 PM UTC+5:30, Martin Krischik wrote:

 Somehow that sounds evil to me. Care to tell me which app you are working 
 on to I *don't* install 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 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] Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-09 Thread Tushar
As I mentioned in the first post, I want to make minimal changes to the 
framework.  One of the major part of the question is to have your layout 
inflated on top of other apps, which is totally to do with the application 
layer.
So, I believe this is a better group rather than the platform group.  

Yaron,
Thanks for the link. I'll have a look at the code and let you know if thats 
the one I'm looking for.

On Saturday, August 10, 2013 5:41:50 AM UTC+5:30, TreKing wrote:


 On Fri, Aug 9, 2013 at 4:25 AM, Yaron Reinharts 
 yaron.r...@gmail.comjavascript:
  wrote:

 Why?


 The bits about custom keys, custom device, and making changes to the 
 firmware. This is not what this group is for.


 -
 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
--- 
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] Need to show a dialog on top of all other Apps for a custom hardware.

2013-08-08 Thread Tushar
Hi,

I need to show a dialog (more like a horizontal bar) on press of a custom 
Key (on my custom device powered by Android).
This dialog should appear on top of any other application(say A) that 
might be running when the Key is pressed. The app A should keep on 
running and its UI should be visibile (i.e the app A: should not go to 
onPause()). It should work something similar to SystemUI's volume change 
dialog when Volume Hard Keys are pressed.  I want to make minimum changes 
in framework.  My understanding is that I need to make changes in 
PhoneWindowManager.java to handle the press of custom Key, which will then 
call my app residing in application layer, which will just inflate the 
dialog. Would this work? If so, is there a better way to implement it? If 
not, how can I implement 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
--- 
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] Multiple onClick calls on Button click

2012-11-15 Thread Tushar
Hi,

On some devices looks like onClick events on button are getting fired 
multiple times. This behavior is observed on LG-P700 and on older HTC Hero?

Does anyone else has such an issue ? 



Regards,

Tushar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Application package 'AndroidManifest.xml' must have a minimum of 2 segments.

2012-08-06 Thread tushar
problem 
Application package 'AndroidManifest.xml' must have a minimum of 2 segments.

it keep on happning also R.java not generating in eclipse done all the 
rebuilding  project clearing but keep on happning

is there a possibility of bug on my eclipse IDE ???

anyone please reply ASAP

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ftp interaction on my app

2012-08-06 Thread tushar
need some guidelines for using ftp on my app to upload data or file on my 
server with out root if possible can someone please guided with any link that 
are working for them

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


Re: [android-developers] Multiple build created using single library project are not working

2012-07-13 Thread Tushar Lal
LOGCAT OUTPUT:
07-13 15:23:23.954: E/AndroidRuntime(655): FATAL EXCEPTION: main
07-13 15:23:23.954: E/AndroidRuntime(655): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.paulinrio.radio/com.paulinrio.radio.OnAir}:
java.lang.NullPointerException
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:2503)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:651)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.widget.TabHost.setCurrentTab(TabHost.java:323)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:129)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:453)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.view.View.performClick(View.java:2408)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.view.View$PerformClick.run(View.java:8816)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.os.Handler.handleCallback(Handler.java:587)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.os.Handler.dispatchMessage(Handler.java:92)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.os.Looper.loop(Looper.java:123)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.ActivityThread.main(ActivityThread.java:4627)
07-13 15:23:23.954: E/AndroidRuntime(655): at
java.lang.reflect.Method.invokeNative(Native Method)
07-13 15:23:23.954: E/AndroidRuntime(655): at
java.lang.reflect.Method.invoke(Method.java:521)
07-13 15:23:23.954: E/AndroidRuntime(655): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-13 15:23:23.954: E/AndroidRuntime(655): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-13 15:23:23.954: E/AndroidRuntime(655): at
dalvik.system.NativeStart.main(Native Method)
07-13 15:23:23.954: E/AndroidRuntime(655): Caused by:
java.lang.NullPointerException
07-13 15:23:23.954: E/AndroidRuntime(655): at
com.paulinrio.radio.OnAir.checkmediastate(OnAir.java:302)
07-13 15:23:23.954: E/AndroidRuntime(655): at
com.paulinrio.radio.OnAir.onCreate(OnAir.java:99)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-13 15:23:23.954: E/AndroidRuntime(655): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-13 15:23:23.954: E/AndroidRuntime(655): ... 18 more





On Fri, Jun 29, 2012 at 8:05 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Can anyone tell me what am I doing wrong.


 Well, for starters, you didn't really give us any information to help you
 solve the problem.  But, for the crash, take a look at the logcat output...
 It usually gives some pretty good information about the cause of a crash.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Fri, Jun 29, 2012 at 8:20 AM, Tushar Lal tush...@gmail.com wrote:

 Hi,

 I have created a library project containing a service. When I first build
 it and install it on my phone it works fine, but when I create the second
 build using the same library project and install it on my phone, the first
 build works fine but the second one crashes. Also when I run the second
 build and I go into (SettingApplicationRunning Application) the service
 is running of the first application. That might explain the reason of
 crashing of second build.

 Can anyone tell me what am I doing wrong.

 Regards:
 Tushar
 +91-9711577561

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




-- 
Regards:
Tushar
+91-9711577561

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

Re: [android-developers] Multiple build created using single library project are not working

2012-07-13 Thread Tushar Lal
It is having a button which has already been declared.

On Fri, Jul 13, 2012 at 4:34 PM, imran ali imran...@gmail.com wrote:

 Hi
 Log cat indicate that you have nullpointer exception on line number 302
 of  your OnAir.java class file.
 Check in file, what are you using on 302 line number? and is that proper
 instantiated before use?

 Regards
 Imran Ali


 On Friday, July 13, 2012 4:05:53 PM UTC+5:30, Tushar Lal wrote:

 LOGCAT OUTPUT:
 07-13 15:23:23.954: E/AndroidRuntime(655): FATAL EXCEPTION: main
 07-13 15:23:23.954: E/AndroidRuntime(655): java.lang.RuntimeException:
 Unable to start activity ComponentInfo{com.paulinrio.**
 radio/com.paulinrio.radio.**OnAir}: java.lang.NullPointerException
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.
 **performLaunchActivity(**ActivityThread.java:2663)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.
 **startActivityNow(**ActivityThread.java:2503)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.**
 LocalActivityManager.**moveToState(**LocalActivityManager.java:127)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.**
 LocalActivityManager.**startActivity(**LocalActivityManager.java:339)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost$**
 IntentContentStrategy.**getContentView(TabHost.java:**651)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost.**
 setCurrentTab(TabHost.java:**323)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabHost$2.**
 onTabSelectionChanged(TabHost.**java:129)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.widget.TabWidget$**
 TabClickListener.onClick(**TabWidget.java:453)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.view.View.**
 performClick(View.java:2408)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.view.View$**
 PerformClick.run(View.java:**8816)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.os.Handler.**
 handleCallback(Handler.java:**587)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.os.Handler.**
 dispatchMessage(Handler.java:**92)
 07-13 15:23:23.954: E/AndroidRuntime(655): at
 android.os.Looper.loop(Looper.**java:123)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.
 **main(ActivityThread.java:4627)
 07-13 15:23:23.954: E/AndroidRuntime(655): at 
 java.lang.reflect.Method.**invokeNative(Native
 Method)
 07-13 15:23:23.954: E/AndroidRuntime(655): at java.lang.reflect.Method.**
 invoke(Method.java:521)
 07-13 15:23:23.954: E/AndroidRuntime(655): at com.android.internal.os.**
 ZygoteInit$**MethodAndArgsCaller.run(**ZygoteInit.java:868)
 07-13 15:23:23.954: E/AndroidRuntime(655): at com.android.internal.os.**
 ZygoteInit.main(ZygoteInit.**java:626)
 07-13 15:23:23.954: E/AndroidRuntime(655): at dalvik.system.NativeStart.*
 *main(Native Method)
 07-13 15:23:23.954: E/AndroidRuntime(655): Caused by:
 java.lang.NullPointerException
 07-13 15:23:23.954: E/AndroidRuntime(655): at com.paulinrio.radio.OnAir.*
 *checkmediastate(OnAir.java:**302)
 07-13 15:23:23.954: E/AndroidRuntime(655): at com.paulinrio.radio.OnAir.*
 *onCreate(OnAir.java:99)
 07-13 15:23:23.954: E/AndroidRuntime(655): at
 android.app.Instrumentation.**callActivityOnCreate(**
 Instrumentation.java:1047)
 07-13 15:23:23.954: E/AndroidRuntime(655): at android.app.ActivityThread.
 **performLaunchActivity(**ActivityThread.java:2627)
 07-13 15:23:23.954: E/AndroidRuntime(655): ... 18 more





 On Fri, Jun 29, 2012 at 8:05 PM, Justin Anderson 
 magouyaw...@gmail.comwrote:

 Can anyone tell me what am I doing wrong.


 Well, for starters, you didn't really give us any information to help
 you solve the problem.  But, for the crash, take a look at the logcat
 output... It usually gives some pretty good information about the cause of
 a crash.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Fri, Jun 29, 2012 at 8:20 AM, Tushar Lal tush...@gmail.com wrote:

 Hi,

 I have created a library project containing a service. When I first
 build it and install it on my phone it works fine, but when I create the
 second build using the same library project and install it on my phone, the
 first build works fine but the second one crashes. Also when I run the
 second build and I go into (SettingApplicationRunning Application) the
 service is running of the first application. That
 might explain the reason of crashing of second build.

 Can anyone tell me what am I doing wrong.

 Regards:
 Tushar
 +91-9711577561

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

[android-developers] Multiple build created using single library project are not working

2012-06-29 Thread Tushar Lal
Hi,

I have created a library project containing a service. When I first build
it and install it on my phone it works fine, but when I create the second
build using the same library project and install it on my phone, the first
build works fine but the second one crashes. Also when I run the second
build and I go into (SettingApplicationRunning Application) the service
is running of the first application. That might explain the reason of
crashing of second build.

Can anyone tell me what am I doing wrong.

Regards:
Tushar
+91-9711577561

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

2012-06-25 Thread tushar sahni
Hey

How r u all developers
I have an issue in parsing json.
The issue is that in the response it is difficult to identify date format

My response is

[{TaskId:1,
* CountryId:1,
* JurisdictionId:1,
* TaskName:Find cases,
* TaskCode:,
* IsJournal:N,
* IsActive:Y,
* CreatedBy:admin,
*
CreatedOn:{IsNull:false,Value:\/Date(1340227684000)\/,DayTicks:41078,TimeTicks:17785200},
* ModifiedBy:,
*
ModifiedOn:{IsNull:false,Value:\/Date(-536464080)\/,DayTicks:-36524,TimeTicks:0}}

Regards
Tushar sahni,
Waiting for your reply

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: i am looking job on android in banglore

2012-03-27 Thread Tushar Lal
I have a work experience of 1.3yr in Android, Blackberry, in which I have
created both native  phonegap application. I have worked on a Mobile
banking application, Stock Trading application, Album/Artist Application 
and some native Blackberry applications.

Regards:
Tushar

On Tue, Mar 27, 2012 at 11:52 AM, Anirudh Loya loya.anir...@gmail.comwrote:

 6 months experience or a fresher?


 On Tue, Mar 27, 2012 at 11:49 AM, Eric Wong (hdmp4.com) 
 ericwon...@gmail.com wrote:

 what application did you build previously?

 On Mar 27, 5:46 am, rudraswamy mc rudraswamy.17...@gmail.com wrote:
  sir i have 6month exp on android..

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




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know when
 your company stops loving you.--  Voice Of Love*

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: i am looking job on android in banglore

2012-03-27 Thread Tushar Lal
CTC: 1.92
ECTC: 3.0 - 3.4
Current Organization: INNEFU Labs Pvt. Ltd.
Notice Period : 15 days.

On Tue, Mar 27, 2012 at 12:12 PM, Sapna Saxena sapna.saxena...@gmail.comwrote:

 Hi Tushar,

 Please share your profile with us along with the below details:

 CTC
 ECTC
 Current Organization:
 Notice Period

 Thanks,
 Sapna


 On Tue, Mar 27, 2012 at 12:07 PM, Tushar Lal tush...@gmail.com wrote:

 I have a work experience of 1.3yr in Android, Blackberry, in which I have
 created both native  phonegap application. I have worked on a Mobile
 banking application, Stock Trading application, Album/Artist Application 
 and some native Blackberry applications.

 Regards:
 Tushar

 On Tue, Mar 27, 2012 at 11:52 AM, Anirudh Loya loya.anir...@gmail.comwrote:

 6 months experience or a fresher?


 On Tue, Mar 27, 2012 at 11:49 AM, Eric Wong (hdmp4.com) 
 ericwon...@gmail.com wrote:

 what application did you build previously?

 On Mar 27, 5:46 am, rudraswamy mc rudraswamy.17...@gmail.com wrote:
  sir i have 6month exp on android..

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




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Re: i am looking job on android in banglore

2012-03-27 Thread Tushar Lal
Yes, Sir I'm also open to  remote contract jobs and can you please
elaborate the term multimedia. I have worked with audio/video players in
the phonegap application. But something thing tell me that you have some
thing else in mind when you say the term multimedia.

On Tue, Mar 27, 2012 at 12:21 PM, Eric Wong (hdmp4.com) 
ericwon...@gmail.com wrote:

 On Mar 27, 5:37 pm, Tushar Lal tush...@gmail.com wrote:
  I have a work experience of 1.3yr in Android, Blackberry, in which I have
  created both native  phonegap application. I have worked on a Mobile
  banking application, Stock Trading application, Album/Artist Application
 
  and some native Blackberry applications.

 Any experience in multimedia?
 Interested in remote contract jobs or only Bangalore based jobs?

 
  Regards:
  Tushar
 
  On Tue, Mar 27, 2012 at 11:52 AM, Anirudh Loya loya.anir...@gmail.com
 wrote:
 
 
 
 
 
 
 
   6 months experience or a fresher?
 
   On Tue, Mar 27, 2012 at 11:49 AM, Eric Wong (hdmp4.com) 
   ericwon...@gmail.com wrote:
 
   what application did you build previously?
 
   On Mar 27, 5:46 am, rudraswamy mc rudraswamy.17...@gmail.com wrote:
sir i have 6month exp on android..
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
   --
 
   Thank you
 
   Anirudh Loya | Android Developer**
 
   Desk: +9140-30681824 | Mobile: +91*9246561265*
 
   *Love your Job but don't Love your company, Because you may not know
 when
   your company stops loving you.--  Voice Of Love*
 
--
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

[android-developers] Magic-8-Ball in phonegap

2012-03-05 Thread Tushar Lal
I wish to design Magic-8-Ball in android using phonegap, but I have no
idea where to begin. Can some one please guide on how to develop or
where to start looking on how to create the app.

Regards:
Tushar

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

2012-02-15 Thread tushar sahni
Hi


Has anyone worked on push notifications in android


Regards
Tushar Sahni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-developer] How can we rotate image

2011-12-22 Thread tushar sahni
*Hi*
*
*
*accept invitation,,*
*
*
*
*
*Regards*
*Tushar Sahni*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: application with same size in all the mobile

2011-12-21 Thread Tushar Lal
int dp = 2;final float scale =
getResources().getDisplayMetrics().density;int dip = (int) (dp * scale
+ 0.5f);

Use this dip to declare size of your U.I. components  the size of
that U.I. components will remain same in all android based phone.
eg:

Button button = new Button();
button.setWidth(20*dip);

Hope this was the answer you were looking for...

Regards:
Tushar
On Dec 19, 11:15 pm, lbendlin l...@bendlin.us wrote:
 define same size. Do you mean inches, pixels, or something in between?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] It is possible to rotate a object from his own coordinates and not from the plane coordinates?

2011-10-12 Thread Tushar Bera
Dear Android Team,
   Please dont send me mail like this.

Regards,

Tushar

On Tue, Oct 11, 2011 at 4:22 PM, saex elpablos...@gmail.com wrote:

 I am following the OpenGL es rotation examples from google to rotate a
 simple Square (not a cube) on my Android App, for example this code:

 gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f);   //X
 gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);   //Y
 gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f);   //Z

 It works fine if you only rotate to one axis.

 But if you rotate to one axis, and after that, you rotate to other
 axis, the rotation is not fair. I mean that the rotation is done from
 the plane (real world) coordinates and not from the square own
 coordinates. I am not sure if i am explaining me fine.

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

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

[android-developers] Re: USB Bluetooth

2011-10-10 Thread tushar
yes! pairing is happening fin, but showing Paired but not
connected.Also when i check the class on adb shell following is the
output

# hciconfig -a
hciconfig -a
hci0:   Type: BR/EDR  Bus: USB
BD Address: 00:15:83:15:A3:10  ACL MTU: 339:8  SCO MTU: 128:2
UP RUNNING PSCAN
RX bytes:8764 acl:111 sco:0 events:338 errors:0
TX bytes:3114 acl:116 sco:0 commands:136 errors:0
Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: ''
Class: 0x000104
Service Classes: Unspecified
Device Class: Computer, Desktop workstation
HCI Version: 2.0 (0x3)  Revision: 0xc5c
LMP Version: 2.0 (0x3)  Subversion: 0xc5c
Manufacturer: Cambridge Silicon Radio (10)

Is it because of the Class I am not able to receive any file on Set
top Box over bluetooth?
I am not able to change the class of the device using

#hciconfig hci0 class 0x5a020c

what could be the issue?

thanks,
tushar
On Oct 10, 7:47 am, gjs garyjamessi...@gmail.com wrote:
 Hi

 Did you pair theUsbBluetoothwith your Android device ?

 Regards

 On Oct 7, 6:33 pm, tushar tushar.2...@gmail.com wrote:







  Hi,
  I am enablingUSBBluetoothon Set top box.I am able to send the files
  to various phones but not able to reveive any.below erros it shows
  while connecting:

  1.Authorization Rejected.Also the UUDI is not of OPP
  2.mBtClass is NULL.
  3.GetServiceAttribute Failed
  What does these errors mean?
  below is the log.

  Please help.

  I/power   ( 1097): *** set_screen_state 1
  I/power   ( 1097): *** set_screen_state 1
  I/ActivityManager( 1097): Starting: Intent
  { act=android.intent.action.MAIN
  cmp=com.android.settings/.bluetooth.BluetoothSettings } from pid 1361
  I/BluetoothAdapter( 1361): startDiscovery
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: Discovery session
  0x52d08 with :1.0 activated
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
  bluez/src/adapter.c:session_ref() 0x52d08: ref=1
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
  E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
  org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
  emit_property_changed..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
  D/BTDEBUG ( 1369): a.b.adapter.a.DISCOVERY_STARTED
  V/BluetoothEventRedirector( 1361): Received
  android.bluetooth.adapter.action.DISCOVERY_STARTED
  W/CachedBluetoothDevice( 1361): mBtClass is null
  W/CachedBluetoothDevice( 1361): mBtClass is null
  W/CachedBluetoothDevice( 1361): mBtClass is null
  I/ActivityManager( 1097): Displayed
  com.android.settings/.bluetooth.BluetoothSettings: +539ms
  I/power   ( 1097): *** set_screen_state 1
  I/power   ( 1097): *** set_screen_state 1
  E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
  org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
  emit_property_changed..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
  D/BluetoothService( 1097): BT Discoverable for 120 seconds
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
  bluez/src/adapter.c:set_mode() discoverable
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
  bluez/src/adapter.c:session_ref() 0x542f8: ref=1
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
  emit_property_changed..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: append_variant..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
  bluez/src/adapter.c:set_mode_complete() discoverable
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
  bluez/src/adapter.c:session_unref() 0x542f8: ref=0
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
  W/CachedBluetoothDevice( 1361): mBtClass is null
  W/CachedBluetoothDevice( 1361): mBtClass is null
  W/CachedBluetoothDevice( 1361): mBtClass is null
  D/dalvikvm( 1361): GC_CONCURRENT freed 404K, 48% free 3210K/6151K,
  external 1157K/1619K, paused 2ms+3ms
  E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
  org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
  E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
  org.bluez.Adapter:DeviceFound from /org/bluez/1914/hci0
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
  I//system/bin/bluetoothd( 1913):
  bluetoothd[1914]:  .dict_append_entry..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
  I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
  dict_append_entry..
  D/BTDEBUG ( 1369): a.b.adapter.a.SCAN_MODE_CHANGED
  D/BTDEBUG ( 1369

[android-developers] Receiving file through USB Bluetooth

2011-10-10 Thread tushar
Hi,
I am running GB 2.3.4 on a set top box.I enabled bluez and dbus
modules and able to send the files to any phone , but not able to
receive any file.Can somebody suggest what extra needs to be done for
receiving the files?

thanks,
tushar

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

2011-10-07 Thread tushar
Hi,
I am enabling USB Bluetooth on Set top box.I am able to send the files
to various phones but not able to reveive any.below erros it shows
while connecting:

1.Authorization Rejected.Also the UUDI is not of OPP
2.mBtClass is NULL.
3.GetServiceAttribute Failed
What does these errors mean?
below is the log.

Please help.

I/power   ( 1097): *** set_screen_state 1
I/power   ( 1097): *** set_screen_state 1
I/ActivityManager( 1097): Starting: Intent
{ act=android.intent.action.MAIN
cmp=com.android.settings/.bluetooth.BluetoothSettings } from pid 1361
I/BluetoothAdapter( 1361): startDiscovery
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: Discovery session
0x52d08 with :1.0 activated
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
bluez/src/adapter.c:session_ref() 0x52d08: ref=1
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
emit_property_changed..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
D/BTDEBUG ( 1369): a.b.adapter.a.DISCOVERY_STARTED
V/BluetoothEventRedirector( 1361): Received
android.bluetooth.adapter.action.DISCOVERY_STARTED
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
I/ActivityManager( 1097): Displayed
com.android.settings/.bluetooth.BluetoothSettings: +539ms
I/power   ( 1097): *** set_screen_state 1
I/power   ( 1097): *** set_screen_state 1
E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
emit_property_changed..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
D/BluetoothService( 1097): BT Discoverable for 120 seconds
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
bluez/src/adapter.c:set_mode() discoverable
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
bluez/src/adapter.c:session_ref() 0x542f8: ref=1
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
emit_property_changed..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: append_variant..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
bluez/src/adapter.c:set_mode_complete() discoverable
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: external/bluetooth/
bluez/src/adapter.c:session_unref() 0x542f8: ref=0
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
D/dalvikvm( 1361): GC_CONCURRENT freed 404K, 48% free 3210K/6151K,
external 1157K/1619K, paused 2ms+3ms
E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
org.bluez.Adapter:PropertyChanged from /org/bluez/1914/hci0
E/BluetoothEventLoop.cpp( 1097): event_filter: Received signal
org.bluez.Adapter:DeviceFound from /org/bluez/1914/hci0
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: io_security_event
I//system/bin/bluetoothd( 1913):
bluetoothd[1914]:  .dict_append_entry..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:  append_variant..
I//system/bin/bluetoothd( 1913): bluetoothd[1914]:
dict_append_entry..
D/BTDEBUG ( 1369): a.b.adapter.a.SCAN_MODE_CHANGED
D/BTDEBUG ( 1369):  a.b.adapter.e.SCAN_MODE = 23
D/BluetoothService( 1097):
updateDeviceServiceChannelCache(00:1D:FD:F6:A2:85)
I//system/bin/bluetoothd( 1913): bluetoothd[1914]: rec is NULL
E/bluetooth_common.cpp( 1097): dbus_func_args_timeout_valist: D-Bus
error in GetServiceAttributeValue: org.bluez.Error.Failed
(GetServiceAttribute Failed)
D/BluetoothService( 1097):  uuid(system):
1108--1000-8000-00805f9b34fb -1
D/BluetoothService( 1097):  uuid(system):
1105--1000-8000-00805f9b34fb 9
D/BTDEBUG ( 1369): a.b.device.a.FOUND
D/BTDEBUG ( 1369):  a.b.device.e.DEVICE = 00:1D:FD:F6:A2:85
D/BTDEBUG ( 1369):  a.b.device.e.CLASS = 5a020c
D/BTDEBUG ( 1369):  a.b.device.e.RSSI = 0
D/BTDEBUG ( 1369):  a.b.device.e.NAME = Tushar
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
V/BluetoothEventRedirector( 1361): Received
android.bluetooth.device.action.FOUND
I/BluetoothClass( 1361): Failed to connect tushar 5898764
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W/CachedBluetoothDevice( 1361): mBtClass is null
W

[android-developers] Samsung Galaxy Mini

2011-09-27 Thread tushar lakhwani
Actually I was downloading some apps from market but they werent
downloading . Then i switched off my fone and when i switched it on
then the screen wre samsung is written remains and the fone doesnt
start what should i do??
Please tell me ...
Its URGENT...
Is there any way to reset 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


[android-developers] Re: Need a gud UI designer for my project

2011-09-13 Thread Tushar Sahni
Hii

I accept,,


On Sep 12, 12:00 pm, pa1ani reverselibr...@gmail.com wrote:
 Hi I need a gud UI designer for my project..
 Interested people can ping 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


[android-developers] Hi

2011-09-13 Thread Tushar Sahni
Hi all,,,

I have developed an application that is made in android 3.2. The
project contains 5 tabs and activity group.Is it possible for me to
run the same code in android 3.2 ..? But when i run the code its
crashing.Its working fine in android 2.1 and above...


Is dere any solution in which i can run the application in android 2.1
updated one version
If yes,,can anyone guide me



Thanks
Tushar

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

2011-09-07 Thread Tushar Sahni
Hi

I am getting cursor out of bound exception while i am trying to get list
particular item positiion,Below is the crash report i am getting

09-08 01:20:45.651: ERROR/AndroidRuntime(16459): Caused by:
android.database.CursorIndexOutOfBoundsException: Index 114 requested, with
a size of 114
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractCursor.checkPosition(AbstractCursor.java:580)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:41)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
com.redorange.database.MessageDbAdapter.GetSeedDetails(MessageDbAdapter.java:360)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
com.redorange.headshop.CustomAdapter.onCreate(CustomAdapter.java:36)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)
09-08 01:20:45.651: ERROR/AndroidRuntime(16459): ... 11 more

Can anyone help me in this regard

Thanks in advance
Tushar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activity remains in focus for some time after calling finish()

2011-08-23 Thread tushar sahni
Hi


I have to support multiple resolutions for the game that i have to
develop,How can i do this,One Resolution is 320*480 and other is 480 x 800
pixels
I have added the following lines in the manifest for supporting to multiple
screens

supports-screens
android:resizeable=true
android:smallScreens=true
android:normalScreens=true
android:largeScreens=true
android:anyDensity=true/

If anyone has worked on it can he/she have a look on it

Regards
Tushar

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

2011-08-19 Thread tushar sahni
Hii

I am developing an android application,where i have to download data from
server.I have done that part.Now i want data in simple text format from url


Can anyone guide me



Thanks in advance
Tushar

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

2011-08-19 Thread tushar sahni
can u send me some demo example if possible


Thanks
Tushar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 I call a web service to get some data return the screen to the android?

2011-07-10 Thread tushar sahni
yeah
On Jul 11, 2011 7:16 AM, mark2011 androidmark2...@gmail.com wrote:
 Dear All :

 Can I call a web service to get some data  return the screen to
 the android? Actually, I want to get some data on the remote web
 server from the android phone  return back the android platform. How
 can I do it?

 Thanks.

 BR,
 Mark

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

2011-06-29 Thread tushar sahni
Hii

On Jun 29, 2011 3:36 PM, Bharathiraja R bharathiraja.andr...@gmail.com
wrote:

Hi All,

I am testing camera application.
Is there is any method to capture video like capturing picture with
takePicture() method.

Please let me know if anyone know the method.

Regards,
Bharathiraja R

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

2011-06-06 Thread Tushar
On the latest release once the phone powers up I see that Vending.apk
erases the contents from /cache partition on receiving the intent
android.intent.action.SIM_STATE_CHANGED or
android.intent.action.LOCALE_CHANGED.

Is this change really needed ??.

Could someone from Google Android team comment on this change? I am
keen to know the intent of clearing the /cache partition since I am
working on a feature which requires writing some content into /cache
partition on phone power up after recieving the BOOT_COMPLETE intent.
With this new change my app doesn't work as the data written by my app
is lost.

Below is the information obtained from log..

===06-06
15:14:26.889 1442 1455 D vending : [11] 1.run(): Clearing cache in
response to android.intent.action.SIM_STATE_CHANGED

06-06 15:14:31.084 1442 1531 D vending : [12] 1.run(): Clearing cache
in response to android.intent.action.LOCALE_CHANGED

===

I also see that the RecoverySystem.java file erases the contents of /
cache partition on every boot up on receiving BOOT_COMPLETE intent.

Why is the same change needed in Vending.apk when the
RecoverySystem.java file already does the same??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question regarding Vending.apk

2011-06-06 Thread Tushar
Mark,

Actually I am writing the recovery command in /cache partition and
calling reboot.
By the time the phone prepares to reboot the Vending.apk erases the
cache partition and when the phone reboots in recovery mode
it doesn't find the command file in cache partition and it fails.


On Jun 6, 7:17 pm, Mark Murphy mmur...@commonsware.com wrote:
 SDK applications should not be using the cache partition. Use
 getCacheDir(), please.









 On Mon, Jun 6, 2011 at 8:40 AM, Tushar tushar.maha...@gmail.com wrote:
  On the latest release once the phone powers up I see that Vending.apk
  erases the contents from /cache partition on receiving the intent
  android.intent.action.SIM_STATE_CHANGED or
  android.intent.action.LOCALE_CHANGED.

  Is this change really needed ??.

  Could someone from Google Android team comment on this change? I am
  keen to know the intent of clearing the /cache partition since I am
  working on a feature which requires writing some content into /cache
  partition on phone power up after recieving the BOOT_COMPLETE intent.
  With this new change my app doesn't work as the data written by my app
  is lost.

  Below is the information obtained from log..

  ===06-06
  15:14:26.889 1442 1455 D vending : [11] 1.run(): Clearing cache in
  response to android.intent.action.SIM_STATE_CHANGED

  06-06 15:14:31.084 1442 1531 D vending : [12] 1.run(): Clearing cache
  in response to android.intent.action.LOCALE_CHANGED

  ===

  I also see that the RecoverySystem.java file erases the contents of /
  cache partition on every boot up on receiving BOOT_COMPLETE intent.

  Why is the same change needed in Vending.apk when the
  RecoverySystem.java file already does the same??

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

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 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


[android-developers] Want to join this group.

2011-05-19 Thread Tushar
Want to join this group. Please add 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


[android-developers] Advantage of services over multi threading ??

2011-04-11 Thread Tushar Baviskar
What is the need of services in android, as same thing can be achieved
by starting new task also?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Debug/Run Application directly on device

2011-04-06 Thread Tushar Baviskar
How can I run/debug my app directly on device on Linux Ubuntu
platform? I have Samsung GT-I5503 handset.

Please provide procedure..

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

2011-01-27 Thread tushar sahni
Hi.all

I am to developing a game application in Android.I have designed the
splash screen.Implemented the functionality.Now the main problem i am
facing is When i have to tap images on icons.And other problem i am
facing is as follows 1.1.3  Tap Items This screen allows the user to
tap on those icons which are seen on the road. When the user gets 5 in
a row he wins and a character appears on the next screen. There will
be 3-5 characters in the app and they will appear randomly when the
user wins.

I will be greatly thankful to u for any contribution or
coordination

Regards
Tushar Sahni

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

2011-01-17 Thread tushar sahni
Hello

I am able to accept your job of theme developer


Thanking You
Tushar Sahni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Regarding implementing paypal api in android

2010-12-28 Thread tushar sahni
I am developing an Android Application named Book Bottle Service.I
have implemented map activity in it. The view that comes in the array
list comes from url From where i have parsed data.Now i have to
implement Paypal api on click of list button.How can i implement
Paypal in android.Can anyone help me in this regard???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Help regarding reading the Sim HPLMN data on phone bootup on Android.

2010-10-20 Thread Tushar
Hi All,

I want to read the sim HPLM data on phone bootup by writing a service
which is started in the init.rc as a pre-zygote class.
Could someone please help me on providing some inputs if this is
possible ?
If possible how do I read the SIM HPLMN number from my process, as the
android framework would not be up on phone boot up ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Driving directions in Google map view

2010-08-12 Thread tushar
Hi,

I am working on an app (not browser-based) that shows restaurants
around my current GPS fix. I would like to show driving directions to
the store selected by the user on the map view.

The Google Directions webservice provides direction waypoints given
two geo locations. Is there some support available in Android MapView
for output (XML/JSON) spitted by this web service or do I have to roll
out my own parser and some kind of map overlay to display the
waypoints?

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


[android-developers] Getting ParserConfigurationException when trying to insert a new Calendar.

2010-06-30 Thread Tushar
Hi ,

 I am developing an Android app which creates a new calendar on the
google server.
 Though the calendar does get created, I get an exception .
 This is how I insert the calendar.

CalendarService service = new CalendarService(CalendarFeed`);
CalendarEntry calendar = new CalendarEntry();
//Some code
URL postUrl = new URL(
http://www.google.com/calendar/feeds/
default/owncalendars/full);
service.insert(postUrl, calendar);


After the calendar gets inserted , I get the following exception

WARN/dalvikvm(922): VFY: unable to resolve virtual method 16724:
Ljavax/xml/parsers/SAXParserFactory;.getSchema ()Ljavax/xml/validation/
Schema;
WARN/dalvikvm(922): VFY: unable to find class referenced in signature
(Ljavax/xml/validation/Schema;)
WARN/dalvikvm(922): VFY: unable to resolve virtual method 16732:
Ljavax/xml/parsers/SAXParserFactory;.setSchema (Ljavax/xml/validation/
Schema;)V
WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities
WARN/XmlParser(922): javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities
WARN/XmlParser(922): at
org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:
84)
WARN/XmlParser(922): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:682)
WARN/XmlParser(922): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
WARN/XmlParser(922): at
com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
59)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
39)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
100)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
52)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
66)
WARN/XmlParser(922): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
34)
WARN/XmlParser(922): at
com.google.gdata.client.Service.parseResponseData(Service.java:2165)
WARN/XmlParser(922): at
com.google.gdata.client.Service.parseResponseData(Service.java:2098)
WARN/XmlParser(922): at
com.google.gdata.client.Service.insert(Service.java:1410)
WARN/XmlParser(922): at
com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
WARN/XmlParser(922): at
NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
WARN/XmlParser(922): at
NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
WARN/XmlParser(922): at NewCalendar.access
$2(SetupCalendarNameActivity.java:104)
WARN/XmlParser(922): at NewCalendar
$3$1.run(SetupCalendarNameActivity.java:97)
WARN/XmlParser(922): at java.lang.Thread.run(Thread.java:1096)
WARN/System.err(922): com.google.gdata.util.ParseException:
org.xml.sax.SAXNotRecognizedException: 
http://xml.org/sax/features/external-parameter-entities
WARN/System.err(922): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:708)
WARN/System.err(922): at
com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
WARN/System.err(922): at
com.google.gdata.data.BaseEntry.parseAtom(BaseEntry.java:1015)
WARN/System.err(922): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
59)
WARN/System.err(922): at
com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:
39)
WARN/System.err(922): at
com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:
100)
WARN/System.err(922): at
com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:
52)
WARN/System.err(922): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
66)
WARN/System.err(922): at
com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:
34)
WARN/System.err(922): at
com.google.gdata.client.Service.parseResponseData(Service.java:2165)
WARN/System.err(922): at
com.google.gdata.client.Service.parseResponseData(Service.java:2098)
WARN/System.err(922): at
com.google.gdata.client.Service.insert(Service.java:1410)
WARN/System.err(922): at
com.google.gdata.client.GoogleService.insert(GoogleService.java:606)
WARN/System.err(922): at
NewCalendar.createCalendar(SetupCalendarNameActivity.java:205)
WARN/System.err(922): at
NewCalendar.handleCalendar(SetupCalendarNameActivity.java:113)
WARN/System.err(922): at NewCalendar.access
$2(SetupCalendarNameActivity.java:104)
WARN/System.err(922): at NewCalendar
$3$1.run(SetupCalendarNameActivity.java:97)
WARN/System.err(922): at java.lang.Thread.run(Thread.java:1096)
WARN/System.err(922): Caused by:
javax.xml.parsers.ParserConfigurationException:
org.xml.sax.SAXNotRecognizedException: 

[android-developers] Issue with WindowManager showing UI

2010-01-27 Thread Tushar
Hi,

I have just created this small application which shows simple textview
on receiving incoming call.  This app works perfectly on emulator.
Also it works very well when I launch main activity of application and
I receive incoming call.
But now if I restart phone  and if I receive incoming call, the
TextView UI  won't show up. If I check debug log everything seems
working fine i.e. my broadcast receiver receives event and invokes
function to show UI. But actual UI never shows up.
Now if I again launch application main activity and receive incoming
call, UI shows up properly.

Below is the code snippet:
---
public class IncomingCallReceiver extends BroadcastReceiver {


@Override
public void onReceive(Context context, Intent arg1) {

TelephonyManager telephony = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);


int callState = telephony.getCallState();

switch (callState) {

case TelephonyManager.CALL_STATE_IDLE: {
Log.d(MainActivity.TAG, CALL_STATE_IDLE);
hideUI(context) ;
}
break;
case TelephonyManager.CALL_STATE_OFFHOOK: {
Log.d(MainActivity.TAG, CALL_STATE_OFFHOOK);
 hideUI(context) ;
}
break;
case TelephonyManager.CALL_STATE_RINGING: {
Log.d(MainActivity.TAG, CALL_STATE_RINGING);
showUI(context) ;

}
break;
}

}

private WindowManager mWindowManager;
static View mainView ;

private void showUI(Context context) {

mWindowManager = (WindowManager) context
.getSystemService(Context.WINDOW_SERVICE);

WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_TOAST,
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
| 
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.OPAQUE);

TextView view = new TextView(context);
view.setText(This is text view do you see it ?);
mainView = view;
mWindowManager.addView(view, lp);

Log.d(MainActivity.TAG,  showUI done);

}
}

--

Not sure what could be the cause of behavior . Any clues ?

--Tushar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Application use of Haptics (When to enable/disable - minimizing confusion annoyance)

2009-12-13 Thread Tushar
I think it should be a global setting and it should follow the
Settings - Locale  Text 
If Haptics is turned OFF there the same should be followed in all
the application.

On Dec 11, 11:43 pm, Steve Scherer steve.schere...@gmail.com wrote:
 Is there a general guideline for application developers about when to
 disable haptic responses?  I know there are ways to enable/disable
 long-press haptics, but if an application was created to use haptic
 feedback for other events are there guidelines that application
 developers should follow?

 For example, if the user was to go into Settings-Sound  display -
 Haptic and set that to OFF, should all applications refer to this
 setting as a rule of thumb?  From and end user point of view, I would
 like to have global control of haptic feedback especially if I find it
 to be annoying.  I have seen several postings in the android forums
 looking for a global override to haptic responses.  Ultimately, I
 think it is a question of should each application provide a menu to
 enable/disable haptic support, or should this be more of a global
 Setting for the device.  I personally feel applications should refer
 to the global setting, but would like to get feedback from other
 developers about this.

 Reference postings I was referring 
 to:http://www.droidforums.net/forum/droid-general-discussions/6812-hapti...http://androidforums.com/samsung-moment/13633-how-do-you-disable-vibr...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Error starting tools in 1.6 on Mac OS - SOLUTION

2009-09-20 Thread Tushar

re-naming x86 to x86_64 does not work.
Following exception is thrown:
Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load
32-bit SWT libraries on 64-bit JVM


On Sep 17, 2:04 pm, Gil Margolin gilmargo...@gmail.com wrote:
 Or a much easier way is just rename the folder /tools/lib/x86 to /
 tools/lib/x86_64

 On Sep 16, 10:04 pm, David Horn pga...@gmail.com wrote:



  Hi,

  I've been unable to run any of the tools in the Donut SDK, using Snow
 Leopard- it seems to be due to the 64bit nature of the OS.

  Followed the steps in the upgrade guide, but when it comes to starting
  any of the tools (android, ddms etc), they refuse to start with the
  error message:

  David-Horns-MacBook:tools David$ ./ddms
  SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk-
  mac_x86-1.6_r1/tools/lib/x86_64' does not exist.
  Please export ANDROID_SWT to point to the folder containing swt.jar
  for your platform.

  There is no x86-64 folder, but I've come up with a bit of a bodge that
  works.  Open the file in a handy text editor, and look for the lines:

  # Combine the swtpath and the framework dir path.
  if [ -d $swtpath ]; then
      frameworkdir=${swtpath}:${frameworkdir}
  else
      echo SWT folder '${swtpath}' does not exist.
      echo Please export ANDROID_SWT to point to the folder containing
  swt.jar for your platform.
      exit 1
  fi

  Replace them with this, substituting your own path in to the lib
  folder.

  # Combine the swtpath and the framework dir path.
      frameworkdir=/Users/David/Desktop/Eclipse IDE/android-sdk-
  mac_x86-1.6_r1/tools/lib/x86:${frameworkdir}

  Hope this helps (not sure if this is a problem unique to me, or
  whether it's affecting everyone on SnowLeopard).

  Dave.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Error starting tools in 1.6 on Mac OS - SOLUTION

2009-09-20 Thread Tushar

Re-naming does  not work.
Following error occurs:
Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load
32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)


On Sep 17, 2:04 pm, Gil Margolin gilmargo...@gmail.com wrote:
 Or a much easier way is just rename the folder /tools/lib/x86 to /
 tools/lib/x86_64

 On Sep 16, 10:04 pm, David Horn pga...@gmail.com wrote:



  Hi,

  I've been unable to run any of the tools in the Donut SDK, using Snow
  Leopard - it seems to be due to the 64bit nature of theOS.

  Followed the steps in the upgrade guide, but when it comes to starting
  any of the tools (android, ddms etc), they refuse to start with the
  error message:

  David-Horns-MacBook:tools David$ ./ddms
  SWT folder '/Users/David/Desktop/Eclipse IDE/android-sdk-
  mac_x86-1.6_r1/tools/lib/x86_64' does not exist.
  Please export ANDROID_SWT to point to the folder containing swt.jar
  for your platform.

  There is no x86-64 folder, but I've come up with a bit of a bodge that
  works.  Open the file in a handy text editor, and look for the lines:

  # Combine the swtpath and the framework dir path.
  if [ -d $swtpath ]; then
      frameworkdir=${swtpath}:${frameworkdir}
  else
      echo SWT folder '${swtpath}' does not exist.
      echo Please export ANDROID_SWT to point to the folder containing
  swt.jar for your platform.
      exit 1
  fi

  Replace them with this, substituting your own path in to the lib
  folder.

  # Combine the swtpath and the framework dir path.
      frameworkdir=/Users/David/Desktop/Eclipse IDE/android-sdk-
  mac_x86-1.6_r1/tools/lib/x86:${frameworkdir}

  Hope this helps (not sure if this is a problem unique to me, or
  whether it's affecting everyone on Snow Leopard).

  Dave.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Error running android on snow leopard

2009-09-20 Thread Tushar

Added following command to  .bash_profile

export ANDROID_SWT=/Users/tusharkale/android-sdk-mac_x86-1.6_r1/tools/
lib/x86

Entered android command but got following exception:

Exception in thread main java.lang.UnsatisfiedLinkError: Cannot load
32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.clinit(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.init(Unknown Source)
at org.eclipse.swt.widgets.Display.init(Unknown Source)
at org.eclipse.swt.widgets.Display.init(Unknown Source)
at org.eclipse.swt.widgets.Display.getDefault(Unknown Source)
at org.eclipse.swt.widgets.Shell.init(Unknown Source)
at org.eclipse.swt.widgets.Shell.init(Unknown Source)
at
com.android.sdkuilib.internal.repository.UpdaterWindowImpl.createContents
(UpdaterWindowImpl.java:112)
at com.android.sdkuilib.internal.repository.UpdaterWindowImpl.open
(UpdaterWindowImpl.java:92)
at com.android.sdkuilib.repository.UpdaterWindow.open
(UpdaterWindow.java:91)
at com.android.sdkmanager.Main.showMainWindow(Main.java:252)
at com.android.sdkmanager.Main.doAction(Main.java:226)
at com.android.sdkmanager.Main.run(Main.java:79)
at com.android.sdkmanager.Main.main(Main.java:68)

~Tushar

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

2009-09-08 Thread Tushar

Hi,

In my application I'm placing ImageButton next to
AutoCompleteTextView.  So whenever virtual keypad is launched , my
ImageButton  shrinks to almost for half. I have tried to set minimum
height/width ..but no use.

What else should i do to stop it from shrinking ?

--Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 generate binaries with different configuration settings in Eclipse

2009-08-05 Thread Tushar

Hi,
This is more of Eclipse related to question, but  taking chances as
someone might faced this issue for android development.

For my android application I want to generate multiple binaries from
common source code and resources. Also looking out for way for doing
preprocessing of java source code.  This is something which is very
much straight forward in Netbeans using Project configuration.  Is
there any equivalent way available in Eclipse to achieve this ? Are
there any plugins for such things ?

Kindly do point me any relevant information for this.

Thanks a lot,


Regards,

Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do detect HSPA network ?

2009-07-27 Thread Tushar

Hi,
My application needs to detect network connection type.  When I run my
application of  developer device with 1.1  , it  is able to detect
network as UMTS .  But on  in HTC Magic, it's not able to detect UMTS
network.  On main screen it shows network as H which I guess means
HSPA.
As I understand HSPA is something called as 3.5 G.

I'm using TelephonyManager.NETWORK_TYPE_UMTS  constant for comparing
network.

Any hints ?


Regards,

Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 launch internal activity from PreferenceScreen

2009-06-09 Thread Tushar

Hi,

Using PreferenceScreen in xml format we can launch activity by
specifying Intent as shown in sample application

intent android:action=android.intent.action.VIEW
android:data=http://www.android.com; /

This will launch Browser activity which is registered to handle http
protocol.


But I would like to launch my internal activity by explicitly
specifying it's name e.g.

PreferenceScreen
android:title=Internal activity
android:summary=This will launch internal activity
screen
intent android:name=com.myapp.MyInternalActivity
android:data=mydata /

/PreferenceScreen


But this is not working. Getting exception of ActivityNotFound .

Am I missing anything ?


-- Tushar







--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 there any way to lauhc Google Maps application with direction

2009-06-02 Thread Tushar

Hi,

We can launch default map application using the Intent specified at
http://developer.android.com/guide/appendix/g-app-intents.html.

This launches maps application for one specified location . Is there
any way to inform the application to also draw directions between to
geo points also ?


Thanks ,

Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Task activity stack always reset when launched from Home

2009-05-07 Thread Tushar

I'm facing same issue. Did you got any fix or work around for this ?



On Mar 26, 6:55 pm, jseghers jsegh...@cequint.com wrote:
 The code that starts the .About activity is:
     protected void startAbout()
     {
         Intent aIntent = new Intent(this, About.class);
         startActivity(aIntent);
     }

 The Manifest entries for .UserLaunch and .About are in my original
 post.
 The intent that returns the task to the front is generated by the
 Launcher.

 What flags do I need to set (and where) to prevent this from
 happening? Is one of the default values causing it?

 My test case here is:
 1) launch .UserLaunch from the launcher
 2) start .About
 3) hit Home key
 4) launch .UserLuanch from the launcher

 There are no long delays in any of this, so the 30 minute auto-clear
 should not be invoked.

 - John

 On Mar 25, 12:15 pm, Dianne Hackborn hack...@android.com wrote:

  That means you are using some CLEAR_TOP or finish flag in an intent or in
  the manifest.  Or possibly it has been  30 minutes since the app was last
  launched, in which case the system will restart it automatically.

  On Wed, Mar 25, 2009 at 11:12 AM, jseghers jsegh...@cequint.com wrote:

   Thank you for your reply!

   I am seeing am_task_to_front followed by am_finish_activity.
   I found the event-log-tags file and apparently the reason is clear.
   What is not clear to me though is why the activity manager thinks it
   should clear the the task.

   The relevant lines of the log are:
   I/am_on_resume_called(   94): com.android.launcher.Launcher
   I/dvm_gc_info(   94):
   [7017575181485176104,-9053780441931634733,-4010030953047537782,8554533]
   I/force_gc(  209): bg
   I/dvm_gc_info(  209):
   [7163384747111232651,-9098816781953771608,-4017912252395432053,7919391]
   I/am_pause_activity(   52):
   [1128800640,com.android.launcher/.Launcher]
   I/am_task_to_front(   52): 3
   I/am_finish_activity(   52):
   [1129575992,3,com.cequint.cityid/.About,clear]
   I/am_destroy_activity(   52): [1129575992,3,com.cequint.cityid/.About]
   I/am_new_intent(   52):
   [112951,3,com.cequint.cityid/.UserLaunch,android.intent.action.MAIN,,,
   274726912]
   I/am_on_paused_called(   94): com.android.launcher.Launcher
   I/am_resume_activity(   52):
   [1129749080,3,com.cequint.cityid/.UserLaunch]
   I/am_on_resume_called(  209): com.cequint.cityid.UserLaunch
   I/dvm_gc_madvise_info(   94): [290816,245760]
   I/dvm_gc_madvise_info(  209): [352256,241664]
   I/force_gc(   94): bg

   - John
   On Mar 25, 10:16 am, Dianne Hackborn hack...@android.com wrote:
You can do adb logcat -b events to see the event log which will 
include
   a
line the activity manager prints when finishing an activity, with the
   reason
why it is doing it.

On Tue, Mar 24, 2009 at 7:24 PM, jseghers jsegh...@cequint.com wrote:

 I am just starting on an Android app and I am puzzled about why my
 Task activity stack is being reset any time the application is
 launched from the Home screen.

 I used the ADT tools to create the application in Eclipse.
 The main activity is .UserLaunch and it starts the activity .About
 when the user presses a button.
 If the user then presses HOME and then relaunches the app, .UserLaunch
 is displayed and is the only thing on the stack.

 .UserLaunch has the launchMode singleTask. .About is standard.
 According to the documentation at
http://developer.android.com/guide/topics/fundamentals.html#lmodes:

    However, a singleTask activity may or may not have other
 activities above it in the stack. If it does, it is not in position to
 handle the intent, and the intent is dropped. (Even though the intent
 is dropped, its arrival would have caused the task to come to the
 foreground, where it would remain.) 

 The Task stack should be brought to the foreground and .About should
 still be displayed.

 I added Logging to all of the lifecycle events (edited to remove
 timestamps and shorten DEBUG/ and INFO/ to D/ and I/) and you can see
 that when HOME is pressed, .About cycles through onPause and onStop
 (as expected).  Then when the app is again launched, .About is
 destroyed and .UserLaunch is restarted

 D/UserLaunch:(670): onCreate()
 D/UserLaunch:(670): onStart()
 D/UserLaunch:(670): onResume()
 I/ActivityManager(52): Displayed activity
 com.cequint.cityid/.UserLaunch: 4910 ms
 I/ActivityManager(52): Starting activity: Intent { comp=
 {com.cequint.cityid/com.cequint.cityid.About} }
 D/UserLaunch:(670): onPause()
 D/About(670): onCreate()
 D/About(670): onStart()
 D/About(670): onResume()
 I/ActivityManager(52): Displayed activity com.cequint.cityid/.About:
 1031 ms
 D/UserLaunch:(670): onStop()
 I/ActivityManager(52): Starting activity: Intent
 { action=android.intent.action.MAIN categories=
 {android.intent.category.HOME} flags=0x1020 comp=
 

[android-developers] Issue with activities

2009-05-06 Thread Tushar

Hi,
I writing a small application on android 1.1 . This application when
launched from application menu starts with Activity1 . Using some UI
Activity1 launches Activity2 which finally launches Activity3 after
some user action.
When Press Home button and relaunch my application Activity1 get
launched.
But now if try to launch Activity2 , instead of Activity2 , Activity3
comes to foreground with old state.  Now if I go back to Activity1 by
pressing back button and then try to launch Activity2 it works fine.

What could be reason of Activity3 coming in to foreground instead of
Activity2 in second scenario ?

I have set Activity1 's launch mode as singleInstance, where as
Activity2/Activity3 are using default settings.

Regards,

Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Making application link appear in other applications ContextMenu

2009-03-16 Thread Tushar

Hi,

Is it possible to appear in link for say launching one application in
some other applications. Typical example would we on desktop when we
right click and get option Open With and see all choices of
applications to open with.


Regards,

Tushar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Making application link appear in other applications ContextMenu

2009-03-16 Thread Tushar

I would like it to show in inbuilt applications may be such as Contact/
Call log etc.



On Mar 16, 8:28 am, Dianne Hackborn hack...@android.com wrote:
 This all depends on where you want to be shown.  If you are intended to be a
 handler for particular file types that the user downloads, then just declare
 your activity as a VIEW action with the appropriate MIME type, and you will
 be available for the user wherever that type is shown (such as in the
 download manager).

 Intent matching can be used for a wide variety of other things, but exactly
 what you do generally depends on where you want to be shown as an option.
 Be sure to read the Intent class and related documentation.  Note that at
 this point unfortunately a lot of the built-in applications don't provide
 super extensive ways to extend themselves this way, but hopefully that will
 improve over time.

 On Sun, Mar 15, 2009 at 11:56 PM, Tushar tusharpatu...@gmail.com wrote:

  Hi,

  Is it possible to appear in link for say launching one application in
  some other applications. Typical example would we on desktop when we
  right click and get option Open With and see all choices of
  applications to open with.

  Regards,

  Tushar

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Sharing data across Activities

2009-03-13 Thread Tushar

Hi,
I was looking out for ways to share data between various activities
that one may need to create for his applications . Using Parcel  and
Bundle one can do data exchange , but looks like  this is a bit
cumbersome process specifically if you have to share large array
objects with too many fields.

As  android.app.Application maintains global state for the
application , we can use this class to store global data and access it
across activities.  Is this a good way ? Are there any implications on
allocating large objects in the your class which extends from
android.app.Application ?

Is there any other better approach available ?

--Tushar




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sharing data across Activities

2009-03-13 Thread Tushar

But as per the Android documentation A content provider is only
required if you need to share data between multiple applications.

--Tushar


On Mar 13, 3:31 pm, nagaraj attimani nagaraj.attim...@gmail.com
wrote:
 Content Provider might sortout this issue ..



 On Fri, Mar 13, 2009 at 7:18 PM, Tushar tusharpatu...@gmail.com wrote:

  Hi,
  I was looking out for ways to share data between various activities
  that one may need to create for his applications . Using Parcel  and
  Bundle one can do data exchange , but looks like  this is a bit
  cumbersome process specifically if you have to share large array
  objects with too many fields.

  As  android.app.Application maintains global state for the
  application , we can use this class to store global data and access it
  across activities.  Is this a good way ? Are there any implications on
  allocating large objects in the your class which extends from
  android.app.Application ?

  Is there any other better approach available ?

  --Tushar

 --
 Best Regards
 Nagaraj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Sharing data across Activities

2009-03-13 Thread Tushar

Yes my Activities are all in the same application. I'm not sure about
Task.

Although I'm not killing my one activity (say activityOne )when
launching another activity ( say activityTwo) but are there any
chances that Android might simply kill my activityOne and I may loose
the data which I'm expecting in  activityTwo by storing it as static ?



On Mar 13, 4:00 pm, Edward  Falk ed.f...@gmail.com wrote:
 Are the activities all in the same application?  Same task?  It seems
 to me that you could just store the data in a static variable
 accessible by all of the activities.  Am I missing something?

 public class MainActivity extends Activity {
   ...
   static MyDataStructure dataStruct = null;
   ...
   public void onCreate(Bundle state) {
     ...
     dataStruct = ReadData();
   }

 }

 ...

 public class AnotherActivity extends Activity {
   ...
   void SomeMethod() {
     DoSomethingWithData(MainActivity.dataStruct);
   }

 }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 creat Toast Like view

2009-03-11 Thread Tushar

Hi,

Using android.widget.Toast one can created  floating view over the
application. I would like to created similar view which will float on
top of all running applications at a specified location. Any thoughts
on what should I need to do for this. I tried to created activity by
setting
android:windowIsFloating =true , but didn't worked out.


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