Re: [android-developers] HTML content on AppWidget

2012-06-04 Thread sha m
Hi,
   Android allows to draw remote views for widget.
Remote view do not support all the view to be placed in it.

On Mon, Jun 4, 2012 at 9:49 AM, zhang guichuan wrote:

> i have search for a long time. some method can add a complex app widget on
> launcher.  such as add append a activity app on launcher .
> but I dont know how to implement it.
>
>
> On Fri, Jun 1, 2012 at 7:19 PM, Mark Murphy wrote:
>
>> You cannot use WebView in an app widget. However, setTextViewText()
>> takes a CharSequence, so if your HTML is fairly limited, use
>> Html.fromHtml() to create such a CharSequence and put it in a TextView
>> in your app widget.
>>
>> On Fri, Jun 1, 2012 at 3:14 AM, zhang guichuan 
>> wrote:
>> > hi guys!
>> > I am searching for some information about how to show HTML content on
>> > appwidget.
>> > there is a old post in the forum ,
>> >
>> https://groups.google.com/group/android-developers/browse_thread/thread/cb6a65d4aaad5b13/ec4e1ad5845cd073?lnk=gst&q=webview+appwidget#ec4e1ad5845cd073
>> >
>> > I wanna to know if there any way can do that, or is there any open
>> source
>> > project can achieve it since its a long time from that old post.
>> > if you know ...please do let me know~ 3x
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, 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/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 3.7 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
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Re: android bindservice rotation

2012-06-04 Thread sha m
why shouldnt  startservice/stopservice instead of bind/unbinding to the
service


On Mon, Jun 4, 2012 at 3:15 PM, Kostya Vasilyev  wrote:

>
> 04.06.2012 13:06, Greenhand написал:
>
>  I modify my code and use bindService(new
>> Intent(getApplicationContext()**, MessengerService.class), mConnection,
>> Context.BIND_AUTO_CREATE) but my service still be killed and created
>> with my Activity life cycle. Can you please illustrate "Don't unbind
>> in the old activity instance -- only unbind from the new one." more
>> clearly, such as some code fragments?
>>
>
> Don't unbind from the activity that's going away during rotation.
>
> Use onRetainNonConfigurationInstan**ce / getLastNonConfigurationInstanc**e
> to carry the service connection over from the "portrait" activity instance
> to the "landscape" activity instance.
>
> Unbind as usual when the second, rotated, instance gets destroyed.
>
>
>  I have never used a fragement. Is it different from Activity when it
>> comes to handling bound service on rotation?
>>
>
> If you bind to the service from a fragment, you can have the framework
> retain the fragment on rotation by setting fragment.setRetainInstance(**true),
> rather than using the two Activity methods with unpronounceable names,
> above.
>
> -- K
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to 
> android-developers@**googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+**unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en
>

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

Re: [android-developers] how to use android library project jar and resource?

2012-04-18 Thread sha m
thank you for the information.

On Wed, Apr 18, 2012 at 6:28 PM, Mark Murphy wrote:

> On Wed, Apr 18, 2012 at 8:21 AM, sha m  wrote:
> > I do not want to refer the library project source code in the application
> > project since android has provided an option to export the library jar
> and
> > res seperately from r15.
>
> This is not supported for redistribution, AFAIK. That is still a work
> in progress. An Android library project must be attached directly, as
> is described in the documentation (e.g.,
>
> http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject
> )
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] how to use android library project jar and resource?

2012-04-18 Thread sha m
Hi folks,

I have jar and resource folder of an android library project.
I wanted to refer the resources of the library project in my project from
eclipse.
I do not want to refer the library project source code in the application
project since android has provided an option to export the library jar and
res seperately from r15.
Though I have an option to include jar via properties-> library -> build
path, I couldnt figure out where the resource should be specified.
I using android 4.0.3 - r15.
Could someone help me on this?

regards,
sha

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

Re: [android-developers] How to keep activity running

2012-03-19 Thread sha m
There are four components part of application.
Instead of using activity create a service and try to use it...

On Mon, Mar 19, 2012 at 7:09 PM, RedBullet  wrote:

> My application is a GPS nav type app. Needs to be running when I am doing
> a route.
>
> It appears that the system can decide to kill my process (I see onDestroy)
> get called for example.
>
> So, what's the right policy here, should I over-ride the onDestroy and
> just have it do nothing, but provide a way to manually kill the activity?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Connectivity Manager does not return Active network information

