[android-developers] Need Help in ListView

2011-11-25 Thread Kiran Kumar Kendole
Hi Guys,

I have a question. Can you please help me out.

There s some data pulling from Database. I have made a structure and stored
in a String Object.
Could you please help me out how to use this String and show the data as a
ListView.
Please have a look. This is how I am showing data as of now.

When click on SHOW button , the following method  will get execute..

*public void showListData(View button){*
*setContentView(R.layout.listview);*
*final TextView output = (TextView) findViewById(R.id.listitem);*
*StringBuilder sb = new StringBuilder();*
*DBOpenHelper dbObj=new DBOpenHelper(this);*
*dbObj.open();*
*Cursor c = dbObj.getAllDetails();*
*if (c.moveToFirst()){*
*   do {*
*   sb.append(Heading:\n +c.getString(0)+\nDescription:\n
+c.getString(1)+\n\n);*
*   } while (c.moveToNext());*
*}*
*output.setText(sb.toString());*
*}*

Thanks,
KIRANKUMARKENDOLE

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 you think that writing test cases of Activities is worthwhile?

2011-11-25 Thread Mooncheol Yang
I've done written many many test cases for android codes.
i wrote test cases for 3rd party applications..
i wrote test cases for native application (in device manufacturer),
also for android framework (only part that we add, modify)

I have been a tester for many years. i've been writing unit test code
for java in web application area. also development programmer...
when i was writing test code in java application, i felt quit this is
worthwhile job at least, it was not easy work though...

in Android world of code..  i..  feel..  i am not sure what i am is
doing..
because, (of course, it depends on what applications are) in one
android application, there over 80% are activities, and rest are
receivers, services, providers.

it make sense to me for writing test code for receivers, services,
providers. each component is working independent. so it's quite
helpful writing test codes.
also, if i use ant task, or continuous build system like Jenkins, it
can be very useful..  i've done these things..

but for Activities..  i might feel..   this is not right..

I completely know what android Instrumentation test is , any helpful
libraries(like robotium, roboletric, even i made some
libraries...)
the thing is for activities, after writing test many codes for
activities, i felt testing with my hands is more efficient..

i think unit test is one of way of developing program. agile also says
so is TDD (unit test).
i am not sure writing a test code for activity is best way of making
better quality codes... it takes a lots of time..  activity is not
working independently.. as you know...and test code can't cover many
codes.

i just want know...
if any of you are writing test codes for activities...  how do you
write? or can you tell me how you write test codes..

well..

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


Re: [android-developers] Re: C/C++ struct in android

2011-11-25 Thread Aitor Mendaza Ormaza
On Thu, Nov 24, 2011 at 8:44 PM, Lew lewbl...@gmail.com wrote:

 Bret Foreman wrote:

 If the OP is really concerned about performance he can create an array
 of objects and implement his own protocol for reusing them. Then after
 the initial creation of the array, no objects need to be either
 created or destroyed.


 This might or might not have any effect on performance, much less a
 noticeable one.

 The OP has shared no evidence that they have a performance problem,
 related to GC or otherwise.

 There is no evidence that your approach would help, because changing the
 lifetime of objects influences GC in sometimes unexpected ways.  Even if
 the array approach did shave of a few milliseconds here or there, the added
 complexity of manually taking over memory management could create slowdowns
 and likely would create errors, and the effect on overall application
 performance would still be negligible.

 If the OP is really concerned about performance, and willing to behave
 like an intelligent person, he can *measure* the app's performance under
 realistic conditions, *profile* it and determine where the inefficient
 spots are *before* and *instead of* engaging cargo-cult superstitions about
 what will help.


Maybe I didn't explain myself very clear, sorry for this and for my
english, as this is not my first language. So, I'll try to clarify myself,
as I am being addressed as stupid (not like that, but saying things like
willing to behave like an intelligent person implies that I'm not
behaving like one):
I have not started the developed of that part of the application, so I
can't measure or profile the performance. I was first doing a bit of
research, to try to do things as they should be done, from the beginning,
not start doing thins randomly, and then try to improve the results. So I
came here to ask for possible solutions I might not know (as I know I'm not
an expert, not in Java and not in Android). My first idea was to do it as
all of you suggested, by using objets (classes for structs). But I read on
android webpage (see the link I shared before) that we should avoid
creating objets when possible.
So, as I don't know any other means of doing this without creating objects,
I came here, to ask if there was another way of doing this in android, that
I'm not aware of.

So, I'll start creating classes, as suggested, and If find some performance
problems, I'll try the alternative ways suggested here.

Thanks to everyone for your help and time ^_^

Best regards!


 If you double the speed of something that only took 0.01% of overall
 execution time, but you have tripled the maintenance costs for the whole
 app and added new bugs that require new fixes, how is that a win?

 --
 Lew

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




-- 
---
http://aitorTheRed.blogspot.com
http://www.last.fm/user/aitorTheRed/

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

2011-11-25 Thread Kiran Kumar Kendole
Hi Guys,

I am trying to design a options menu. I tried it, working fine. But the
problem , It is showing same options for all pages.
My requriement is

In Home Page ( I need only EDIT, DELETE,ATTACH options)
Second Page ( I need only BACK , HOME , EXIT  options).

Like I want some of the options for some pages. Please suggest me.

Thanks,
KIRANKUMARKENDOLE

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

Re: [android-developers] Need Help in Options Menu

2011-11-25 Thread Johan Rydenstam
Several ways to do this. One solution is to have two XML files that defines the 
different menus.


On Nov 25, 2011, at 9:19 AM, Kiran Kumar Kendole wrote:

 Hi Guys,
 
 I am trying to design a options menu. I tried it, working fine. But the 
 problem , It is showing same options for all pages. 
 My requriement is 
 
 In Home Page ( I need only EDIT, DELETE,ATTACH options)
 Second Page ( I need only BACK , HOME , EXIT  options).
 
 Like I want some of the options for some pages. Please suggest me.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Table layout with different length column

2011-11-25 Thread Uthpala Weerasena
How can it use in programmatic way without directly using in xml

On Thu, Nov 24, 2011 at 7:00 AM, Mark Murphy mmur...@commonsware.comwrote:

 Use android:layout_span to have your first two rows span the two columns.

 On Thu, Nov 24, 2011 at 7:28 AM, sam urweeras...@gmail.com wrote:
  Hi Everyone,
  I have a Table layout done in problematically And I want to to develop
  it as first two rows have only one column and other three rows have
  two column. First two rows' values should be spread whole row.
  Can anyone guide me by sending tutorial or any link regarding this
  Thanks
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 



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

 Android Training in NYC: http://marakana.com/training/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




-- 
Uthpala Weerasena

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

[android-developers] Re: How to play MP4 videos on Android 1.5 easily?

2011-11-25 Thread saex
no one haves a simple example to do it please?

On Nov 24, 8:30 pm, saex elpablos...@gmail.com wrote:
 Ineed to play a short MP4 video when my app starts. I'm searching info
 about how to load mp4 videos but i can't find the way to do it on
 Android 1.5. My app sould be compatible from Android 1.5 to 4.0

 I tryed with a lot of tutorials from google, but none of them works.
 For example, now i'm trying with the VideoViewDemo from android
 developers:http://developer.android.com/resources/samples/ApiDemos/src/com/examp...

 I have a video on my ASSETS folder, and i just need to play the video,
 only this. I can not believe that doesn't exists a simple and quick
 way to do it.

 Please, if someone knows how to do it i will apreciate your help a
 lot.

 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] Need Help in Options Menu

2011-11-25 Thread Kiran Kumar Kendole
Thanks for the reply.
I have two XMLs. And One Activity Class. there I used one XML like this.
 *public boolean onCreateOptionsMenu(Menu menu) {*
*MenuInflater inflater = getMenuInflater();*
*inflater.inflate(R.menu.optionsmenu, menu);*
*return true;*
*}*
*
*
But it is showing the same options for all screens. Could you please let me
know how to use the second XML.

Thanks,
KIRANKUMARKENDOLE


On Fri, Nov 25, 2011 at 3:23 AM, Johan Rydenstam 
johanrydens...@googlemail.com wrote:

 Several ways to do this. One solution is to have two XML files that
 defines the different menus.


 On Nov 25, 2011, at 9:19 AM, Kiran Kumar Kendole wrote:

 Hi Guys,

 I am trying to design a options menu. I tried it, working fine. But the
 problem , It is showing same options for all pages.
 My requriement is

 In Home Page ( I need only EDIT, DELETE,ATTACH options)
 Second Page ( I need only BACK , HOME , EXIT  options).

 Like I want some of the options for some pages. Please suggest me.

 Thanks,
 KIRANKUMARKENDOLE

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


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

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

[android-developers] Re: Developing a WhatsApp(Android)

2011-11-25 Thread rachana govilkar
hey helo
even i want it as i am doing chat application sort of like
whatsapp
i just want to show only those who have d app installed n not all
friends in d list
thnks

On Nov 1, 8:21 am, TreKing treking...@gmail.com wrote:
 On Sat, Oct 29, 2011 at 12:11 AM, Firzan Gulam 

 firzan.itechnolo...@gmail.com wrote:
  for this what service i have to use???

 Try Google.

 -
 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


[android-developers] search box unexpected display

2011-11-25 Thread Jerry Cui
Dear all,
I open a search website, just like google.com,and input a word at
the text blank, then click the Search Button on the website (not
inputmethod), and click the HOME key return to destop.
When I enter the Browser and rotate the phone ,quick search box
displayed with the word I entered on the google.com.
I don't know why.
In the logcat, I found the quicksearchbox is luanched by the
Luanch2 Process.

Anyone can tell me something about this,thank you very much.

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


Re: [android-developers] Need Help in Options Menu

2011-11-25 Thread Johan Rydenstam
How do you know what menu you want?

You could start the activity by passing in some extra parameter with the intent.

  public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
if(getIntent.getBooleanExtra(second_menu,true))
 inflater.inflate(R.menu.optionsmenu, menu);
else
inflater.inflate(R.meny.optonsSecondMenu, menu);
 return true;
 }


On Nov 25, 2011, at 10:03 AM, Kiran Kumar Kendole wrote:

 Thanks for the reply.
 I have two XMLs. And One Activity Class. there I used one XML like this.
  public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
 inflater.inflate(R.menu.optionsmenu, menu);
 return true;
 }
 
 But it is showing the same options for all screens. Could you please let me 
 know how to use the second XML.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 
 On Fri, Nov 25, 2011 at 3:23 AM, Johan Rydenstam 
 johanrydens...@googlemail.com wrote:
 Several ways to do this. One solution is to have two XML files that defines 
 the different menus.
 
 
 On Nov 25, 2011, at 9:19 AM, Kiran Kumar Kendole wrote:
 
 Hi Guys,
 
 I am trying to design a options menu. I tried it, working fine. But the 
 problem , It is showing same options for all pages. 
 My requriement is 
 
 In Home Page ( I need only EDIT, DELETE,ATTACH options)
 Second Page ( I need only BACK , HOME , EXIT  options).
 
 Like I want some of the options for some pages. Please suggest me.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Disable Home button code not working in another application

2011-11-25 Thread Naveen
I am writing this code for block Home keypad of phone when playing
video file android , that works fine but when i am using this code in
another application then it's not working...trying to find possible
way why not disabling the home key

public void onAttachedToWindow()
{
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
super.onAttachedToWindow();
}

Here manifest file permissions are:

uses-permission xmlns:android=http://schemas.android.com/apk/res/
android
android:name=android.permission.INTERNET/uses-permission
uses-permission
android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/

uses-permission android:name=android.permission.READ_INPUT_STATE/
uses-permission
uses-permission
android:name=android.permission.ACCESS_NETWORK_STATE /
 uses-permission android:name=android.permission.READ_PHONE_STATE/

uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE/
  uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
android:name=android.permission.ACCESS_MOCK_LOCATION /
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION /
uses-permission android:name=android.permission.DISABLE_KEYGUARD/


Activity

   activity android:name=VideoPlayer android:theme=@android:style/
Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/

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

2011-11-25 Thread Mukesh Srivastav
Guys,

Let me tell you the Real Architecture of Whatsapps before you land up in
different views.

1. It uses xmpp protocol for messaging.

2. It uses Jabber Server and it's services for maintaining the sessions.

Regards,
-Mukesh Kumar,
Android Consultant/Freelancer,
India,Hyderabad.


On Fri, Nov 25, 2011 at 2:34 PM, rachana govilkar 
rachana.govil...@gmail.com wrote:

 hey helo
 even i want it as i am doing chat application sort of like
 whatsapp
 i just want to show only those who have d app installed n not all
 friends in d list
 thnks

 On Nov 1, 8:21 am, TreKing treking...@gmail.com wrote:
  On Sat, Oct 29, 2011 at 12:11 AM, Firzan Gulam 
 
  firzan.itechnolo...@gmail.com wrote:
   for this what service i have to use???
 
  Try Google.
 
 
 -
  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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-25 Thread Graham Bright
Thanks for the great advice, I figured out the problem. I had an issue with
array initialization, and my thread was doing nothing
On Nov 25, 2011 8:06 a.m., Lew lewbl...@gmail.com wrote:

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread Mukesh Srivastav
Dear Naveen,

In order to achieve this, The Architecture of the application should be
like this.

1. Create an ParentActivity which extends the Activity

2. And all other activities should extend the parent acitivity.

