Re: [android-developers] Re: Reg: Not able to get address from Longitude and Latitude

2010-01-07 Thread sathya subbiah
Hi Nithin,

Thanks for the reply. The Lat. and Long. values are not 0. I am checking
with values like
37.422006 - Lat
-122.084095 - Long

But still the address read is 0. Can you pls let me know if some thing else
is to be set. I am also providing permission like

  
  
  
  

But still it is not able to decode the address.

Rgs,
Sathya

On Thu, Jan 7, 2010 at 8:01 AM, Nithin  wrote:

>
> Check the latitude and longitude value, that you are passing to
> getFromLocation(). Then try, giving the number of results a bigger
> value than 1.
>
> Nithin
>
> On Jan 7, 3:58 pm, sathya subbiah  wrote:
> > Hi,
> >
> > I am trying to get address from Longitude and latitude using the
> following
> > code
> >
> >   Geocoder geoCoder = new
> > Geocoder(mContext,Locale.getDefault());
> >
> > List addresses = geoCoder.getFromLocation(
> > mCurrentLatitude,
> > mCurrentLongitude, 1);
> >
> > But the address size is always 0. I am trying this in Android SDK 2.0
> using
> > eclipse. Can anyone help me to resolve the issue?.
> >
> > Thanks & Regards,
> > Sathya
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Reg: Not able to get address from Longitude and Latitude

2010-01-07 Thread sathya subbiah
Hi,

I am trying to get address from Longitude and latitude using the following
code


  Geocoder geoCoder = new
Geocoder(mContext,Locale.getDefault());

List addresses = geoCoder.getFromLocation(
mCurrentLatitude,
mCurrentLongitude, 1);

But the address size is always 0. I am trying this in Android SDK 2.0 using
eclipse. Can anyone help me to resolve the issue?.


Thanks & Regards,
Sathya
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reg: Help required to make a text views to marquee always

2009-12-17 Thread sathya subbiah
Hi,

I am trying to draw a text view which always scroll though it does not have
focus in it.  But the text view does not support the same. Have any one
tried such thing? Pls let me know if any thing can be done for the same.


Thanks & Regards,
Sathya

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Reg: Animation at same time in a service and an activity causes flicker

2009-12-12 Thread sathya subbiah
Hi,

I am having a service class and  a activty. If I try to animation in both
class at the same time, the animation is not proper. It flickers. Can any
one let me know if two animations cannot be done on the display at the same
time. Will it affect the performance?.

Thanks & Regards,
Sathya

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

2009-12-11 Thread sathya subbiah
Try using a data base for storing the data and update the list from the
database table.

On Fri, Dec 11, 2009 at 1:39 AM, Abhi  wrote:

> Hi,
>
> My problem sounds pretty easy to solve... not getting any right
> direction.
>
> My app starts with a blank listview with a Menu option to Add contacts
> to the ListView. Now, I want that my ListView gets saved every time I
> quit my App so that the next time I start my App, I see all the
> contacts from last time.
>
> I understand that Android lets you store and retrieve data. Just don't
> know how to move forward from here.
>
> Any help in the right direction would be appreciated.
>
> Thanks,
>
> Abhishek
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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 call onDraw() in Timer?..

2009-12-03 Thread sathya subbiah
invalidate does not work in timer class as it is a seperate thread. Post an
event to handler and invalidate.

On Thu, Dec 3, 2009 at 8:47 AM, manoj  wrote:

> just call the invalidate()/ postInvalidate() in the timer class.
>
> The invalidate()/postinvalidate() will call onDraw() implicitly. You
> cant directly call onDraw().
>
> On Dec 3, 6:38 pm, "Sasikumar.S"  wrote:
> > Hi,
> >
> > I need,
> >
> > I'm using a class extends with view.
> > I'm using timer in that class.
> > I'm using onTouchEvent() also.
> > I onTouchEvent() i'm using invalidate().
> > So it is calling onDraw().
> >
> > When i use invalidate() in Timer.
> > It is not calling onDraw(). Why?
> >
> > --
> > Thanks & Regards
> > Sasikumar.S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Invalidate()?...

2009-12-03 Thread sathya subbiah
Invalidate is used for updating the View display. Its like refreshing the
view.

Rgs,
Sathya

On Thu, Dec 3, 2009 at 5:32 AM, Sasikumar.S wrote:

> Hi,
>
> What is the use of Invalidate() in android?...
>
> Any one know about these?...
>
> Thanks in advance
>
> --
> Thanks & Regards
> Sasikumar.S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: setting ANDROID ENVIRONMENT IN UBUNTU8.0 operating system

2009-12-02 Thread sathya subbiah
Hi Ram,