2012-03-16 Thread sha m
Hi Mark and Robert ,
   Thanks a lot for the information.
I had my bluetooth active and connected to another mobile, but still
returned null in API level 7.
So it means this can be verified only above API level 13?

My intention was to check the VPN connection.
Could you please guide me on that?

Regards,
Sha


On Thu, Mar 15, 2012 at 9:22 PM, Mark Murphy wrote:

> On Thu, Mar 15, 2012 at 11:48 AM, Robert Greenwalt
>  wrote:
> > In some situations (reverse tethering) BT can be the active network, but
> as
> > Mark says you'd have to have that turned on and connected.
>
> Oops, I forgot they added that in API Level 13. Thanks for pointing that
> out!
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android App Developer Books: http://commonsware.com/books
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Back button not working properly after coming out of Tabactivity

2012-03-15 Thread sha m
Why is the current process killed on back press??

On Thu, Mar 15, 2012 at 4:11 PM, vani reddy wrote:

>
> Hi friends,
>
> Under a particular tab of the tabactivity ,there are 2 activities. A and
> then B.From the menu of B activity when i press Logout it goes to Login
> screen,which is outside the tabactivity.On back button press of login
>  screen it goes back to the Activity B.Though i have given
>  @Override
> public void onBackPressed() {
> // TODO Auto-generated method stub
>  super.onBackPressed();
> System.out.println("INSIDE ONBACK PRESSED ");
>  android.os.Process.killProcess(android.os.Process.myPid());
> }
> in the Login Screen.
>
> How to resolve this issue.
> --
> Regards,
> Vani Reddy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Connectivity Manager does not return Active network information

2012-03-15 Thread sha m
Hi,
I'm trying to find the current active network with the help of
ConnectivityManager.
ConnectivityManager.getActiveNetworkInfo() always returns null in android
2.1 device, eventhough i have enabled wifi,bluetooth.
Could someone advice me on this.

Regards,
Sha

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

2012-03-15 Thread sha m
hope this tutorial helps you

http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html

regards,
sha


On Thu, Mar 15, 2012 at 4:45 PM, Satheesh Kumar T <
satheesh.androiddevelo...@gmail.com> wrote:

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

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

2012-03-08 Thread sha m
pin is the edittext object.
compare the value of the pin "pin.getText().toString()" to compare the
value that u expect



On Tue, Mar 6, 2012 at 12:45 AM, ~JAI~  wrote:

> hi friends,
>
> i'm new to android. i'm using the code below to create a new intent
> activity based on if condition validation.. but it doesn't work... pls
> help me..
>
>
>
> CODE
>
>
> package com.example.helloandroid;
>
> public class Main extends Activity {
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>
>ImageButton next2 = (ImageButton)
> findViewById(R.id.imageButton1);
>next2.setOnClickListener(new View.OnClickListener() {
>public void onClick(View view) {
>
>EditText pin =
> (EditText)findViewById(R.id.editText1); //value from edit text
>
> Log.v("EditText", pin.getText().toString()); //
> this works in log
>
>if (pin.equals()){
>Intent myIntent = new Intent(view.getContext(),
> home.class);
>startActivityForResult(myIntent, 1);
> }
>}
>});
>}
>@Override
>public void onBackPressed() {
>return;
>
>}
> }
>
>
> the log file gets the value from text box, but the if condition does
> not work.. pls help me.. thanks in advance...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2012-03-08 Thread sha m
FrameLayout helps to draw one view above another


On Thu, Mar 8, 2012 at 6:10 PM, Put_tiMe  wrote:

> I need to have a background and a foreground image views in a LinearLayout.
>
> Obviously the background has to be drawn before the foreground.
>
> How can I do it?
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] how to display a text above Coverflow

2012-03-06 Thread sha m
The label of the activity can be used instead using a seperate text view.

Regards,
Sha

On Mon, Mar 5, 2012 at 12:04 PM, ravi .  wrote:

> I need to display a textview on the top of the coverflow of each item
> when i scroll
>
> http://4.bp.blogspot.com/_UW2f-eaiXZs/S4lCNH-wpyI/AJE/0Ce8jGe8fSA/s1600-h/coverflowv2.png
> can any one help
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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