Add the below code to the parent activity , rest it take cares in any part
of your application. hope you got it.


Regards,
Mukesh Kumar,
Android Consultant/Freelancer,
India,Hyderabad.

On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.comwrote:

 I am writing this code for block Home keypad of phone when playing
 video file android , that works fine but when i am using this code in
 another application then it's not working...trying to find possible
 way why not disabling the home key

 public void onAttachedToWindow()
 {
 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
 super.onAttachedToWindow();
 }

 Here manifest file permissions are:

uses-permission xmlns:android=http://schemas.android.com/apk/res/
 android

  android:name=android.permission.INTERNET/uses-permission
uses-permission
 android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/

 uses-permission android:name=android.permission.READ_INPUT_STATE/
 uses-permission
 uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
  uses-permission android:name=android.permission.READ_PHONE_STATE/
 
 uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/
  uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
 android:name=android.permission.ACCESS_MOCK_LOCATION /
uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION /
 uses-permission android:name=android.permission.DISABLE_KEYGUARD/


 Activity

   activity android:name=VideoPlayer android:theme=@android:style/
 Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread NaveenShrivastva
I am using *public class VideoPlayer extends Activity implements
OnCompletionListener*

this class interface here in this class i am also using the back button
.





On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav mukicha...@gmail.com
wrote:
 Dear Naveen,
 In order to achieve this, The Architecture of the application should be
like
 this.
 1. Create an ParentActivity which extends the Activity
 2. And all other activities should extend the parent acitivity.
 Add the below code to the parent activity , rest it take cares in any part
 of your application. hope you got it.

 Regards,
 Mukesh Kumar,
 Android Consultant/Freelancer,
 India,Hyderabad.
 On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
 wrote:

 I am writing this code for block Home keypad of phone when playing
 video file android , that works fine but when i am using this code in
 another application then it's not working...trying to find possible
 way why not disabling the home key

 public void onAttachedToWindow()
 {
 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
 super.onAttachedToWindow();
 }

 Here manifest file permissions are:

uses-permission xmlns:android=
http://schemas.android.com/apk/res/
 android

  android:name=android.permission.INTERNET/uses-permission
uses-permission
 android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/

 uses-permission android:name=android.permission.READ_INPUT_STATE/
 uses-permission
 uses-permission
 android:name=android.permission.ACCESS_NETWORK_STATE /
  uses-permission android:name=android.permission.READ_PHONE_STATE/
 
 uses-permission
 android:name=android.permission.WRITE_EXTERNAL_STORAGE/
  uses-permission
 android:name=android.permission.ACCESS_FINE_LOCATION /
uses-permission
 android:name=android.permission.ACCESS_MOCK_LOCATION /
uses-permission
 android:name=android.permission.ACCESS_COARSE_LOCATION /
 uses-permission android:name=android.permission.DISABLE_KEYGUARD/


 Activity

   activity android:name=VideoPlayer android:theme=@android:style/
 Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread NaveenShrivastva
Please give me more guide line for handle this cases ...

On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:

 I am using *public class VideoPlayer extends Activity implements
 OnCompletionListener*

 this class interface here in this class i am also using the back button
 .





 On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav mukicha...@gmail.com
 wrote:
  Dear Naveen,
  In order to achieve this, The Architecture of the application should be
 like
  this.
  1. Create an ParentActivity which extends the Activity
  2. And all other activities should extend the parent acitivity.
  Add the below code to the parent activity , rest it take cares in any
 part
  of your application. hope you got it.
 
  Regards,
  Mukesh Kumar,
  Android Consultant/Freelancer,
  India,Hyderabad.
  On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
  wrote:
 
  I am writing this code for block Home keypad of phone when playing
  video file android , that works fine but when i am using this code in
  another application then it's not working...trying to find possible
  way why not disabling the home key
 
  public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
  super.onAttachedToWindow();
  }
 
  Here manifest file permissions are:
 
 uses-permission xmlns:android=
 http://schemas.android.com/apk/res/
  android
 
   android:name=android.permission.INTERNET/uses-permission
 uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/
 
  uses-permission android:name=android.permission.READ_INPUT_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.ACCESS_NETWORK_STATE /
   uses-permission android:name=android.permission.READ_PHONE_STATE/
  
  uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE/
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /
  uses-permission android:name=android.permission.DISABLE_KEYGUARD/
 
 
  Activity
 
activity android:name=VideoPlayer android:theme=@android:style/
  Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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] Need Help in Options Menu

2011-11-25 Thread Kiran Kumar Kendole
Thanks. It worked after using Intent.

Any other way.. with using one XML file.

Thanks,
KIRANKUMARKENDOLE


On Fri, Nov 25, 2011 at 4:07 AM, Johan Rydenstam 
johanrydens...@googlemail.com wrote:

 How do you know what menu you want?

 You could start the activity by passing in some extra parameter with the
 intent.

  *public boolean onCreateOptionsMenu(Menu menu) {*
 *MenuInflater inflater = getMenuInflater();*

 if(getIntent.getBooleanExtra(second_menu,true))

 *inflater.inflate(R.menu.optionsmenu, menu);*

 else
 inflater.inflate(R.meny.optonsSecondMenu, menu);

 *return true;*
 *}*


 On Nov 25, 2011, at 10:03 AM, Kiran Kumar Kendole wrote:

 Thanks for the reply.
 I have two XMLs. And One Activity Class. there I used one XML like this.
  *public boolean onCreateOptionsMenu(Menu menu) {*
 *MenuInflater inflater = getMenuInflater();*
 *inflater.inflate(R.menu.optionsmenu, menu);*
 *return true;*
 *}*
 *
 *
 But it is showing the same options for all screens. Could you please let
 me know how to use the second XML.

 Thanks,
 KIRANKUMARKENDOLE


 On Fri, Nov 25, 2011 at 3:23 AM, Johan Rydenstam 
 johanrydens...@googlemail.com wrote:

 Several ways to do this. One solution is to have two XML files that
 defines the different menus.


 On Nov 25, 2011, at 9:19 AM, Kiran Kumar Kendole wrote:

 Hi Guys,

 I am trying to design a options menu. I tried it, working fine. But the
 problem , It is showing same options for all pages.
 My requriement is

 In Home Page ( I need only EDIT, DELETE,ATTACH options)
 Second Page ( I need only BACK , HOME , EXIT  options).

 Like I want some of the options for some pages. Please suggest me.

 Thanks,
 KIRANKUMARKENDOLE

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


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

Re: [android-developers] Need Help in Options Menu

2011-11-25 Thread Johan Rydenstam
You can add and remove buttons programatically. Don't how by heart. Google it :)
On Nov 25, 2011, at 10:43 AM, Kiran Kumar Kendole wrote:

 Thanks. It worked after using Intent.
 
 Any other way.. with using one XML file.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 
 On Fri, Nov 25, 2011 at 4:07 AM, Johan Rydenstam 
 johanrydens...@googlemail.com wrote:
 How do you know what menu you want?
 
 You could start the activity by passing in some extra parameter with the 
 intent.
 
  public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
   
 if(getIntent.getBooleanExtra(second_menu,true))
 inflater.inflate(R.menu.optionsmenu, menu);
   else
   inflater.inflate(R.meny.optonsSecondMenu, menu);
 return true;
 }
 
 
 On Nov 25, 2011, at 10:03 AM, Kiran Kumar Kendole wrote:
 
 Thanks for the reply.
 I have two XMLs. And One Activity Class. there I used one XML like this.
  public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
 inflater.inflate(R.menu.optionsmenu, menu);
 return true;
 }
 
 But it is showing the same options for all screens. Could you please let me 
 know how to use the second XML.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 
 On Fri, Nov 25, 2011 at 3:23 AM, Johan Rydenstam 
 johanrydens...@googlemail.com wrote:
 Several ways to do this. One solution is to have two XML files that defines 
 the different menus.
 
 
 On Nov 25, 2011, at 9:19 AM, Kiran Kumar Kendole wrote:
 
 Hi Guys,
 
 I am trying to design a options menu. I tried it, working fine. But the 
 problem , It is showing same options for all pages. 
 My requriement is 
 
 In Home Page ( I need only EDIT, DELETE,ATTACH options)
 Second Page ( I need only BACK , HOME , EXIT  options).
 
 Like I want some of the options for some pages. Please suggest me.
 
 Thanks,
 KIRANKUMARKENDOLE
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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
 
 
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: PLEASE HELP . java.lang.NullPointerException when Service uses ArrayList

2011-11-25 Thread BelvCompSvs
what I was trying to say is that to find where the exception is
occurring it is (often) useful to wrap the problem code in a tight
exception trap and figure out exactly where the problem is

I grasp what you are saying as there is a design reason Error is not a
checked exception

My efforts here were directed at assisting OP to find where the
problem is but you are correct that some exceptions need to propagate

On Nov 24, 12:52 pm, Lew lewbl...@gmail.com wrote:
  BelvCompSvs wrote:

  I'm just here to confirm what the other two coders told you ~ I found
  it on first read place a catch( Throwable ) around the call
  to .print_result(MyService.

 That's actually pretty bad advice.  Don't place a 'catch (Throwable ...)'
 around anything.

  java:62) and look at line 62 in MyService but before you even try that

 That's actually pretty good advice.  Take a look at line 62.  (I wonder why
 you didn't identify that line for us, seeing as how you're asking for help)

 do Object someObject= ((val=null)?(error):(val)) all over code as



 Huh?  I don't even understand this advice, much less endorse it.  However,
 every interpretation I put on this advice leads to a really bad idea, so
 I'm going to suggest that whatever this advice means, you should not follow
 it.

 What you /should/ do is make sure that references point to something other
 than 'null' before you try to dereference them.

  what you are looking for is a result of many design types telling
  people that code handles nulls

  it doesn't = you have to go look for it and find it

 What?

 Maybe if there were some punctuation, capital letters, and complete
 sentences in there I could understand what this guys is suggesting.

 when you do, fix it some way.



 I agree with this advice, which boils down to the oh-so-insightful
 suggestion that analyze the problem, determine a solution!  That's good
 advice, and I'm sure you'll find it exceedingly helpful.

 Not.

 NullPointerExceptions, like other RuntimeExceptions, are a result of
 programmer error, in this case yours.  It means that you have a pointer
 still pointing to 'null', but you tried to use it as if it pointed to
 something not 'null'.  You have to assign your pointers to something not
 'null', and you have to check your pointers before dereferencing them to
 make sure they aren't 'null'.

 As stated upthread, the stack trace (plus my hint) will tell you which
 pointer was pointing to 'null' when you tried to dereference it.

 --
 Lew

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


Re: [android-developers] Disable Home button code not working in another application

2011-11-25 Thread NaveenShrivastva
I am using handler inside onCreate for loading dialog, when using handler
then home block key code not works , but when removing handler then  it's

work fine .


How to block home key with using handler ...

Home blocking key works that time activity title bar visible , but here
that's hidden by code.

Please help me.

*final* Handler handler = *new* *Handler*() {

   *public* void *handleMessage*(Message msg) {

  dialog.*dismiss*();
  }
   };





On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:

 Please give me more guide line for handle this cases ...


 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using *public class VideoPlayer extends Activity implements
 OnCompletionListener*

 this class interface here in this class i am also using the back button
 .





 On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav mukicha...@gmail.com
 wrote:
  Dear Naveen,
  In order to achieve this, The Architecture of the application should be
 like
  this.
  1. Create an ParentActivity which extends the Activity
  2. And all other activities should extend the parent acitivity.
  Add the below code to the parent activity , rest it take cares in any
 part
  of your application. hope you got it.
 
  Regards,
  Mukesh Kumar,
  Android Consultant/Freelancer,
  India,Hyderabad.
  On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
  wrote:
 
  I am writing this code for block Home keypad of phone when playing
  video file android , that works fine but when i am using this code in
  another application then it's not working...trying to find possible
  way why not disabling the home key
 
  public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
  super.onAttachedToWindow();
  }
 
  Here manifest file permissions are:
 
 uses-permission xmlns:android=
 http://schemas.android.com/apk/res/
  android
 
   android:name=android.permission.INTERNET/uses-permission
 uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/
 
  uses-permission android:name=android.permission.READ_INPUT_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.ACCESS_NETWORK_STATE /
   uses-permission android:name=android.permission.READ_PHONE_STATE/
  
  uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE/
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /
  uses-permission android:name=android.permission.DISABLE_KEYGUARD/
 
 
  Activity
 
activity android:name=VideoPlayer android:theme=@android:style/
  Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread NaveenShrivastva
@Override
public void onAttachedToWindow()
{
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
super.onAttachedToWindow();
}

This code for home key block is not working with handler , please give me
advice how to handle this one now.