I tried the following steps in installing Eclipse in Ubuntu



1) Downloaded classic version of Eclipse
2) Then added the ADT plugin as given in the link
http://developer.android.com/sdk/1.1_r1/installing.html.
3) Then downloaded Android Eclair package
4) Then ran the "android" tool in the tools folder of eclair.
5) Have saved the network settings in it.(Check the force option
provided in it)
6) And installed all packages.

If still network connection is a problem, pls check the below

If the network connection itself is a problem. Check the network proxy
settings value. (System -> Preferences -> Network Proxy).
Even if it doesn't help check the software sources server name. Go to System
-> Administration -> Software Sources and choose other in the Download from
Tab. And select the option choose best server. Once it has chosen best
server set it.
Also if you have logged in for the first time, after saving the settings log
out and try log in again.(It helped us here..)

Hope this solves your problem.

Rgs,
Sathya

On Wed, Dec 2, 2009 at 5:31 AM, Ram  wrote:

> Hi Sathya,
> When i am trying install plugin from site
> https://dl-ssl.google.com/android/eclipse/
> in both Http also,it is saying error that failed to fetch site.xml
> from the site .what should i do.
> And why i have to check network settings 
> Can you explain in detail.
>
>
>
>
>
> On Dec 2, 3:09 pm, sathya subbiah  wrote:
> > Hi,
> >
> > I am also using UBUNTU. I am able to install ADT plugin to my
> eclipse.Kindly
> > follow the steps provided in the linkhttp://
> developer.android.com/sdk/1.1_r1/installing.html. Also please check
> > your network proxy settings.
> >
> > On Wed, Dec 2, 2009 at 4:58 AM, Ram  wrote:
> > > I am trying to work the android development in UBUNTU 8.0 OS.
> > > I installed Eclipse 3.5 IDE Linux 32 bit version.
> > > When i try to add ADT 0.9. plugin it is reporting me the following
> > > error and it aborts the adding ANdroid plugin installation process.
> >
> > > Error details
> > > 
> > > Cannot complete the install because one or more required items could
> > > not be found.
> > >  Software being installed: Android Development Tools
> > > 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> > > 0.9.4.v200910220141-17704)
> > >  Missing requirement: Android Development Tools
> > > 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> > > 0.9.4.v200910220141-17704) requires 'org.eclipse.wst.xml.ui 0.0.0' but
> > > it could not be found.
> > > --
> >
> > > I have installed sun-java 1.6 version in my ubuntu system.
> >
> > > What to do to solve this error.
> >
> > > Or If any one knows the development of android in Ubuntu
> > > Environment.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
>

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

2009-12-02 Thread sathya subbiah
WelcomeI think parcellables can help with your issue. Pls find the link
regarding the same
http://panyam.wordpress.com/2008/03/07/android-hack-parcellable-in-eclipse/


On Wed, Dec 2, 2009 at 5:10 AM, yidongsoft  wrote:

> First of all, thank you for replying.
>
> My aidl file is like this:
>
> //IActions.aidl
>
> package com.xyz.a;
> //import java.util.ArrayList;
>
> interface IActions{
> float getSpeed();
> //ArrayList getDataList();
>
> int getDataState();
> }
>
> I have to comment out ArrayList getDataList(); because eclipse
> says "unknown return type ArrayList"
>
> When I add  the "import java.util.ArrayList;" eclipse says "couldn't
> find import for class java.util.ArrayList"
>
> Really annoying.
>
> Also, I don't need external jar file. They are just what I defined in
> the project.
>
> Thank you Sathya!
> On Dec 2, 4:50 pm, sathya subbiah  wrote:
> > Think you need to add the aidl path your make file and have to include in
> > your file
> > import com.xyz.fooPackage.
> >
> > Hope this helps you.
> >
> > On Wed, Dec 2, 2009 at 2:46 AM, yidongsoft  wrote:
> > > I need a aidl file defining:
> >
> > > ArrayList getFoo();
> >
> > > I import ArrayList package and Foo with
> >
> > > import java.util.ArrayList;
> > > import com.xyz.fooPackage;
> >
> > > But eclipse keeps saying that can't find the importing class. Would
> > > anybody help me? Thank you!
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] setting ANDROID ENVIRONMENT IN UBUNTU8.0 operating system

2009-12-02 Thread sathya subbiah
Hi,

I am also using UBUNTU. I am able to install ADT plugin to my eclipse.Kindly
follow the steps provided in the link
http://developer.android.com/sdk/1.1_r1/installing.html. Also please check
your network proxy settings.



On Wed, Dec 2, 2009 at 4:58 AM, Ram  wrote:

> I am trying to work the android development in UBUNTU 8.0 OS.
> I installed Eclipse 3.5 IDE Linux 32 bit version.
> When i try to add ADT 0.9. plugin it is reporting me the following
> error and it aborts the adding ANdroid plugin installation process.
>
> Error details
> 
> Cannot complete the install because one or more required items could
> not be found.
>  Software being installed: Android Development Tools
> 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> 0.9.4.v200910220141-17704)
>  Missing requirement: Android Development Tools
> 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group
> 0.9.4.v200910220141-17704) requires 'org.eclipse.wst.xml.ui 0.0.0' but
> it could not be found.
> --
>
> I have installed sun-java 1.6 version in my ubuntu system.
>
> What to do to solve this error.
>
> Or If any one knows the development of android in Ubuntu
> Environment.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

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

2009-12-02 Thread sathya subbiah
If running in eclipse then U needs to add the compiled code (.jar) of the
package as resource to your application and then import the aidl.

On Wed, Dec 2, 2009 at 3:50 AM, sathya subbiah
wrote:

> Think you need to add the aidl path your make file and have to include in
> your file
> import com.xyz.fooPackage.
>
> Hope this helps you.
>
>
> On Wed, Dec 2, 2009 at 2:46 AM, yidongsoft  wrote:
>
>> I need a aidl file defining:
>>
>> ArrayList getFoo();
>>
>> I import ArrayList package and Foo with
>>
>> import java.util.ArrayList;
>> import com.xyz.fooPackage;
>>
>> But eclipse keeps saying that can't find the importing class. Would
>> anybody help me? Thank you!
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

Re: [android-developers] Importing in aidl file

2009-12-02 Thread sathya subbiah
Think you need to add the aidl path your make file and have to include in
your file
import com.xyz.fooPackage.

Hope this helps you.

On Wed, Dec 2, 2009 at 2:46 AM, yidongsoft  wrote:

> I need a aidl file defining:
>
> ArrayList getFoo();
>
> I import ArrayList package and Foo with
>
> import java.util.ArrayList;
> import com.xyz.fooPackage;
>
> But eclipse keeps saying that can't find the importing class. Would
> anybody help me? Thank you!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] How to draw a Bitmap Image?....

2009-12-01 Thread sathya subbiah
Hi,

Pls find the code snippet below

mButtonImage =
BitmapFactory.decodeResource(getResources(),com.android.internal.R.drawable.tt_player_icon);

canvas.drawBitmap(mButtonImage, BUTTON_X_POS,BUTTON_Y_POS, null);

In case of resizing bitmap use matrix.



On Wed, Dec 2, 2009 at 12:24 AM, Sasikumar.S wrote:

> Hi,
>
>
> Any one know about how to draw a bitmap image?...
>
> thanks in advance
>
> --
> Thanks & Regards
> Sasikumar.S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: running sqlite3 commands from app?

2009-12-01 Thread sathya subbiah
Hi,

Use 
execSQLprovided
by Android for executing SQL commands.



On Tue, Dec 1, 2009 at 7:50 AM, dsukhram  wrote:

> Thanks for your reply. But I have looked at this class and I only see
> methods for creating,deleting or executing queries on a database. I
> don't see any methods for issuing a sqlite command. Maybe i'm blind
> but can you point out a method in this class that i would use?
>
> thanks
>
> On Nov 30, 4:04 pm, Dianne Hackborn  wrote:
> > http://developer.android.com/reference/android/database/sqlite/SQLite..
> .,
> > java.lang.Object[])
> >
> >
> >
> > On Mon, Nov 30, 2009 at 12:37 PM, dsukhram 
> wrote:
> > > Well thats the question i'm asking. I've looked at a various classes
> > > under the android.database.sqlite package but I can't seem to find one
> > > to do what I want. Can you tell me which one I need to use?
> > > On Nov 30, 2:57 pm, Dianne Hackborn  wrote:
> > > > Why would you want to do that?  Use the SQLite APIs to execute
> whatever
> > > > operations you want on the database.
> >
> > > > On Mon, Nov 30, 2009 at 11:49 AM, dsukhram 
> > > wrote:
> > > > > When my app loads up I need to import a bunch of records into its
> > > > > database.
> >
> > > > > How do I run the following sqlite3 command from my app?
> >
> > > > > sqlite3>.read /data/data//files/records.sql
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "Android Developers" group.
> > > > > To post to this group, send email to
> > > android-developers@googlegroups.com
> > > > > To unsubscribe from this group, send email to
> > > > > android-developers+unsubscr...@googlegroups.com
> 
> >
> > > 
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
> >
> > > > Note: please don't send private questions to me, as I don't have time
> to
> > > > provide private support, and so won't reply to such e-mails.  All
> such
> > > > questions should be posted on public forums, where I and others can
> see
> > > and
> > > > answer them.- 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2009-12-01 Thread sathya subbiah
Hi Raghu,