On Fri, Nov 25, 2011 at 3:55 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:

 I am using handler inside onCreate for loading dialog, when using handler
 then home block key code not works , but when removing handler then  it's

 work fine .


 How to block home key with using handler ...

 Home blocking key works that time activity title bar visible , but here
 that's hidden by code.

 Please help me.

 *final* Handler handler = *new* *Handler*() {


*public* void *handleMessage*(Message msg) {


   dialog.*dismiss*();
   }
};





 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 Please give me more guide line for handle this cases ...


 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using *public class VideoPlayer extends Activity implements
 OnCompletionListener*

 this class interface here in this class i am also using the back button
 .





 On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav mukicha...@gmail.com
 wrote:
  Dear Naveen,
  In order to achieve this, The Architecture of the application should
 be like
  this.
  1. Create an ParentActivity which extends the Activity
  2. And all other activities should extend the parent acitivity.
  Add the below code to the parent activity , rest it take cares in any
 part
  of your application. hope you got it.
 
  Regards,
  Mukesh Kumar,
  Android Consultant/Freelancer,
  India,Hyderabad.
  On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
  wrote:
 
  I am writing this code for block Home keypad of phone when playing
  video file android , that works fine but when i am using this code in
  another application then it's not working...trying to find possible
  way why not disabling the home key
 
  public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
  super.onAttachedToWindow();
  }
 
  Here manifest file permissions are:
 
 uses-permission xmlns:android=
 http://schemas.android.com/apk/res/
  android
 
   android:name=android.permission.INTERNET/uses-permission
 uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/
 
  uses-permission android:name=android.permission.READ_INPUT_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.ACCESS_NETWORK_STATE /
   uses-permission android:name=android.permission.READ_PHONE_STATE/
  
  uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE/
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /
  uses-permission android:name=android.permission.DISABLE_KEYGUARD/
 
 
  Activity
 
activity android:name=VideoPlayer android:theme=@android:style/
  Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread Mukesh Srivastav
Please make use of AsyncTask .

Mukesh Kumar,
Android Consultant/Freelancer,
India,Hyderabad.

On Fri, Nov 25, 2011 at 4:01 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:

 @Override

 public void onAttachedToWindow()
 {
 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
 super.onAttachedToWindow();
 }

 This code for home key block is not working with handler , please give me
 advice how to handle this one now.


 On Fri, Nov 25, 2011 at 3:55 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using handler inside onCreate for loading dialog, when using handler
 then home block key code not works , but when removing handler then  it's

 work fine .


 How to block home key with using handler ...

 Home blocking key works that time activity title bar visible , but here
 that's hidden by code.

 Please help me.

 *final* Handler handler = *new* *Handler*() {



*public* void *handleMessage*(Message msg) {



   dialog.*dismiss*();
   }
};






 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 Please give me more guide line for handle this cases ...


 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using *public class VideoPlayer extends Activity implements
 OnCompletionListener*

 this class interface here in this class i am also using the back button
 .





 On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav mukicha...@gmail.com
 wrote:
  Dear Naveen,
  In order to achieve this, The Architecture of the application should
 be like
  this.
  1. Create an ParentActivity which extends the Activity
  2. And all other activities should extend the parent acitivity.
  Add the below code to the parent activity , rest it take cares in any
 part
  of your application. hope you got it.
 
  Regards,
  Mukesh Kumar,
  Android Consultant/Freelancer,
  India,Hyderabad.
  On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
  wrote:
 
  I am writing this code for block Home keypad of phone when playing
  video file android , that works fine but when i am using this code in
  another application then it's not working...trying to find possible
  way why not disabling the home key
 
  public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
  super.onAttachedToWindow();
  }
 
  Here manifest file permissions are:
 
 uses-permission xmlns:android=
 http://schemas.android.com/apk/res/
  android
 
   android:name=android.permission.INTERNET/uses-permission
 uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/
 
  uses-permission
 android:name=android.permission.READ_INPUT_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.ACCESS_NETWORK_STATE /
   uses-permission android:name=android.permission.READ_PHONE_STATE/
  
  uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE/
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /
  uses-permission android:name=android.permission.DISABLE_KEYGUARD/
 
 
  Activity
 
activity android:name=VideoPlayer android:theme=@android:style/
  Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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] Disable Home button code not working in another application

2011-11-25 Thread NaveenShrivastva
Sure i can able to AsyncTask  but there lot of coding stubs done by me
using handler need to change more coding stubs , that not actual solution
this is alternation solution , i want to solution with handler how to
handle this cases.

Regards,
Naveen shr




On Fri, Nov 25, 2011 at 4:05 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 Please make use of AsyncTask .

 Mukesh Kumar,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Nov 25, 2011 at 4:01 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 @Override

 public void onAttachedToWindow()
 {
 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
 super.onAttachedToWindow();
 }

 This code for home key block is not working with handler , please give me
 advice how to handle this one now.


 On Fri, Nov 25, 2011 at 3:55 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using handler inside onCreate for loading dialog, when using
 handler then home block key code not works , but when removing handler then
  it's

 work fine .


 How to block home key with using handler ...

 Home blocking key works that time activity title bar visible , but here
 that's hidden by code.

 Please help me.

 *final* Handler handler = *new* *Handler*() {




*public* void *handleMessage*(Message msg) {




   dialog.*dismiss*();
   }
};







 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 Please give me more guide line for handle this cases ...


 On Fri, Nov 25, 2011 at 3:03 PM, NaveenShrivastva 
 kumarnaveen.si...@gmail.com wrote:

 I am using *public class VideoPlayer extends Activity implements
 OnCompletionListener*

 this class interface here in this class i am also using the back
 button .





 On Fri, Nov 25, 2011 at 2:55 PM, Mukesh Srivastav 
 mukicha...@gmail.com wrote:
  Dear Naveen,
  In order to achieve this, The Architecture of the application should
 be like
  this.
  1. Create an ParentActivity which extends the Activity
  2. And all other activities should extend the parent acitivity.
  Add the below code to the parent activity , rest it take cares in
 any part
  of your application. hope you got it.
 
  Regards,
  Mukesh Kumar,
  Android Consultant/Freelancer,
  India,Hyderabad.
  On Fri, Nov 25, 2011 at 2:49 PM, Naveen kumarnaveen.si...@gmail.com
 
  wrote:
 
  I am writing this code for block Home keypad of phone when playing
  video file android , that works fine but when i am using this code
 in
  another application then it's not working...trying to find possible
  way why not disabling the home key
 
  public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
  super.onAttachedToWindow();
  }
 
  Here manifest file permissions are:
 
 uses-permission xmlns:android=
 http://schemas.android.com/apk/res/
  android
 
   android:name=android.permission.INTERNET/uses-permission
 uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE/
 
  uses-permission
 android:name=android.permission.READ_INPUT_STATE/
  uses-permission
  uses-permission
  android:name=android.permission.ACCESS_NETWORK_STATE /
   uses-permission
 android:name=android.permission.READ_PHONE_STATE/
  
  uses-permission
  android:name=android.permission.WRITE_EXTERNAL_STORAGE/
   uses-permission
  android:name=android.permission.ACCESS_FINE_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_MOCK_LOCATION /
 uses-permission
  android:name=android.permission.ACCESS_COARSE_LOCATION /
  uses-permission
 android:name=android.permission.DISABLE_KEYGUARD/
 
 
  Activity
 
activity android:name=VideoPlayer
 android:theme=@android:style/
  Theme.NoTitleBar.Fullscreen android:screenOrientation=landscape/
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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 

[android-developers] vedio editing software

2011-11-25 Thread deepak gusain
Dear All Friends,

I need a video editor software which edit dvd file also ..



-- 
Regards
Deepak Gusain
RHCSA, MCITP, CCNA
M.no:- 9417248523

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

2011-11-25 Thread Mukesh Srivastav
You are landed up in the Wrong forum.

Mukesh Kumar.


On Fri, Nov 25, 2011 at 4:17 PM, deepak gusain deepakgusai...@gmail.comwrote:

 Dear All Friends,

 I need a video editor software which edit dvd file also ..



 --
 RegardsW
 Deepak Gusain
 RHCSA, MCITP, CCNA
 M.no:- 9417248523

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

2011-11-25 Thread bhaskar bommala
Hi ,

Can anyone help me on http streaming video.
i have  used videoview or mediaplayer  but in these 2 cases only the video
playing once the video is fully completed the buffering ,but i want to play
video while buffering...

Thanks in Advance..

On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:

 HI, i have found in net that Honey comb supports Http Live
 Streaming.Has any one tried on this, how to test the HLS on Honey
 Comb,Please Help me out how to test the HLS,

 Thanks in Advance,
 Bhargavi.

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

2011-11-25 Thread Mukesh Srivastav
Check this out. They have the Streaming Server and also Android Version of
the client.

http://blog.justin.tv/justintv-android/


Regards,
Mukesh Kumar,
Android Consultant/Freelancer,
India,Hyderabad.

On Fri, Nov 25, 2011 at 4:23 PM, bhaskar bommala bhaskar...@gmail.comwrote:

 Hi ,

 Can anyone help me on http streaming video.
 i have  used videoview or mediaplayer  but in these 2 cases only the video
 playing once the video is fully completed the buffering ,but i want to play
 video while buffering...

 Thanks in Advance..

 On Wed, Oct 12, 2011 at 5:29 PM, bhargavi bhargavi1...@gmail.com wrote:

 HI, i have found in net that Honey comb supports Http Live
 Streaming.Has any one tried on this, how to test the HLS on Honey
 Comb,Please Help me out how to test the HLS,

 Thanks in Advance,
 Bhargavi.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Shajahan
I need to show the information about the field in an activity. For this i
have created a buton and placed next to the field.
Now when wants to know abt this field, he can click on that button and get
the info.
I am trying for PopupWindow. i have placed my code on the onClick event of
the button

// Start of code for PopupWindow
PopupWindow popupWindow = new PopupWindow(context);
TextView textView = new TextView(context);
popupWindow.setContentView(textView);
LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
textView.setLayoutParams(layoutParams);
textView.setText(My text goes here);
popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
// End of code for PopupWindow

But the above doent help in showing the PopupWindow.

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

2011-11-25 Thread Mukesh Srivastav
Code looks fine but the problem would be with context.

do the following.

1.create a context class variable. some thing like this.
   Context parentcontext;

2.Assign this in the onCreate Method.

parentcontext = this;

3. then pass the parentcontext to the popupwindow

  or The another solution would be

use getParentContext(), Might helps.



On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote:

 I need to show the information about the field in an activity. For this i
 have created a buton and placed next to the field.
 Now when wants to know abt this field, he can click on that button and get
 the info.
 I am trying for PopupWindow. i have placed my code on the onClick event
 of the button

 // Start of code for PopupWindow
 PopupWindow popupWindow = new PopupWindow(context);
 TextView textView = new TextView(context);
 popupWindow.setContentView(textView);
 LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
 LayoutParams.WRAP_CONTENT);
 textView.setLayoutParams(layoutParams);
 textView.setText(My text goes here);
 popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
 // End of code for PopupWindow

 But the above doent help in showing the PopupWindow.

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Shajahan
Hi Mukesh,

Thanks for the reply.

am doing the same
Context context = this;

On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
 Code looks fine but the problem would be with context.

 do the following.

 1.create a context class variable. some thing like this.
    Context parentcontext;

 2.Assign this in the onCreate Method.

     parentcontext = this;

 3. then pass the parentcontext to the popupwindow

   or The another solution would be

 use getParentContext(), Might helps.





 On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote:
  I need to show the information about the field in an activity. For this i
  have created a buton and placed next to the field.
  Now when wants to know abt this field, he can click on that button and get
  the info.
  I am trying for PopupWindow. i have placed my code on the onClick event
  of the button

  // Start of code for PopupWindow
  PopupWindow popupWindow = new PopupWindow(context);
  TextView textView = new TextView(context);
  popupWindow.setContentView(textView);
  LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
  LayoutParams.WRAP_CONTENT);
  textView.setLayoutParams(layoutParams);
  textView.setText(My text goes here);
  popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
  // End of code for PopupWindow

  But the above doent help in showing the PopupWindow.

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

 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.- Hide quoted text -

 - Show quoted text -

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


Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Mukesh Srivastav
Let use know, if it works.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote:

 Hi Mukesh,

 Thanks for the reply.

 am doing the same
 Context context = this;

 On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
  Code looks fine but the problem would be with context.
 
  do the following.
 
  1.create a context class variable. some thing like this.
 Context parentcontext;
 
  2.Assign this in the onCreate Method.
 
  parentcontext = this;
 
  3. then pass the parentcontext to the popupwindow
 
or The another solution would be
 
  use getParentContext(), Might helps.
 
 
 
 
 
  On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote:
   I need to show the information about the field in an activity. For
 this i
   have created a buton and placed next to the field.
   Now when wants to know abt this field, he can click on that button and
 get
   the info.
   I am trying for PopupWindow. i have placed my code on the onClick event
   of the button
 
   // Start of code for PopupWindow
   PopupWindow popupWindow = new PopupWindow(context);
   TextView textView = new TextView(context);
   popupWindow.setContentView(textView);
   LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
   LayoutParams.WRAP_CONTENT);
   textView.setLayoutParams(layoutParams);
   textView.setText(My text goes here);
   popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
   // End of code for PopupWindow
 
   But the above doent help in showing the PopupWindow.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Warm Regards,
  *Mukesh Kumar*,
  Android Consultant/Freelancer,
  India,Hyderabad.- Hide quoted text -
 
  - Show quoted text -

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


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

[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Shajahan
its not working...:(
looking for some help

On Nov 25, 4:20 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
 Let use know, if it works.

 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.



 On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote:
  Hi Mukesh,

  Thanks for the reply.

  am doing the same
  Context context = this;

  On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
   Code looks fine but the problem would be with context.

   do the following.

   1.create a context class variable. some thing like this.
      Context parentcontext;

   2.Assign this in the onCreate Method.

       parentcontext = this;

   3. then pass the parentcontext to the popupwindow

     or The another solution would be

   use getParentContext(), Might helps.

   On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com wrote:
I need to show the information about the field in an activity. For
  this i
have created a buton and placed next to the field.
Now when wants to know abt this field, he can click on that button and
  get
the info.
I am trying for PopupWindow. i have placed my code on the onClick event
of the button

// Start of code for PopupWindow
PopupWindow popupWindow = new PopupWindow(context);
TextView textView = new TextView(context);
popupWindow.setContentView(textView);
LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
textView.setLayoutParams(layoutParams);
textView.setText(My text goes here);
popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
// End of code for PopupWindow

But the above doent help in showing the PopupWindow.

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

   --
   Warm Regards,
   *Mukesh Kumar*,
   Android Consultant/Freelancer,
   India,Hyderabad.- Hide quoted text -

   - Show quoted text -

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

 - Show quoted text -

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

2011-11-25 Thread KK
Hi All,
I'm trying to show a list of songs using ListView (which supports scrolling
when the song list grows bigger than the available screen). In this regard,
I'm able to show the list of songs but whenever the user tries to scroll
the screen up/down the part of the screen which has the text,  goes black
 as can be seen here (and is not readable):
  http://imageshack.us/photo/my-images/706/device2025132814.png/
  http://imageshack.us/photo/my-images/17/device2025132731.png/

Only when the user is done scrolling then dark portion goes out and the
screen starts showing the song list normally and is readable. I've tested
this on Android 2.3.4 real device. Would appreciate if someone could point
me what is going wrong here.

The code snippet for generating the song list is as below:

snippet

?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:background=@drawable/statue_of_liberty_600x800
 android:orientation=vertical android:layout_width=fill_parent
android:layout_height=fill_parent
 ListView android:id=@android:id/list android:divider=@null
android:dividerHeight=0dp android:layout_width=fill_parent
 android:layout_weight=9
android:layout_height=382dp android:layout_marginLeft=10dp
 android:layout_marginRight=10dp android:layout_marginBottom=10dp
android:layout_marginTop=10dp
 /ListView
TextView android:id=@id/android:empty android:layout_width=fill_parent
 android:layout_height=fill_parent android:text=No songs found on SD
Card.
android:paddingTop=60dp /
 SeekBar android:layout_height=wrap_content
android:layout_width=match_parent android:id=@+id/seekBar1
 android:layout_marginTop=10dp android:layout_weight=1
android:layout_marginLeft=15dp android:layout_marginRight=15dp
android:layout_marginBottom=15dp
 /SeekBar
/LinearLayout

snippet---


Appreciate your time. Thanks.

Regards,
KK

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

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Mukesh Srivastav
I am sure, the problem must with the context.

Any ways, for the popupwindow, you could always go with the AlertDialog, it
will also work as popup.


On Fri, Nov 25, 2011 at 4:57 PM, Shajahan lovesa...@gmail.com wrote:

 its not working...:(
 looking for some help

 On Nov 25, 4:20 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
  Let use know, if it works.
 
  Warm Regards,
  *Mukesh Kumar*,
  Android Consultant/Freelancer,
  India,Hyderabad.
 
 
 
  On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote:
   Hi Mukesh,
 
   Thanks for the reply.
 
   am doing the same
   Context context = this;
 
   On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
Code looks fine but the problem would be with context.
 
do the following.
 
1.create a context class variable. some thing like this.
   Context parentcontext;
 
2.Assign this in the onCreate Method.
 
parentcontext = this;
 
3. then pass the parentcontext to the popupwindow
 
  or The another solution would be
 
use getParentContext(), Might helps.
 
On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com
 wrote:
 I need to show the information about the field in an activity. For
   this i
 have created a buton and placed next to the field.
 Now when wants to know abt this field, he can click on that button
 and
   get
 the info.
 I am trying for PopupWindow. i have placed my code on the onClick
 event
 of the button
 
 // Start of code for PopupWindow
 PopupWindow popupWindow = new PopupWindow(context);
 TextView textView = new TextView(context);
 popupWindow.setContentView(textView);
 LayoutParams layoutParams = new
 LayoutParams(LayoutParams.WRAP_CONTENT,
 LayoutParams.WRAP_CONTENT);
 textView.setLayoutParams(layoutParams);
 textView.setText(My text goes here);
 popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
 // End of code for PopupWindow
 
 But the above doent help in showing the PopupWindow.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.- Hide quoted text -
 
- Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2011-11-25 Thread Mukesh Srivastav
Hi KK,

Please add the following line to your listview, The problem get solves.

android:cacheColorHint=#


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Fri, Nov 25, 2011 at 4:59 PM, KK dioxide.softw...@gmail.com wrote:

 Hi All,
 I'm trying to show a list of songs using ListView (which supports
 scrolling when the song list grows bigger than the available screen). In
 this regard, I'm able to show the list of songs but whenever the user tries
 to scroll the screen up/down the part of the screen which has the text,
  goes black  as can be seen here (and is not readable):
   http://imageshack.us/photo/my-images/706/device2025132814.png/
   http://imageshack.us/photo/my-images/17/device2025132731.png/

 Only when the user is done scrolling then dark portion goes out and the
 screen starts showing the song list normally and is readable. I've tested
 this on Android 2.3.4 real device. Would appreciate if someone could point
 me what is going wrong here.

 The code snippet for generating the song list is as below:

 snippet

 ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:background=@drawable/statue_of_liberty_600x800
  android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent
  ListView android:id=@android:id/list android:divider=@null
 android:dividerHeight=0dp android:layout_width=fill_parent
  android:layout_weight=9
 android:layout_height=382dp android:layout_marginLeft=10dp
  android:layout_marginRight=10dp android:layout_marginBottom=10dp
 android:layout_marginTop=10dp
  /ListView
 TextView android:id=@id/android:empty android:layout_width=fill_parent
  android:layout_height=fill_parent android:text=No songs found on SD
 Card.
 android:paddingTop=60dp /
  SeekBar android:layout_height=wrap_content
 android:layout_width=match_parent android:id=@+id/seekBar1
  android:layout_marginTop=10dp android:layout_weight=1
 android:layout_marginLeft=15dp android:layout_marginRight=15dp
 android:layout_marginBottom=15dp
  /SeekBar
 /LinearLayout

 snippet---


 Appreciate your time. Thanks.

 Regards,
 KK

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




-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2011-11-25 Thread KK
It really solved the problem. You are a lifesaver. Thank you very much.

Regards,
KK

On Fri, Nov 25, 2011 at 5:05 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 Hi KK,

 Please add the following line to your listview, The problem get solves.

 android:cacheColorHint=#


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Nov 25, 2011 at 4:59 PM, KK dioxide.softw...@gmail.com wrote:

 Hi All,
 I'm trying to show a list of songs using ListView (which supports
 scrolling when the song list grows bigger than the available screen). In
 this regard, I'm able to show the list of songs but whenever the user tries
 to scroll the screen up/down the part of the screen which has the text,
  goes black  as can be seen here (and is not readable):
   http://imageshack.us/photo/my-images/706/device2025132814.png/

   http://imageshack.us/photo/my-images/17/device2025132731.png/

 Only when the user is done scrolling then dark portion goes out and the
 screen starts showing the song list normally and is readable. I've tested
 this on Android 2.3.4 real device. Would appreciate if someone could point
 me what is going wrong here.

 The code snippet for generating the song list is as below:

 snippet

 ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:background=@drawable/statue_of_liberty_600x800
  android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent
  ListView android:id=@android:id/list android:divider=@null
 android:dividerHeight=0dp android:layout_width=fill_parent
  android:layout_weight=9
 android:layout_height=382dp android:layout_marginLeft=10dp
  android:layout_marginRight=10dp android:layout_marginBottom=10dp
 android:layout_marginTop=10dp
  /ListView
 TextView android:id=@id/android:empty
 android:layout_width=fill_parent
  android:layout_height=fill_parent android:text=No songs found on SD
 Card.
 android:paddingTop=60dp /
  SeekBar android:layout_height=wrap_content
 android:layout_width=match_parent android:id=@+id/seekBar1
  android:layout_marginTop=10dp android:layout_weight=1
 android:layout_marginLeft=15dp android:layout_marginRight=15dp
 android:layout_marginBottom=15dp
  /SeekBar
 /LinearLayout

 snippet---


 Appreciate your time. Thanks.

 Regards,
 KK

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.



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

2011-11-25 Thread Mukesh Srivastav
You are always Welcome Mr.KK.


Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.


On Fri, Nov 25, 2011 at 5:09 PM, KK dioxide.softw...@gmail.com wrote:

 It really solved the problem. You are a lifesaver. Thank you very much.

 Regards,
 KK

 On Fri, Nov 25, 2011 at 5:05 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 Hi KK,

 Please add the following line to your listview, The problem get solves.

 android:cacheColorHint=#


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Nov 25, 2011 at 4:59 PM, KK dioxide.softw...@gmail.com wrote:

 Hi All,
 I'm trying to show a list of songs using ListView (which supports
 scrolling when the song list grows bigger than the available screen). In
 this regard, I'm able to show the list of songs but whenever the user tries
 to scroll the screen up/down the part of the screen which has the text,
  goes black  as can be seen here (and is not readable):
   http://imageshack.us/photo/my-images/706/device2025132814.png/

   http://imageshack.us/photo/my-images/17/device2025132731.png/

 Only when the user is done scrolling then dark portion goes out and the
 screen starts showing the song list normally and is readable. I've tested
 this on Android 2.3.4 real device. Would appreciate if someone could point
 me what is going wrong here.

 The code snippet for generating the song list is as below:

 snippet

 ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
 
 android:background=@drawable/statue_of_liberty_600x800
  android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent
  ListView android:id=@android:id/list android:divider=@null
 android:dividerHeight=0dp android:layout_width=fill_parent
  android:layout_weight=9
 android:layout_height=382dp android:layout_marginLeft=10dp
  android:layout_marginRight=10dp android:layout_marginBottom=10dp
 android:layout_marginTop=10dp
  /ListView
 TextView android:id=@id/android:empty
 android:layout_width=fill_parent
  android:layout_height=fill_parent android:text=No songs found on SD
 Card.
 android:paddingTop=60dp /
  SeekBar android:layout_height=wrap_content
 android:layout_width=match_parent android:id=@+id/seekBar1
  android:layout_marginTop=10dp android:layout_weight=1
 android:layout_marginLeft=15dp android:layout_marginRight=15dp
 android:layout_marginBottom=15dp
  /SeekBar
 /LinearLayout

 snippet---


 Appreciate your time. Thanks.

 Regards,
 KK

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.





-- 
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.

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

2011-11-25 Thread Aki
It is the application context. I want to display the dialog from a service.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] this.requestWindowFeature(Window.FEATURE_NO_TITLE); code not work when home key block

2011-11-25 Thread Naveen
Hello All,

I do not want title bar so coded
this.requestWindowFeature(Window.FEATURE_NO_TITLE);  but when using
this below code then this title bar code not works it's showing title
header .


 @Override
public void onAttachedToWindow() {
 
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);


super.onAttachedToWindow();
}

But in create i have already coded

  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 load videos from assets folder? (to play them with VideoView)

2011-11-25 Thread saex
Hi

i need to open a mp4 video from the assets folder and play it with
VideoView.

THis is my actual code:

this.setContentView(R.layout.videoview);
mVideoView = (VideoView) this.findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
mVideoView.setMediaController(mc);
mVideoView.setVideoPath(file:///android_asset/videos.mp4);
mVideoView.requestFocus();
mVideoView.start();

It doesn't works, but if i try to open the video from the SDCARD it
works perfectly, then, the problem is when i'm trying to load the
video from the assets folder.

What i'm doing wrong?

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] Dialog Activity

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 6:19 AM, Aki arnab...@gmail.com wrote:

 It is the application context. I want to display the dialog from a service.


So what do you need with button click listeners?

-
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

Re: [android-developers] Need Help in ListView

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 2:06 AM, Kiran Kumar Kendole 
k.kirankumar1...@gmail.com wrote:

 There s some data pulling from Database. [...]
 Could you please help me out how to use this String and show the data as a
 ListView.


http://developer.android.com/reference/android/widget/CursorAdapter.html

-
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

Re: [android-developers] Disable Home button code not working in another application

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 3:19 AM, Naveen kumarnaveen.si...@gmail.com wrote:

 I am writing this code for block Home keypad of phone when playing video
 file android , that works fine but when i am using this code in another
 application then it's not working...trying to find possible way why not
 disabling the home key


Disabling the Home Key is not allowed. What you are doing is an exploit
which Dianne has stated has been fixed in ICS.

-
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

Re: [android-developers] Dialog Activity

2011-11-25 Thread TreKing
Or ... why not just handle the button clicks within the Dialog-themed
Activity itself?

On Fri, Nov 25, 2011 at 6:46 AM, TreKing treking...@gmail.com wrote:

 On Fri, Nov 25, 2011 at 6:19 AM, Aki arnab...@gmail.com wrote:

 It is the application context. I want to display the dialog from a
 service.


 So what do you need with button click listeners?



 -
 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

[android-developers] ICS is not reporting NdefFormatable as tech for Mifare Classic and Mifare Ultralight

2011-11-25 Thread krohnjw
ICS is not reporting NdefFormatable as tech for Mifare Classic and Mifare 
Ultralight.  Is this the intended behavior?  In = 2.3.7 NdefFormatable was 
always reported for these tags, but in both an AOSP ICS build as well as a 
Galaxy Nexus it is no longer reported or accessible.

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