It will be helpful if you could post what you are trying

Also please find the below link for the menu item tutorial. It explains how
to display menu item..

http://developerlife.com/tutorials/?p=304

Rgs,
Sathya

On Tue, Dec 1, 2009 at 3:00 AM, Raghu  wrote:

> Hi,
> How to add menu items in separate rows?  When I press menu button
> onPrepareOptionsMenu callback will be get called. In that I am doing
> menu.add (….). All the items are coming in one row.
> I want few items in one row and other items in another row. How to do
> that? Please help me.
>
> Thank you,
> Raghu
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Where the Database Exists?....

2009-11-30 Thread sathya subbiah
HI Nithin,

The data base folder exists in data -> data -> package_name -> databases. To
check the file locally while running the application, copy the file to you
local filesystem and use sqlite commands in command window to check teh
contents.



On Tue, Dec 1, 2009 at 1:57 AM, Sasikumar.S wrote:

> Hi nithin,
>
> can u pls tell...
> Where the data folder exists?...
>
>
> On Tue, Dec 1, 2009 at 12:21 PM, Nithin  wrote:
>
>> Hi,
>>
>> Sqlite database is stored in data->data->package name->databases
>>
>> Thanks
>>
>> On Dec 1, 11:16 am, "Sasikumar.S"  wrote:
>> > Hi,
>> >
>> > When we are creating a databse in android through sqlite.
>> > where it is saving.
>> > How can we find the database file?...
>> >
>> > any one know about these?...
>> >
>> > Thanks in advance...
>> >
>> > --
>> > Thanks & Regards
>> > Sasikumar.S
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Thanks & Regards
> Sasikumar.S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread sathya subbiah
I am running the application in Linux environment. Can you please let me
know how I can I check Hierarchy in Linux?

Regards,
Sathya

On Thu, Nov 26, 2009 at 8:11 AM, Mark Murphy wrote:

> sathya subbiah wrote:
> > Hi Mark,
> >
> > Thanks for the reply. Have resolved the issue. Since I have set the X
> > and Y parameter as 0 and 0 and tried to override it in the createBitmap
> > function it gave error. I have another query. Can you please let me know
> > is it possible to a view(For example: ImageButton  or TextView) to a
> > ViewGroup. I am able to add the View successfully to the ViewGroup
> > object, but the view is not visible on screen.
> >
> >  Play_Button = new ImageButton(context);
> >
> >  LinearLayout.LayoutParams layoutParams = new
> LinearLayout.LayoutParams(
> > LinearLayout.LayoutParams.FILL_PARENT,
> > LinearLayout.LayoutParams.FILL_PARENT);
> >
> >
> >
> >
> Play_Button.setImageResource(com.android.internal.R.drawable.tt_player_icon_play);
> >Play_Button.setLayoutParams(layoutParams);
> >
> > If I try to add it to ViewGroup it is getting added but no display is
> > seen on screen. Can you please let me know what am I missing?
>
> It is impossible to say based on what you have provided here. Use the
> hierarchyviewer tool to examine your running activity and see if that
> tells you anything (e.g., it is being drawn off-screen).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-26 Thread sathya subbiah
Hi Mark,

Thanks for the reply. Have resolved the issue. Since I have set the X and Y
parameter as 0 and 0 and tried to override it in the createBitmap function
it gave error. I have another query. Can you please let me know is it
possible to a view(For example: ImageButton  or TextView) to a ViewGroup. I
am able to add the View successfully to the ViewGroup object, but the view
is not visible on screen.

 Play_Button = new ImageButton(context);

 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.FILL_PARENT);



Play_Button.setImageResource(com.android.internal.R.drawable.tt_player_icon_play);
   Play_Button.setLayoutParams(layoutParams);

If I try to add it to ViewGroup it is getting added but no display is seen
on screen. Can you please let me know what am I missing?

Thanks & Regards,
Sathya

On Thu, Nov 26, 2009 at 7:06 AM, Mark Murphy wrote:

> sathya subbiah wrote:
> > Hi,
> >
> > I am trying to mention X and Y values for the Bitmap image, but the
> > phone panics on mentioning the values.
> >
> >
> > Bitmap temp_image =
> > Bitmap.createBitmap(mAlbumArtImage,0,0,old_width,old_height,matrix,true);
> > - Phone does not panic with this code as X and Y values are 0 and 0
> >
> > Panic code:
> > Bitmap temp_image =
> > Bitmap.createBitmap(mAlbumArtImage,2,2,old_width,old_height,matrix,true);
> > - On mentioning X and Y values in the code, the phone panics.
> >
> > Can anyone please let me know if I am missing anything.
>
> You are missing the Java stack trace, to tell you where you are going
> wrong. You can get the exception's stack trace from adb logcat, DDMS, or
> the DDMS perspective in Eclipse.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Android Development Wiki: http://wiki.andmob.org
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Reg: PHone panics on mentioning X and Y value in Bitmap.createBitmap method

2009-11-25 Thread sathya subbiah
Hi,

I am trying to mention X and Y values for the Bitmap image, but the phone
panics on mentioning the values.


Bitmap temp_image =
Bitmap.createBitmap(mAlbumArtImage,0,0,old_width,old_height,matrix,true); -
Phone does not panic with this code as X and Y values are 0 and 0

Panic code:
Bitmap temp_image =
Bitmap.createBitmap(mAlbumArtImage,2,2,old_width,old_height,matrix,true); -
On mentioning X and Y values in the code, the phone panics.

Can anyone please let me know if I am missing anything.

Thanks,
Sathya

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

2009-11-25 Thread sathya subbiah
Hi,

Query the database created, which will return a cursor. Use cursor methods
to get the required data. Also you can use the below link for further
example

http://www.devx.com/wireless/Article/40842

Regards,
Sathya

On Wed, Nov 25, 2009 at 8:38 AM, saify.zeenwala wrote:

> hi
>
> try out these simple line of code
>
>
> QLiteDatabase
> m_oSQLiteDatabase;
>
> m_oSQLiteDatabase
> .query(strTableName, arrColumns, *null*, *null*, *null*, *null*, *null*);
>
> this will return u cursor object
>
> use get method to retive data from cursor
>
>
>
>
> On Tue, Nov 24, 2009 at 5:38 PM, siva  wrote:
>
>> HI
>>
>>   how to fetch datas  from database like mysql / sqlite.can any
>> one help me in this,i have tried the examples gave in the NOTEPAD
>> sample.its not working(it dont shows any errors.)
>>
>>
>> can any one guide me in 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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Reg: Error in adding View to a ViewGroup

2009-11-25 Thread sathya subbiah
Hi,

I am trying to add a view to a viewgroup but I am getting the following
error when I run the application

Error:
E/AndroidRuntime(  570): java.lang.IllegalStateException: The specified
child already has a parent. You must call removeView() on the child's parent
first.


Code:
public class ExampleApp extends ViewGroup{



private LayoutParams mLAyoutParams;
AlbumArtImageView mAlbumArtThumnail;


   static final String TAG = "ExampleApp";


   public ExampleApp(Context context) {
   super(context);
   Play_Button = new Button(context);
  // mAlbumArtThumnail = new ImageView(context);
   mAlbumArtThumnail = new AlbumArtImageView(context); // A view created
to be added to the ViewGroup
   //this.mAlbumArtImage =
BitmapFactory.decodeResource(getResources(),com.android.internal.R.drawable.emo_im_angel);
   this.setWillNotDraw(false);

   }

   @Override
   protected void onLayout(boolean changed, int l, int t, int r, int b)
   {
   // TODO Auto-generated method stub
   }


   @Override
   protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
 setMeasuredDimension( 300, 40);

 this.addView(mAlbumArtThumnail);

   }


   private int measureWidth(int measureSpec) {
 int preferred = 150;
 return getMeasurement(measureSpec, preferred);
   }


   private int measureHeight(int measureSpec) {
 int preferred = 40;
 return getMeasurement(measureSpec, preferred);
   }


   private int getMeasurement(int measureSpec, int preferred) {

 int specSize = MeasureSpec.getSize(measureSpec);
 int measurement = 0;

 switch (MeasureSpec.getMode(measureSpec)) {
   case MeasureSpec.EXACTLY:
 // This means the width of this view has been given.
 measurement = specSize;
 break;
   case MeasureSpec.AT_MOST:
 // Take the minimum of the preferred size and what we were told to
be.
 measurement = Math.max(preferred, specSize);
 break;
   default:
 measurement = preferred;
 break;
 }

 return measurement;

   }

   @Override
   public void onDraw(Canvas canvas)
   {
Paint paint = new Paint();
paint.setStyle(Paint.Style.FILL);
paint.setColor(Color.RED);

canvas.drawRect(0, 0, 320, 40, paint);

   }
}

Can anyone please let me know where I am making the mistake?.

Thanks in advance for your help.

Regards,
Sathya

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