2011-11-25 Thread sktniran
Thank you so much TreKing  and JonFHancock... it's worked for 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] Re: How can use two cameras to record video or capture pic simultaneously?

2011-11-25 Thread jdmitch
I am trying to figure this one out as well - more specifically I want to 
use the front-facing and rear-facing cameras from the same device and have 
them in the same file (or otherwise simultaneously played/streamed).  Have 
you come across any answers since you posted this?  There does seem to be a 
bit more documentation in the ICS SDK on the Camera function, but I could 
find a straight answer to the 2-cameras 1 device issue...

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

2011-11-25 Thread mohana priya
Hello android developers.I need to call the activity class inside the
java class,because i need to do the application in phonegap.Please
tell me the solution.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


Re: [android-developers] Extreme battery life

2011-11-25 Thread Fred Niggle
May i suggest that if your set on doing this then you'll need to
explore solar charging.
Regards,
Fred

On 25 November 2011 07:40, Kristopher Micinski krismicin...@gmail.com wrote:


 On Tue, Nov 22, 2011 at 4:26 PM, Bret Foreman bret.fore...@gmail.com
 wrote:

 I'm looking to put a phone in a remote location off the grid to report
 back some sensor data once a day. I can buy after-market extended-life
 batteries for many popular phones and I'm wondering what kind of life
 I might get from this arrangement. The big batteries hold about
 4000mAh. I'd like the whole rig to run for 4 months - about 2400
 hours. That implies getting the average phone draw well below 2mA.

 If my app keeps the phone in airplane mode except once a day to fire
 up and send data, and if the rest of the wireless networking is turned
 off, and if the screen is never on, does this sound feasible?


 Out of sheer curiosity, why not do this using some cheap wireless sensor
 network node?  It's a lot cheaper than a phone, and can get a lot better
 battery life.  I assume the reason is that there is some sensor on the phone
 you need?  Or perhaps that you want to use the telephony capabilities of the
 phone for something or another?
 kris

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] After building into the ICS(Icecream Sandwich) Emulator, size of the widget appears in home-screen is different as compared to the size of the widget installed on the home-screen

2011-11-25 Thread Abhishek Kumar Gupta
Actually, I want to include a widget by default in home-screen. I got the 
widget in home-screen(after building ICS source), but I have observed that 
the size of the widget is smaller as compared to the size of the widget 
that I have installed from Widgets screen. How can I make size of 
widget(in both cases) equal?
Can anyone guide me to resolve this issue?

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

2011-11-25 Thread Oli Wright
Everything said above.  Oh, with the exception that the definition of 
Fuck as a bad word is down to the individual. Much like the views of the 
OP ...

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

2011-11-25 Thread Jim Graham
On Fri, Nov 25, 2011 at 02:36:46PM +, Fred Niggle wrote:
 May i suggest that if your set on doing this then you'll need to
 explore solar charging.

He's already said that solar isn't an option because of the environment.
If that's true, then solar is ruled out.  The gell cells I suggested can
do the job (but it might take a LOT of gell cells, depending on the load
and the duration required).

I would also look into any other source of energy available (flowing
water, wind, etc.), to provide at least SOME amount of re-charge for
the gell cells (or whatever).

I also suggest doing some research on SCADA (Systems Control And
Data Acquisition) systems and how they're powered in hostile
environments.  This is not a new problem...power companies, companies
with oil and gas pipelines, telcos and IXCs with remote (and unmanned)
sites, etc., all use SCADA systems to remotely monitor those sites.

Just google on SCADA and you should find either your answer or more
resources from which you can find your answer (might be books, journals,
corporate contacts, or detailed examples).  Hell, you might even find
a paper I wrote on this subject a long time ago while I was in college
getting my degree in electronics/telecom (I seriously doubt it, though).

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

   Someone ever tries to kill you, you try to kill 'em right back!
   --Mal (Firefly, 1x03, Our Mrs. Reynolds)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Augmented Reality Advertisement: Survey

2011-11-25 Thread EdwardComb
Hi,

As for completing the final year project, I am in the midst of
distributing the survey questions that are related to the enhancement
of physical advertisement like newspaper, magazine, brochure and
flyer. I believed, most of the people used to buy or read one of them.
Thus, I would really appreciate if you are willing to participate in
this survey.

About the survey:
This survey is looking for the responses of the people towards the
advertisement in the newspaper, magazine, brochure or flyer.
Specifically, it is referring to the food advertisement like
chocolate, ice cream, fast food and the others.  By using technology,
this advertisement can be enhanced and the responses from this survey
will be used to implement Augmented Reality Advertisement on Android
(ReADroid).

Your participation in this research is voluntary and completion of the
survey is an indication of your informed consent to participate. You
are under no obligation to participate in the study. You can decide to
withdraw at any point prior to, or during the study. If you decide to
withdraw, any information that has already been provided in the survey
will not be used.

If you agree to participate, please complete the questionnaires below:

http://www.surveypie.com/survey101011

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Android test project - are any permissions ignored in favor of the target application?

2011-11-25 Thread B Lyon
I have been trying to create an android test where the android test
project has permissions that the target application does not.  The
purpose would be for the test to change various things about the
environment as part of testing the application.  However, the testing
harness/framework seems to ignore any permissions I set in the
manifest of the test project.  Only the permissions of the target
application seem to be in play.

My question is whether the permissions on the test project are used
for anything.

Note - I am using robotium, but I assume that this is not affecting
the behavior since it is just a library being used by the android test
project.

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


[android-developers] Re: How to load videos from assets folder? (to play them with VideoView)

2011-11-25 Thread saex
no one can help??

On Nov 25, 1:47 pm, saex elpablos...@gmail.com wrote:
 Hi

 i need to open a mp4 video from the assets folder and play it with
 VideoView.

 THis is my actual code:

     this.setContentView(R.layout.videoview);
     mVideoView = (VideoView) this.findViewById(R.id.surface_view);
     MediaController mc = new MediaController(this);
     mVideoView.setMediaController(mc);
     mVideoView.setVideoPath(file:///android_asset/videos.mp4);
     mVideoView.requestFocus();
     mVideoView.start();

 It doesn't works, but if i try to open the video from the SDCARD it
 works perfectly, then, the problem is when i'm trying to load the
 video from the assets folder.

 What i'm doing wrong?

 thanks

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


[android-developers] Re: How to call the activity class

2011-11-25 Thread Kumar Bibek
Your question is not clear.

Please clarify by giving more details.

On Nov 25, 7:21 pm, mohana priya gpriyara...@gmail.com wrote:
 Hello android developers.I need to call the activity class inside the
 java class,because i need to do the application in phonegap.Please
 tell me the solution.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


Re: [android-developers] How to call the activity class

2011-11-25 Thread Navindian
new intent(activityclass.class)
startactivity(intent)

On Fri, Nov 25, 2011 at 7:51 PM, mohana priya gpriyara...@gmail.com wrote:

 Hello android developers.I need to call the activity class inside the
 java class,because i need to do the application in phonegap.Please
 tell me the solution.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

[android-developers] How to apply theme light to one list alone

2011-11-25 Thread wyo
All I'd like is having certain lists with white background yet that
seems not easlily possible. First applying the theme to the activity
with the listview didn't work (see
http://groups.google.com/group/android-developers/browse_thread/thread/aa9b888a49c6cdfb?hl=de)
until I figured out to apply it to the initial activity and merge it
with the NoTitleBar like

android:theme=@android:style/Theme.Light.NoTitleBar

Well that will also change the style of the tabs which it should not.
So I applied it to the ListView with no effect. I've also tried any
other position within the list yet I wasn't successful. I've looked at
other list samples but haven't found any.

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

2011-11-25 Thread Mark Murphy
On the whole, I would recommend you have a consistent color scheme.

That being said, the settings for Theme.Light are in your SDK. Poke
through them, find the ones you need for your ListView and whatever
its contents are, add them to your own custom style, and apply that
style to the ListView. Or, just apply the various settings to the
individual widgets using normal layout attributes. Of note:

-- you will need to set the background of your ListView
-- you will need to set the foreground color of all TextViews in the
rows (and anything that inherits from TextView)
-- you may need to fuss with the list selector (my memory is hazy as
to whether that would be needed in this case).

On Fri, Nov 25, 2011 at 12:13 PM, wyo otto.w...@orpatec.ch wrote:
 All I'd like is having certain lists with white background yet that
 seems not easlily possible. First applying the theme to the activity
 with the listview didn't work (see
 http://groups.google.com/group/android-developers/browse_thread/thread/aa9b888a49c6cdfb?hl=de)
 until I figured out to apply it to the initial activity and merge it
 with the NoTitleBar like

 android:theme=@android:style/Theme.Light.NoTitleBar

 Well that will also change the style of the tabs which it should not.
 So I applied it to the ListView with no effect. I've also tried any
 other position within the list yet I wasn't successful. I've looked at
 other list samples but haven't found any.

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

2011-11-25 Thread Lew
I'm sorry, but parents all over the English-speaking world have told their 
children for generations, about the word fuck, Don't say that!  It's a 
bad word!

It is also one of the few words American television cannot broadcast over 
the airwaves without paying a huge fine.

I think it's safe to say that the definition of fuck as a bad word is 
socially universal and not really down to the individual at all.  You may 
not personally agree with the assessment, but that doesn't change the fact 
that society as a whole has made and does enforce that assessment.

If it's not a bad word, just try saying, Jesus is fucking amazing, that 
miraculous fucker! at the top of your lungs at a church service and see 
how people react.  When they attack you /en masse/ you can plangently moan, 
What the fuck did I do? but it won't help you.

-- 
Lew

On Friday, November 25, 2011 6:41:13 AM UTC-8, Oli Wright wrote:

 Everything said above.  Oh, with the exception that the definition of 
 Fuck as a bad word is down to the individual. Much like the views of the 
 OP ...

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

2011-11-25 Thread Lew
OTOH, if you yell out, I'm addicted to Jesus, that addictive 
miracle-worker! you will get some weird looks, but you won't be 
excommunicated.

Lew wrote:

 I'm sorry, but parents all over the English-speaking world have told their 
 children for generations, about the word fuck, Don't say that!  It's a 
 bad word!

 It is also one of the few words American television cannot broadcast over 
 the airwaves without paying a huge fine.

 I think it's safe to say that the definition of fuck as a bad word is 
 socially universal and not really down to the individual at all.  You may 
 not personally agree with the assessment, but that doesn't change the fact 
 that society as a whole has made and does enforce that assessment.

 If it's not a bad word, just try saying, Jesus is fucking amazing, that 
 miraculous fucker! at the top of your lungs at a church service and see 
 how people react.  When they attack you /en masse/ you can plangently moan, 
 What the fuck did I do? but it won't help you.

 -- 
 Lew

 On Friday, November 25, 2011 6:41:13 AM UTC-8, Oli Wright wrote:

 Everything said above.  Oh, with the exception that the definition of 
 Fuck as a bad word is down to the individual. Much like the views of the 
 OP ...



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

[android-developers] Re: How to load videos from assets folder? (to play them with VideoView)

2011-11-25 Thread skink


On 25 Lis, 16:45, saex elpablos...@gmail.com wrote:
 no one can help??

 On Nov 25, 1:47 pm, saex elpablos...@gmail.com wrote:



  Hi

  i need to open a mp4 video from the assets folder and play it with
  VideoView.

  THis is my actual code:

      this.setContentView(R.layout.videoview);
      mVideoView = (VideoView) this.findViewById(R.id.surface_view);
      MediaController mc = new MediaController(this);
      mVideoView.setMediaController(mc);
      mVideoView.setVideoPath(file:///android_asset/videos.mp4);
      mVideoView.requestFocus();
      mVideoView.start();

  It doesn't works, but if i try to open the video from the SDCARD it
  works perfectly, then, the problem is when i'm trying to load the
  video from the assets folder.

  What i'm doing wrong?

  thanks

step 1: create custom ContentProvider with
android:authorities=org.something.videoprovider and override its
openAssetFile(Uri uri, String mode) method
step 2: use mVideoView.setVideoPath(content://
org.something.videoprovider/videos.mp4);

that's all

pskink

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

2011-11-25 Thread ain jalil
Im trying to make my own application.Where i can refer?
On Nov 17, 2011 5:41 PM, Oli Wright oli.wri...@gmail.com wrote:

 Can you please go into a little more detail about what you're trying to
achieve and what research you have done already?

 If you're trying to develop your own application, then I assume you've
already done a search for similar topics.  If you're simply looking to set
up such and environment (and if that's the case, you're really asking in
the wrong place), doesn't Skype do video calling these days?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
On Nov 17, 2011 5:41 PM, Oli Wright oli.wri...@gmail.com wrote:

 Can you please go into a little more detail about what you're trying to
 achieve and what research you have done already?

 If you're trying to develop your own application, then I assume you've
 already done a search for similar topics.  If you're simply looking to set
 up such and environment (and if that's the case, you're really asking in
 the wrong place), doesn't Skype do video calling these days?

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

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

[android-developers] Re: How to load videos from assets folder? (to play them with VideoView)

2011-11-25 Thread Lew
Damn, dude, that was only three hours (not even!) before you nagged!

You have to allow a couple of days before you can nag for answers, assuming 
you're so rude as to nag a bunch of folks donating their time freely to 
help you out of the goodness of their hearts.

You don't get to ring the bell impatiently after only three hours (not 
even!).  If you're in a hurry for answers, GIYF, not Usenet.  May I suggest
http://lmgtfy.com/?q=Android+open+mp4+video+from+the+assets+folder+and+play+it+with+VideoView
as a start?  (You'll need to skip over the results that point to this 
thread.)

Of course, that assumes that skink's answer didn't satisfy you.  Even if it 
did, the above link will help the next person with this question.  (They 
will need not to skip over the results that point to this thread.)

-- 
Lew


On Friday, November 25, 2011 7:45:26 AM UTC-8, saex wrote:

 no one can help??

 On Nov 25, 1:47 pm, saex elpab...@gmail.com wrote:
  Hi
 
  i need to open a [sic] mp4 video from the assets folder and play it with
  VideoView.
 
  THis is my actual code:
 
  this.setContentView(R.layout.videoview);
  mVideoView = (VideoView) this.findViewById(R.id.surface_view);
  MediaController mc = new MediaController(this);
  mVideoView.setMediaController(mc);
  mVideoView.setVideoPath(file:///android_asset/videos.mp4);
  mVideoView.requestFocus();
  mVideoView.start();
 
  It doesn't works, but if i try to open the video from the SDCARD it
  works perfectly, then, the problem is when i'm trying to load the
  video from the assets folder.
 
  What i'm doing wrong?
 
  thanks


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

[android-developers] Re: Textview Instead of ImageView

2011-11-25 Thread warenix
magznumber contorls what to show in your switch statement.
Make sure the value of it is 2 if you want to show text.
Use debugger or logcat to find out the values at runtime.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] this.requestWindowFeature(Window.FEATURE_NO_TITLE); code not work when home key block

2011-11-25 Thread Macoto nalds
call this before Activity.setContentView() .

requestWindowFeature(Window.FEATURE_NO_TITLE);


2011/11/25 Naveen kumarnaveen.si...@gmail.com:
 Hello All,

 I do not want title bar so coded
 this.requestWindowFeature(Window.FEATURE_NO_TITLE);  but when using
 this below code then this title bar code not works it's showing title
 header .


  @Override
    public void onAttachedToWindow() {

 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);


        super.onAttachedToWindow();
    }

 But in create i have already coded

  getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                        WindowManager.LayoutParams.FLAG_FULLSCREEN);

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

2011-11-25 Thread jaggu
In Layout file please see my layout xml:
i Required like this  can you any one guide me how tdo this i have
taken relelative layout please any one tell me how to do this

Preciption:preciption
Relhumidity:relhumidity


TextView
android:id=@+id/Preciption
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=Preciption /
TextView
android:id=@+id/Preciption
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@+id/Preciption
android:paddingLeft=20dp
android:text=Preciption /



TextView
android:id=@+id/RelHumidity
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=RelHumidity: /
TextView
android:id=@+id/RelHumidity
android:layout_width=wrap_content
android:layout_height=wrap_content
 android:layout_toRightOf=@+id/Preciption
   android:text=RelHumidity: /

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

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 12:42 PM, jaggu mjagadeeshb...@gmail.com wrote:

 can you any one guide me how tdo this i have
 taken relelative layout please any one tell me how to do this


How to do what?

-
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

Re: [android-developers] matching texview in layout

2011-11-25 Thread jaggu
Hi i have doubt matching both textview

each of the textview need to match the same text so i am getting the
data from the webservices :its coming down from the textview what i
asked the previous question

this type i required in my layout i was faceing some issues its coming
down of the text because of iam reading that data from webservices .


?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical 

TextView
android:id=@+id/TextView01
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=Preciption /

RelativeLayoutandroid:layout_width=207dp
android:layout_height=wrap_content
android:layout_gravity=center
android:gravity=right
android:paddingTop=20dp 

TextView
android:id=@+id/date
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=date /

TextView
android:id=@+id/location
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/date
android:text=location /

TextView
android:id=@+id/cloudstring
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/location
android:text=partion /


ImageButton
android:id=@+id/next
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignTop=@+id/date
android:layout_toRightOf=@+id/cloudstring
android:padding=20dp
android:paddingLeft=20dip
android:scaleType=centerInside
android:src=@drawable/arrowright /

/RelativeLayout

RelativeLayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:paddingTop=20dp 

TextView
android:id=@+id/hi
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=Hi Temp /

TextView
android:id=@+id/hitemp
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/hi
android:text=Hi Temp
android:textColor=#ff /



ImageView
android:id=@+id/cloudimage
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignTop=@+id/lo
android:layout_toRightOf=@+id/hi
android:paddingLeft=20dp
android:src=@drawable/partlysunny /

TextView
android:id=@+id/lo
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@+id/cloudimage
android:paddingLeft=20dp
android:text=Lo Temp /

TextView
android:id=@+id/lotemp
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/lo
android:layout_toRightOf=@+id/cloudimage
android:paddingLeft=20dp
android:text=Lo Temp
android:textColor=#ff /
/RelativeLayout

RelativeLayout
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_gravity=center
android:paddingBottom=20dp 
/RelativeLayout

TextView
android:id=@+id/Preciption
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=Preciption /


TextView
android:id=@+id/RelHumidity
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=RelHumidity: /

TextView
android:id=@+id/wind:
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=wind: /

TextView
android:id=@+id/Gust:
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=Gust: /

TextView
android:id=@+id/UvIndex:
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=UvIndex: /

TextView
android:id=@+id/Sunrise:
android:layout_width=wrap_content
android:layout_height=wrap_content
android:paddingLeft=20dp
android:text=Sunrise: /

TextView

Re: [android-developers] matching texview in layout

2011-11-25 Thread jaggu
can any one respond pls

On Sat, Nov 26, 2011 at 12:30 AM, jaggu mjagadeeshb...@gmail.com wrote:
 Hi i have doubt matching both textview

 each of the textview need to match the same text so i am getting the
 data from the webservices :its coming down from the textview what i
 asked the previous question

 this type i required in my layout i was faceing some issues its coming
 down of the text because of iam reading that data from webservices .


 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
    android:layout_width=match_parent
    android:layout_height=match_parent
    android:orientation=vertical 

    TextView
        android:id=@+id/TextView01
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=Preciption /

    RelativeLayout        android:layout_width=207dp
        android:layout_height=wrap_content
        android:layout_gravity=center
        android:gravity=right
        android:paddingTop=20dp 

        TextView
            android:id=@+id/date
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:text=date /

        TextView
            android:id=@+id/location
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@+id/date
            android:text=location /

        TextView
            android:id=@+id/cloudstring
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@+id/location
            android:text=partion /


        ImageButton
            android:id=@+id/next
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_alignTop=@+id/date
            android:layout_toRightOf=@+id/cloudstring
            android:padding=20dp
            android:paddingLeft=20dip
            android:scaleType=centerInside
            android:src=@drawable/arrowright /

    /RelativeLayout

    RelativeLayout
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:paddingTop=20dp 

        TextView
            android:id=@+id/hi
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:text=Hi Temp /

        TextView
            android:id=@+id/hitemp
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@+id/hi
            android:text=Hi Temp
            android:textColor=#ff /



        ImageView
            android:id=@+id/cloudimage
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_alignTop=@+id/lo
            android:layout_toRightOf=@+id/hi
            android:paddingLeft=20dp
            android:src=@drawable/partlysunny /

        TextView
            android:id=@+id/lo
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_toRightOf=@+id/cloudimage
            android:paddingLeft=20dp
            android:text=Lo Temp /

        TextView
            android:id=@+id/lotemp
            android:layout_width=wrap_content
            android:layout_height=wrap_content
            android:layout_below=@+id/lo
            android:layout_toRightOf=@+id/cloudimage
            android:paddingLeft=20dp
            android:text=Lo Temp
            android:textColor=#ff /
    /RelativeLayout

    RelativeLayout
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:layout_gravity=center
        android:paddingBottom=20dp 
    /RelativeLayout

    TextView
        android:id=@+id/Preciption
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=Preciption /


    TextView
        android:id=@+id/RelHumidity
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=RelHumidity: /

    TextView
        android:id=@+id/wind:
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=wind: /

    TextView
        android:id=@+id/Gust:
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=Gust: /

    TextView
        android:id=@+id/UvIndex:
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=UvIndex: /

    TextView
        android:id=@+id/Sunrise:
        android:layout_width=wrap_content
        

Re: [android-developers] matching texview in layout

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 1:00 PM, jaggu mjagadeeshb...@gmail.com wrote:

 each of the textview need to match the same text so i am getting the
 data from the webservices


So set the text on the TextViews you need to match. I still don't know what
your question is.


  :its coming down from the textview what i
 asked the previous question

 this type i required in my layout i was faceing some issues its coming
 down of the text because of iam reading that data from webservices .


None of that made any sense to me.

On Fri, Nov 25, 2011 at 1:20 PM, jaggu mjagadeeshb...@gmail.com wrote:

 can any one respond pls


I responded to your original post within 12 minutes. If you need a faster
response time than that, you're going to have to pay for it.

-
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

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Jovish P
// Start of code for PopupWindow
PopupWindow popupWindow = new PopupWindow(context);
TextView textView = new TextView(context);
popupWindow.setContentView(textView);
LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
textView.setLayoutParams(layoutParams);
textView.setText(My text goes here);
*popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0); ?   *
*
*
* *
*I think you have to give  textView instead of v in this line of code.*
// End of code for PopupWindow






On Fri, Nov 25, 2011 at 5:01 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 I am sure, the problem must with the context.

 Any ways, for the popupwindow, you could always go with the AlertDialog,
 it will also work as popup.


 On Fri, Nov 25, 2011 at 4:57 PM, Shajahan lovesa...@gmail.com wrote:

 its not working...:(
 looking for some help

 On Nov 25, 4:20 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
  Let use know, if it works.
 
  Warm Regards,
  *Mukesh Kumar*,
  Android Consultant/Freelancer,
  India,Hyderabad.
 
 
 
  On Fri, Nov 25, 2011 at 4:43 PM, Shajahan lovesa...@gmail.com wrote:
   Hi Mukesh,
 
   Thanks for the reply.
 
   am doing the same
   Context context = this;
 
   On Nov 25, 4:04 pm, Mukesh Srivastav mukicha...@gmail.com wrote:
Code looks fine but the problem would be with context.
 
do the following.
 
1.create a context class variable. some thing like this.
   Context parentcontext;
 
2.Assign this in the onCreate Method.
 
parentcontext = this;
 
3. then pass the parentcontext to the popupwindow
 
  or The another solution would be
 
use getParentContext(), Might helps.
 
On Fri, Nov 25, 2011 at 4:29 PM, Shajahan lovesa...@gmail.com
 wrote:
 I need to show the information about the field in an activity. For
   this i
 have created a buton and placed next to the field.
 Now when wants to know abt this field, he can click on that
 button and
   get
 the info.
 I am trying for PopupWindow. i have placed my code on the onClick
 event
 of the button
 
 // Start of code for PopupWindow
 PopupWindow popupWindow = new PopupWindow(context);
 TextView textView = new TextView(context);
 popupWindow.setContentView(textView);
 LayoutParams layoutParams = new
 LayoutParams(LayoutParams.WRAP_CONTENT,
 LayoutParams.WRAP_CONTENT);
 textView.setLayoutParams(layoutParams);
 textView.setText(My text goes here);
 popupWindow.showAtLocation(v, Gravity.CENTER, 0, 0);
 // End of code for PopupWindow
 
 But the above doent help in showing the PopupWindow.
 
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.- Hide quoted text -
 
- Show quoted text -
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en- Hide quoted
 text -
 
  - Show quoted text -

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

2011-11-25 Thread Jovish P
Can you please make your your question little more clear ???

if you want to design a layout like this , it is very simple. You are using
same id for both textviews, may be because of that
you are facing  issues.


Preciption:preciption
Relhumidity:relhumidity


TextView
   android:id=@+id/Preciption1
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:paddingLeft=20dp
   android:text=Preciption /
TextView
   android:id=@+id/Preciption2
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:layout_toRightOf=@+id/Preciption1
   android:paddingLeft=20dp
   android:text=Preciption /



   TextView
   android:id=@+id/RelHumidity1
   android:layout_width=wrap_content
   android:layout_height=wrap_content
   android:paddingLeft=20dp
   android:layout_below=@+id/Preciption1
   android:text=RelHumidity: /
TextView
   android:id=@+id/RelHumidity2
   android:layout_width=wrap_content
   android:layout_height=wrap_content
android:layout_toRightOf=@+id/RelHumidity1
 android:layout_below=@+id/Preciption2
  android:text=RelHumidity: /








On Sat, Nov 26, 2011 at 1:02 AM, TreKing treking...@gmail.com wrote:

 On Fri, Nov 25, 2011 at 1:00 PM, jaggu mjagadeeshb...@gmail.com wrote:

 each of the textview need to match the same text so i am getting the
 data from the webservices


 So set the text on the TextViews you need to match. I still don't know
 what your question is.


  :its coming down from the textview what i
 asked the previous question

 this type i required in my layout i was faceing some issues its coming
 down of the text because of iam reading that data from webservices .


 None of that made any sense to me.

 On Fri, Nov 25, 2011 at 1:20 PM, jaggu mjagadeeshb...@gmail.com wrote:

 can any one respond pls


 I responded to your original post within 12 minutes. If you need a faster
 response time than that, you're going to have to pay for it.


 -
 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] ListView text goes black when scrolling the content

2011-11-25 Thread Jovish P
Refer the following link
http://developer.android.com/resources/articles/listview-backgrounds.html
to know the reason why it is happening .


On Fri, Nov 25, 2011 at 5:12 PM, Mukesh Srivastav mukicha...@gmail.comwrote:

 You are always Welcome Mr.KK.


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Nov 25, 2011 at 5:09 PM, KK dioxide.softw...@gmail.com wrote:

 It really solved the problem. You are a lifesaver. Thank you very much.

 Regards,
 KK

 On Fri, Nov 25, 2011 at 5:05 PM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 Hi KK,

 Please add the following line to your listview, The problem get solves.

 android:cacheColorHint=#


 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.


 On Fri, Nov 25, 2011 at 4:59 PM, KK dioxide.softw...@gmail.com wrote:

 Hi All,
 I'm trying to show a list of songs using ListView (which supports
 scrolling when the song list grows bigger than the available screen). In
 this regard, I'm able to show the list of songs but whenever the user tries
 to scroll the screen up/down the part of the screen which has the text,
  goes black  as can be seen here (and is not readable):

 http://imageshack.us/photo/my-images/706/device2025132814.png/
   http://imageshack.us/photo/my-images/17/device2025132731.png/

 Only when the user is done scrolling then dark portion goes out and the
 screen starts showing the song list normally and is readable. I've tested
 this on Android 2.3.4 real device. Would appreciate if someone could point
 me what is going wrong here.

 The code snippet for generating the song list is as below:

 snippet

 ?xml version=1.0 encoding=utf-8?
  LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
 android:background=@drawable/statue_of_liberty_600x800
  android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent
  ListView android:id=@android:id/list android:divider=@null
 android:dividerHeight=0dp android:layout_width=fill_parent
  android:layout_weight=9
 android:layout_height=382dp android:layout_marginLeft=10dp
  android:layout_marginRight=10dp android:layout_marginBottom=10dp
 android:layout_marginTop=10dp
  /ListView
 TextView android:id=@id/android:empty
 android:layout_width=fill_parent
  android:layout_height=fill_parent android:text=No songs found on
 SD Card.
 android:paddingTop=60dp /
  SeekBar android:layout_height=wrap_content
 android:layout_width=match_parent android:id=@+id/seekBar1
  android:layout_marginTop=10dp android:layout_weight=1
 android:layout_marginLeft=15dp android:layout_marginRight=15dp
 android:layout_marginBottom=15dp
  /SeekBar
 /LinearLayout

 snippet---


 Appreciate your time. Thanks.

 Regards,
 KK

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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.





 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

2011-11-25 Thread jaggu
Hi
i have tried like what you send bet both the texts are  coming line bye line:
preciption
preciption



On Sat, Nov 26, 2011 at 1:19 AM, Jovish P android.f...@gmail.com wrote:
 Can you please make your your question little more clear ???
 if you want to design a layout like this , it is very simple. You are using
 same id for both textviews, may be because of that
 you are facing  issues.

 Preciption:preciption
 Relhumidity:relhumidity


 TextView
        android:id=@+id/Preciption1
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:text=Preciption /
 TextView
        android:id=@+id/Preciption2
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:layout_toRightOf=@+id/Preciption1
        android:paddingLeft=20dp
        android:text=Preciption /



    TextView
        android:id=@+id/RelHumidity1
        android:layout_width=wrap_content
        android:layout_height=wrap_content
        android:paddingLeft=20dp
        android:layout_below=@+id/Preciption1
        android:text=RelHumidity: /
 TextView
        android:id=@+id/RelHumidity2
        android:layout_width=wrap_content
        android:layout_height=wrap_content
     android:layout_toRightOf=@+id/RelHumidity1
  android:layout_below=@+id/Preciption2
           android:text=RelHumidity: /







 On Sat, Nov 26, 2011 at 1:02 AM, TreKing treking...@gmail.com wrote:

 On Fri, Nov 25, 2011 at 1:00 PM, jaggu mjagadeeshb...@gmail.com wrote:

 each of the textview need to match the same text so i am getting the
 data from the webservices

 So set the text on the TextViews you need to match. I still don't know
 what your question is.


 :its coming down from the textview what i
 asked the previous question

 this type i required in my layout i was faceing some issues its coming
 down of the text because of iam reading that data from webservices .

 None of that made any sense to me.
 On Fri, Nov 25, 2011 at 1:20 PM, jaggu mjagadeeshb...@gmail.com wrote:

 can any one respond pls

 I responded to your original post within 12 minutes. If you need a faster
 response time than that, you're going to have to pay for it.

 -
 TreKing - Chicago transit tracking app for Android-powered devices

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

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

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


Re: [android-developers] matching texview in layout

2011-11-25 Thread Jovish P
which layout u  r using ? use relative layout. Just go thru the
documentation of layouts before start coding
it will save ur time 

On Sat, Nov 26, 2011 at 1:29 AM, jaggu mjagadeeshb...@gmail.com wrote:

 Hi
 i have tried like what you send bet both the texts are  coming line bye
 line:
 preciption
 preciption



 On Sat, Nov 26, 2011 at 1:19 AM, Jovish P android.f...@gmail.com wrote:
  Can you please make your your question little more clear ???
  if you want to design a layout like this , it is very simple. You are
 using
  same id for both textviews, may be because of that
  you are facing  issues.
 
  Preciption:preciption
  Relhumidity:relhumidity
 
 
  TextView
 android:id=@+id/Preciption1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:paddingLeft=20dp
 android:text=Preciption /
  TextView
 android:id=@+id/Preciption2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_toRightOf=@+id/Preciption1
 android:paddingLeft=20dp
 android:text=Preciption /
 
 
 
 TextView
 android:id=@+id/RelHumidity1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:paddingLeft=20dp
 android:layout_below=@+id/Preciption1
 android:text=RelHumidity: /
  TextView
 android:id=@+id/RelHumidity2
 android:layout_width=wrap_content
 android:layout_height=wrap_content
  android:layout_toRightOf=@+id/RelHumidity1
   android:layout_below=@+id/Preciption2
android:text=RelHumidity: /
 
 
 
 
 
 
 
  On Sat, Nov 26, 2011 at 1:02 AM, TreKing treking...@gmail.com wrote:
 
  On Fri, Nov 25, 2011 at 1:00 PM, jaggu mjagadeeshb...@gmail.com
 wrote:
 
  each of the textview need to match the same text so i am getting the
  data from the webservices
 
  So set the text on the TextViews you need to match. I still don't know
  what your question is.
 
 
  :its coming down from the textview what i
  asked the previous question
 
  this type i required in my layout i was faceing some issues its coming
  down of the text because of iam reading that data from webservices .
 
  None of that made any sense to me.
  On Fri, Nov 25, 2011 at 1:20 PM, jaggu mjagadeeshb...@gmail.com
  wrote:
 
  can any one respond pls
 
  I responded to your original post within 12 minutes. If you need a
 faster
  response time than that, you're going to have to pay for it.
 
 
 -
  TreKing - Chicago transit tracking app for Android-powered devices
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] Re: How to load videos from assets folder? (to play them with VideoView)

2011-11-25 Thread Jovish P
check out this link


http://javatech.org/2011/01/discovering-android-embedding-video-in-an-android-application/

On Fri, Nov 25, 2011 at 11:18 PM, Lew lewbl...@gmail.com wrote:

 Damn, dude, that was only three hours (not even!) before you nagged!

 You have to allow a couple of days before you can nag for answers,
 assuming you're so rude as to nag a bunch of folks donating their time
 freely to help you out of the goodness of their hearts.

 You don't get to ring the bell impatiently after only three hours (not
 even!).  If you're in a hurry for answers, GIYF, not Usenet.  May I suggest
 
 http://lmgtfy.com/?q=Android+open+mp4+video+from+the+assets+folder+and+play+it+with+VideoView
 
 as a start?  (You'll need to skip over the results that point to this
 thread.)

 Of course, that assumes that skink's answer didn't satisfy you.  Even if
 it did, the above link will help the next person with this question.  (They
 will need not to skip over the results that point to this thread.)

 --
 Lew


 On Friday, November 25, 2011 7:45:26 AM UTC-8, saex wrote:

 no one can help??

 On Nov 25, 1:47 pm, saex elpab...@gmail.com wrote:
  Hi
 
  i need to open a [sic] mp4 video from the assets folder and play it with

  VideoView.
 
  THis is my actual code:
 
  this.setContentView(R.layout.**videoview);
  mVideoView = (VideoView) this.findViewById(R.id.**surface_view);
  MediaController mc = new MediaController(this);
  mVideoView.setMediaController(**mc);
  mVideoView.setVideoPath(file:**///android_asset/videos.mp4);
  mVideoView.requestFocus();
  mVideoView.start();
 
  It doesn't works, but if i try to open the video from the SDCARD it
  works perfectly, then, the problem is when i'm trying to load the
  video from the assets folder.
 
  What i'm doing wrong?
 
  thanks

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


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

[android-developers] Re: matching texview in layout

2011-11-25 Thread skink


On Nov 25, 9:06 pm, Jovish P android.f...@gmail.com wrote:
 which layout u  r using ? use relative layout. Just go thru the
 documentation of layouts before start coding
 it will save ur time 




I'd suggest TableLayout

http://developer.android.com/resources/tutorials/views/hello-tablelayout.html

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Notification status bar custom layout, guide lines are wrong?!? (primary color)

2011-11-25 Thread Daniele Segato

I was following this guide lines:

http://developer.android.com/guide/topics/ui/notifiers/notifications.html#CustomExpandedView


which states:


[...] to use the standard text colors on versions of Android lower than 
2.3, you should use the following styles for res/values/styles.xml:


?xml version=1.0 encoding=utf-8?
resources
style name=NotificationText
  item name=android:textColor?android:attr/textColorPrimary/item
/style
style name=NotificationTitle
  item name=android:textColor?android:attr/textColorPrimary/item
  item name=android:textStylebold/item
/style
!-- If you want a slightly different color for some text,
 consider using ?android:attr/textColorSecondary --
/resources




Which produce a White color on a light gray background on the Android 
2.1 and Android 2.2 emulator... It's obviously very hard to read...


Should I ignore this guide lines?

anyone sharing experiences about this?


ps: The secondary color is fine, but I need the primary too...

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

2011-11-25 Thread bob
I wrote this code back in the day to draw a fake crack on a user's
phone:

static void drawCrack(GL10 gl) {
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();
gl.glDisable(GL10.GL_DEPTH_TEST);
gl.glDisable(GL10.GL_CULL_FACE);


gl.glDisable(GL_LIGHTING);
gl.glEnable(GL10.GL_TEXTURE_2D);
gl.glColor4f(1, 1, 1, 1);

gl.glEnable(GL10.GL_BLEND);
gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);

float[] texcoords = new float[] { 0.0f, 1.0f, 1.0f, 1.0f, 1.0f,
0.0f,
0.0f, 0.0f };

float[] vercoords = new float[] { -2, -2, 2, -2, 2, 2, -2, 2 };

FloatBuffer tfb = DirectWrap.wrap(texcoords);
FloatBuffer vfb = DirectWrap.wrap(vercoords);
gl.glBindTexture(GL10.GL_TEXTURE_2D, crackedImg);

gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);

gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);
gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, tfb);
gl.glVertexPointer(2, GL10.GL_FLOAT, 0, vfb);

gl.glPushMatrix();
gl.glScalef(1.7f, 1.7f, 1);

gl.glDrawArrays(GL10.GL_TRIANGLE_FAN, 0, 4);
gl.glPopMatrix();

gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);

gl.glDisable(GL10.GL_TEXTURE_2D);
gl.glDisable(GL10.GL_BLEND);

gl.glMatrixMode(GL10.GL_TEXTURE);

gl.glLoadIdentity();
gl.glMatrixMode(GL10.GL_MODELVIEW);


}


It used to work, but for some reason, it stopped working.  Any ideas
why?

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

2011-11-25 Thread Seb
As the topic indicates I'm trying to perform a http post request to a page 
secured with basic http authentication.

It works from the command line with curl as following:
curl http://snot%40snot.dk:supersnot_at_teletracker.herokuapp.com/devices 
-d device[name]=snot -d device[device_id]=1234

But with the java code below I get redirected to a login form. Any ideas 
what I'm doing wrong?
Note that the username and password I have supplied is working so, if 
anyone cares, please try it out. You just have to replace _at_ with @


private void sendDeviceIdToServer(String deviceId) {
DefaultHttpClient client = new DefaultHttpClient();
client.getCredentialsProvider().setCredentials(
new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),
new UsernamePasswordCredentials(snot_at_snot.dk, supersnot));
//new UsernamePasswordCredentials(snot%40snot%2Edk, supersnot));
HttpPost post = new 
HttpPost(http://teletracker.herokuapp.com/devices;);
try {
ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1);
nameValuePairs.add(new BasicNameValuePair(device[name], from 
android));
nameValuePairs.add(new BasicNameValuePair(device[device_id], 
deviceId));

post.setEntity(new UrlEncodedFormEntity(nameValuePairs));

ResponseHandlerString handler = new BasicResponseHandler();
String response = client.execute(post, handler);
Log.d(HttpResponse, response);
} catch (IOException e) {
e.printStackTrace();
}
}

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Where do we use uses-feature android:required=false?

2011-11-25 Thread limtc
I have a question:

If I wanted to support a feature (says camera) but it is not necessary
(menu item removed if detected no), is it necessary to declare:

uses-feature android:name=string android:required=false/

I assume we can simply do this without declaring. Isn't it? Or is it
just good practice but not necessary?

PackageManager packageManager = getPackageManager();
if (!
packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA))
menu.removeItem(R.id.camera);

Thanks!

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


[android-developers] Re: Textview Issue?

2011-11-25 Thread Navindian
When case is 2, it is not showing TextView but when it is case1, it is
showing image properly. The question here is how to show textview on the
other fragment when clicked on the list on the other link.

On Fri, Nov 25, 2011 at 10:38 PM, Navindian navind...@gmail.com wrote:

 PFA screenshot.

 On Click of a link, I am able to show the image.
 I wish to show the text instead.



 *switch*(magznumber){

 *case* 1:

 i.setImageResource(R.drawable.
 *efymag*);

 *break*;

 *case* 2:

 textViewObject.setText(text);

 *break*;

 }

 Please comment by looking at the above code. case 2 is not showing the
 text. The following link will help you understanding.


 http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1160recipeFrom=ViewTOC


 Thanks
 navind


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

[android-developers] Re: How to call the activity class

2011-11-25 Thread mohana priya
Thanks for your reply.My application is phonegap in android.I need to
call the activity class from the class which extends plugin in android
phonegap application.How to do so.I have used the intent.but
startactivity(intent) is undefined inside the plugins.Please tell me
the solution.Thanks in Advance.

On Nov 25, 9:40 pm, Kumar Bibek coomar@gmail.com wrote:
 Your question is not clear.

 Please clarify by giving more details.

 On Nov 25, 7:21 pm, mohana priya gpriyara...@gmail.com wrote:

  Hello android developers.I need to call the activity class inside the
  java class,because i need to do the application in phonegap.Please
  tell me the solution.Thanks in Advance.

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


[android-developers] Greystripe

2011-11-25 Thread bob
How long do you have to wait after creating a Greystripe ID before you
can use it?

I just created one and tried to use it.  Now I get this error:

http://i1190.photobucket.com/albums/z449/m75214/gs_err.png

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


[android-developers] Re: How to call the activity class

2011-11-25 Thread skink


On Nov 26, 5:25 am, mohana priya gpriyara...@gmail.com wrote:
 Thanks for your reply.My application is phonegap in android.I need to
 call the activity class from the class which extends plugin in android
 phonegap application.How to do so.I have used the intent.but
 startactivity(intent) is undefined inside the plugins.Please tell me
 the solution.Thanks in Advance.

 On Nov 25, 9:40 pm, Kumar Bibek coomar@gmail.com wrote:



  Your question is not clear.

  Please clarify by giving more details.

  On Nov 25, 7:21 pm, mohana priya gpriyara...@gmail.com wrote:

   Hello android developers.I need to call the activity class inside the
   java class,because i need to do the application in phonegap.Please
   tell me the solution.Thanks in Advance.

NTG

Discuss developing Android
applications using the SDK:
troubleshooting apps, advice on
implementation, strategies for
improving your app's speed and user
experience. This group is for
development-related topics only, not
for job opportunity announcements,
advertisement, debates about devices,
etc.

pskink

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

2011-11-25 Thread skink


Navindian wrote:
 When case is 2, it is not showing TextView but when it is case1, it is
 showing image properly. The question here is how to show textview on the
 other fragment when clicked on the list on the other link.

 On Fri, Nov 25, 2011 at 10:38 PM, Navindian navind...@gmail.com wrote:

  PFA screenshot.
 
  On Click of a link, I am able to show the image.
  I wish to show the text instead.
 
 
 
  *switch*(magznumber){
 
  *case* 1:
 
  i.setImageResource(R.drawable.
  *efymag*);
 
  *break*;
 
  *case* 2:
 
  textViewObject.setText(text);
 
  *break*;
 
  }
 
  Please comment by looking at the above code. case 2 is not showing the
  text. The following link will help you understanding.
 
 
  http://androidcookbook.com/Recipe.seam;jsessionid=40151FCD26222877E151C3EEFB406EED?recipeId=1160recipeFrom=ViewTOC
 
 
  Thanks
  navind
 

what the hell are you talking about?

nobody is gonna answer such misty and vague questions

pskink

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

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 11:14 PM, bob b...@coolgroups.com wrote:

 How long do you have to wait after creating a Greystripe ID before you can
 use it?


You seem to have confused this list for Greystripe support.

-
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

Re: [android-developers] drawCrack

2011-11-25 Thread TreKing
On Fri, Nov 25, 2011 at 5:56 PM, bob b...@coolgroups.com wrote:

 It used to work, but for some reason, it stopped working.  Any ideas why?


So you wrote code, it worked, and now that it doesn't you wan't people that
have zero context to read your code, debug it, and tell you why it doesn't
work even though you've provided no more information than it stopped
working and have not explained what that even means? Is that right?

Good luck with that.

http://www.catb.org/~esr/faqs/smart-questions.html

-
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

Re: [android-developers] Greystripe

2011-11-25 Thread Raghav Sood
TreKing is right, this shouldn't be on this list.

However, I'll try to help. It will take close to 24 hours for the ID to be
of any use. And even after that, Greystripe will manually review every app
before they pay you for any of the ads displayed. Some of my apps were in
the review process for almost two months, before I shifted to AdMob. The
only way I got any of the apps reviewed was by writing to support.

Please do not post non Android SDM questions on this list again.

Raghav Sood
Sent from my Nexus S
On Nov 26, 2011 5:42 AM, TreKing treking...@gmail.com wrote:

 On Fri, Nov 25, 2011 at 11:14 PM, bob b...@coolgroups.com wrote:

 How long do you have to wait after creating a Greystripe ID before
 you can use it?


 You seem to have confused this list for Greystripe support.


 -
 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 change PathClassLoader path

2011-11-25 Thread vijay pratap
hiii,
i am trying to customize an android app but on change on the package name,
registration not took place. could any one help me.

logcat errors:
11-26 11:21:26.434: E/SIP SRV(24784): java.lang.NoClassDefFoundError:
com.abc.utils.TimerWrapper

11-26 11:21:26.434: E/SIP SRV(24784): at
org.pjsip.pjsua.pjsuaJNI.create(Native Method)

11-26 11:21:26.434: E/SIP SRV(24784): at
org.pjsip.pjsua.pjsua.create(pjsua.java:62)

11-26 11:21:26.434: E/SIP SRV(24784): at
org.pjsip.pjsua.pjsua.create(pjsua.java:62)
11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService.startSipStack(SipService.java:1095)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService.access$12(SipService.java:1077)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService$StartRunnable.doRun(SipService.java:1623)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.mobilesoftphone.service.SipService$SipRunnable.run(SipService.java:1697)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService$SipServiceExecutor.executeInternal(SipService.java:1610)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService$SipServiceExecutor.handleMessage(SipService.java:1602)

11-26 11:21:26.434: E/SIP SRV(24784): at
com.myapp.service.SipService$SipServiceExecutor.handleMessage(SipService.java:1602)

11-26 11:21:26.434: E/SIP SRV(24784): at
android.os.Looper.loop(Looper.java:143)

11-26 11:21:26.434: E/SIP SRV(24784): at
android.os.HandlerThread.run(HandlerThread.java:60)

11-26 11:21:26.434: E/SIP SRV(24784): Caused by:
java.lang.ClassNotFoundException: com.abc.utils.TimerWrapper in loader
dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]

11-26 11:21:26.434: E/SIP SRV(24784): at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

11-26 11:21:26.434: E/SIP SRV(24784): at
java.lang.ClassLoader.loadClass(ClassLoader.java:551)

11-26 11:21:26.434: E/SIP SRV(24784): at
java.lang.ClassLoader.loadClass(ClassLoader.java:511)


if i don't change the packeage name com.abc.utils, there is no error, and
TimerWraper.java class  is assesable. On changing the package name refrence
is not automatically change.
if anyone can suggest the solution, Please let me know...

Thanks

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

[android-developers] Help please

2011-11-25 Thread sourabh sahu
Can we make a video interactive, like a video is playing on android and a
product is shown in a movie.I want to tap onto that product and can get
information about it.

Any kind of help is highly appreciated.

Sourabh

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

Re: [android-developers] Help please

2011-11-25 Thread Raghav Sood
If you know which product, when it will come, and where on the screen it
will be displayed, you could probably manage it. Get back to us when you
are facing an actual problem with your app, and provide some more details.

On Sat, Nov 26, 2011 at 12:32 PM, sourabh sahu souruit...@gmail.com wrote:

 Can we make a video interactive, like a video is playing on android and a
 product is shown in a movie.I want to tap onto that product and can get
 information about it.

 Any kind of help is highly appreciated.

 Sourabh

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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] This page contains the following error: error on line 2 at colum 159: EntityRef: expecting ';' Reparse document as HTML. Below is a rendering of the page up to the first error.

2011-11-25 Thread Naveen
Hello All,

I am installing a apk file on Samsung galaxy, this apk file contains
facebook login sdkwhen logging with facebook  then getting error:

This page contains the following error: error on line 2 at colum 159:
EntityRef: expecting ';' Reparse document as HTML. Below is a
rendering of the page up to the first error. By the way, I have
installed the latest upgrade and I'm using a Samsung Galaxy.


When installing this apk on LG devices then no error occurs with
facebook.

Why i am getting this error only with Samsung Galaxy android phone.

Please help me ...


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


[android-developers] Trying to exit app( using finish() ) gives ANR on device but not on emulator

2011-11-25 Thread KK
hi All,
I'm trying to exit the application using the following code in my
mediaplayer app. While it works fine in the emulator(2.2) but when I run
the app on an actual device (with 2.3.4 ) it gives me ANR error. Would
appreciate if someone can point me what is going wrong.

code snippet-
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
...

case R.id.exit:
Log.d(TAG, Shutting down the service);
 if (mMediaPlayer != null) {
 mMediaPlayer.release();
mMediaPlayer = null;
// remove all notifications
 mNotificationManager.cancelAll();
timer.cancel();
finish();
 return true;


---code snippet-
Just a note that I'm using notifications to show current song being played,
using Timer for continuously updating the seekbar for the current song
being played.

Appreciate your time. Many thanks.

Regards,
KK

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Trying to exit app( using finish() ) gives ANR on device but not on emulator

2011-11-25 Thread Raghav Sood
Logcat?

On Sat, Nov 26, 2011 at 1:14 PM, KK dioxide.softw...@gmail.com wrote:

 hi All,
 I'm trying to exit the application using the following code in my
 mediaplayer app. While it works fine in the emulator(2.2) but when I run
 the app on an actual device (with 2.3.4 ) it gives me ANR error. Would
 appreciate if someone can point me what is going wrong.

 code snippet-
 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
 switch (item.getItemId()) {
 ...

 case R.id.exit:
 Log.d(TAG, Shutting down the service);
  if (mMediaPlayer != null) {
  mMediaPlayer.release();
 mMediaPlayer = null;
 // remove all notifications
  mNotificationManager.cancelAll();
 timer.cancel();
 finish();
  return true;

 
 ---code snippet-
 Just a note that I'm using notifications to show current song being
 played, using Timer for continuously updating the seekbar for the current
 song being played.

 Appreciate your time. Many thanks.

 Regards,
 KK

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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

2011-11-25 Thread Raghav Sood
Have you changed it in the manifest, moved the classes to the new package
and changed the declaration on the top of each class.

On Sat, Nov 26, 2011 at 11:38 AM, vijay pratap vijayprata...@gmail.comwrote:

 hiii,
 i am trying to customize an android app but on change on the package name,
 registration not took place. could any one help me.

 logcat errors:
 11-26 11:21:26.434: E/SIP SRV(24784): java.lang.NoClassDefFoundError:
 com.abc.utils.TimerWrapper

 11-26 11:21:26.434: E/SIP SRV(24784): at
 org.pjsip.pjsua.pjsuaJNI.create(Native Method)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 org.pjsip.pjsua.pjsua.create(pjsua.java:62)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 org.pjsip.pjsua.pjsua.create(pjsua.java:62)
 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService.startSipStack(SipService.java:1095)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService.access$12(SipService.java:1077)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService$StartRunnable.doRun(SipService.java:1623)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.mobilesoftphone.service.SipService$SipRunnable.run(SipService.java:1697)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService$SipServiceExecutor.executeInternal(SipService.java:1610)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService$SipServiceExecutor.handleMessage(SipService.java:1602)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 com.myapp.service.SipService$SipServiceExecutor.handleMessage(SipService.java:1602)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 android.os.Looper.loop(Looper.java:143)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 android.os.HandlerThread.run(HandlerThread.java:60)

 11-26 11:21:26.434: E/SIP SRV(24784): Caused by:
 java.lang.ClassNotFoundException: com.abc.utils.TimerWrapper in loader
 dalvik.system.PathClassLoader[/data/app/com.myapp-1.apk]

 11-26 11:21:26.434: E/SIP SRV(24784): at
 dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 java.lang.ClassLoader.loadClass(ClassLoader.java:551)

 11-26 11:21:26.434: E/SIP SRV(24784): at
 java.lang.ClassLoader.loadClass(ClassLoader.java:511)


 if i don't change the packeage name com.abc.utils, there is no error,
 and TimerWraper.java class  is assesable. On changing the package name
 refrence is not automatically change.
 if anyone can suggest the solution, Please let me know...

 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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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