[android-developers] Whatsapp data files - Help :(

2020-12-04 Thread Grace Bonifatti
Hello! I have a question about Whatsapp data files, I could really use your 
help.

I believe this is entirely my fault but I still want to ask, maybe there is 
a way to fix it?

So here’s my situation, I have a Xiaomi Redmi Note 8 pro. The phone 
includes an option to do a deep clean and there is also a Whatsapp cleaner. 
It recommended me to delete the data files and I read online that there 
wouldn’t be an issue if I did that, so I did it.

I noticed my conversations were intact, but every image or audio file I 
sent were not available anymore. Inside any chat conversation I’d have to 
individually download images or voice notes sent to me and they were there. 
I was like, okay at least they still exist.

This is the weird part, I didn't want to download each file individually 
and while deciding what to do, my phone created a new backup at 2am, then I 
decided to Uninstall and Re-Install Whatsapp, based on what I read online. 
The problem it’s even worst now because I can’t even download previous 
voice notes or images from my contacts, like I was able to just a few hours 
ago. It says something like Sorry can’t download this right now, please try 
again later.

Is there a way I can get these back? I have very important voice notes that 
were sent to me that I don’t want to loose, also family pictures. I know 
it's a long shot, but there HAS to be a way, pleease. Give me at 
least 1% of hope!!

Thanks so much for your help!  

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/5ebb55e3-040d-4d6d-bdf5-2eb31d9c6c72n%40googlegroups.com.


[android-developers] Intent/Market links for tracking

2016-09-26 Thread Grace Park
Hello!

I am working on deeplinking users from the mobile web page to the app, and 
I want to track the users using utm params. Intent links take the users to 
the market if they dont have the app downloaded, but the intent links dont 
take in utm params? I was wondering if there was a way to use the intent 
links (not the intent object) to still track the users

thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/9a33b0cc-f60d-414c-a1aa-277e9a321e4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: problem with ontouch of surfaceview

2011-06-09 Thread grace

I am using view.VISIBLE and View.INVISIBLE to make the layout show and
hide

my onTouch looks something like this

public boolean onTouch(View v, MotionEvent event) {

int id = v.getId();

int i = event.getAction();
switch(id)
{
case R.id.surface_view:
{

if(i == event.ACTION_DOWN)
{

settingsLayout.setVisibility(View.VISIBLE); //this is the
LinearLayout

}
}
break ;
}
return true;
}

On Jun 9, 1:39 pm, ThaMe90 theprophes...@gmail.com wrote:
 What do you use to hide/show the LinearLayout?
 Could you show the onTouch listener for the SurfaceView?

 On 9 jun, 06:29,gracegrace.a...@wipro.com wrote:

  Hi,

  I have my layout like this
  FrameLayout

         SurfaveView
             VideoView/VideoView
          /SurfaceView

          LinearLayout
              ImageView/ImageView
              ImageView/ImageView
          /LinearLayout

  /FrameLayout

  I have registered onTouch Listeners for all the views.The LinearLayout
  is made invisible at first(default).
  Now when i touch the surface view the LinearLayout should be made
  visible.
  but somehow its not visible after ontouch also.

  When the LinearLayout is visible at first(default),then i can make it
  invisible and visible from the ontouch events.

  Can anybody help me on this.Am i missing something.

  thanks in advance,
 Grace.

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

2011-06-09 Thread grace

I am using view.VISIBLE and View.INVISIBLE to make the layout show and
hide

my onTouch looks something like this

public boolean onTouch(View v, MotionEvent event) {

int id = v.getId();

int i = event.getAction();
switch(id)
{
case R.id.surface_view:
{

if(i == event.ACTION_DOWN)
{

settingsLayout.setVisibility(View.VISIBLE); //this is the
LinearLayout

}
}
break ;
}
return true;
}

On Jun 9, 1:39 pm, ThaMe90 theprophes...@gmail.com wrote:
 What do you use to hide/show the LinearLayout?
 Could you show the onTouch listener for the SurfaceView?

 On 9 jun, 06:29,gracegrace.a...@wipro.com wrote:

  Hi,

  I have my layout like this
  FrameLayout

         SurfaveView
             VideoView/VideoView
          /SurfaceView

          LinearLayout
              ImageView/ImageView
              ImageView/ImageView
          /LinearLayout

  /FrameLayout

  I have registered onTouch Listeners for all the views.The LinearLayout
  is made invisible at first(default).
  Now when i touch the surface view the LinearLayout should be made
  visible.
  but somehow its not visible after ontouch also.

  When the LinearLayout is visible at first(default),then i can make it
  invisible and visible from the ontouch events.

  Can anybody help me on this.Am i missing something.

  thanks in advance,
 Grace.

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

2011-06-08 Thread grace
Hi,

I have my layout like this
FrameLayout

   SurfaveView
   VideoView/VideoView
/SurfaceView

LinearLayout
ImageView/ImageView
ImageView/ImageView
/LinearLayout

/FrameLayout

I have registered onTouch Listeners for all the views.The LinearLayout
is made invisible at first(default).
Now when i touch the surface view the LinearLayout should be made
visible.
but somehow its not visible after ontouch also.

When the LinearLayout is visible at first(default),then i can make it
invisible and visible from the ontouch events.

Can anybody help me on this.Am i missing something.

thanks in advance,
Grace.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Exception while calling web service----java.net.SocketException: Permission denied

2011-02-21 Thread grace
hi,
go through the link..it might help you..

http://stackoverflow.com/questions/4253233/exception-with-web-service-java-net-socketexception-permission-denied-in-andr

On Feb 18, 2:06 pm, Ravi ravi.chavan...@gmail.com wrote:
 Yeah I given the internet permission in manifest file.

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


[android-developers] Re: Exception while calling web service----java.net.SocketException: Permission denied

2011-02-21 Thread grace
Hi,

http://stackoverflow.com/questions/4253233/exception-with-web-service-java-net-socketexception-permission-denied-in-andr

On Feb 18, 2:06 pm, Ravi ravi.chavan...@gmail.com wrote:
 Yeah I given the internet permission in manifest file.

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


[android-developers] Re: Listener for ListItem click

2010-11-09 Thread grace
On Nov 9, 1:55 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Hi, I have one class which is extended from activity. In this I have
 displayed list. Now I want the name of list item on which user is
 clicked. My class is not exteded from ListActivity so I can't
 override
 protected void onListItemClick(ListView l,View v,int POSITION,long id)
         {

         }


   you can use the position value from the onListItemClick()and  get
the name from the adapter/list you have displayed.


 Then How I came to know that on which list item user click?

 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 add button to do this line of codes

2010-10-25 Thread grace
hope this is what you are looking for

 b= (Button) findViewById(R.id.Button01);
b.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v){
IntentIntegrator.initiateScan(Axzing.this/*context*/);

}
});
}

 public void onActivityResult(int requestCode, int resultCode,
Intent
 intent) {
 IntentResult scanResult =
 IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
 if (scanResult != null) {
   // success
 }
 // fail
   }

On Oct 25, 12:35 pm, zenous ridwan.za...@gmail.com wrote:
 public void onActivityResult(int requestCode, int resultCode, Intent
 intent) {
     IntentResult scanResult =
 IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
     if (scanResult != null) {
       // success
     }
     // fail
   }

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


[android-developers] java.io.FileNotFoundException:No files supported by provider

2010-10-19 Thread grace
Hi,

I am trying to insert images into my custom content provider.
this is my piece of code where i try to insert..

  ContentValues values = new ContentValues();
values.put(ImageProvider.KEY_ID, position);
values.put(ImageProvider.KEY_TITLE,bluezz.png);
Uri insertedUri =
getContentResolver().insert(Uri.parse(ImageProvider.CONTENT_URI),
values);
try {
OutputStream outStream =
getContentResolver().openOutputStream(insertedUri);///LINE 1
b.compress(Bitmap.CompressFormat.PNG, 50, outStream);
outStream.close();
} catch (Exception e) {
Log.e(ImageProvider.TAG, exception while writing
image, e);
}

but this(LINE 1) is throwing me up with an exception 
java.io.FileNotFoundException:No files supported by provider.

I have searched a lot on internet for the solution but in vain.
can anybody please provide some solution for my problem

Thanks in advance,
Grace.




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

2010-10-19 Thread grace
try using on of these methods on the listview setBackgrungdColor()
or setBackgroungDrawable() or setBackgroundResource().
to set the color to your listview

On Oct 19, 2:57 pm, pramod.deore deore.pramo...@gmail.com wrote:
 Hi , I have developing list as
 public class AddSwitch extends ListActivity
 {

         public void onCreate(Bundle savedInstanceState)
      {
         System.out.println (First stmt in onCreate of AddSwitch);

         super.onCreate(savedInstanceState);

         String[] switchName =
 getResources().getStringArray(R.array.Switch_array);
         setListAdapter(new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,
 switchName));
         getListView().setTextFilterEnabled(true);
     }

         protected void onListItemClick(ListView l, View v, int position, long
 id)
         {
         }

         public void onItemSelected(AdapterView parent,View v,int
 position,long id)
         {

         }

 }

 Now I want to  change the color of list to other color. How to do
 that? Because here I had not used any .xml file so how to write code
 to change the color of list?

 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 change of color of list

2010-10-19 Thread grace
hi instead of int values can use Color.xxx(default color values)
or if you want your own designed colors make a colors.xml class under
res/values and use setBackgroundResource() to set a particular color
of your choice.


On Oct 20, 8:45 am, pramod.deore deore.pramo...@gmail.com wrote:
 Thanks Grace for reply,
 I had add in code as
 getListView().setBackgroundColor(123123);
 But still color is not changed. I had also tried different int values
 but still color is not changed.

 On Oct 19, 3:55 pm, grace grace.a...@wipro.com wrote:

  try using on of these methods on the listview setBackgrungdColor()
  or setBackgroungDrawable() or setBackgroundResource().
  to set the color to your listview

  On Oct 19, 2:57 pm, pramod.deore deore.pramo...@gmail.com wrote:

   Hi , I have developing list as
   public class AddSwitch extends ListActivity
   {

           public void onCreate(Bundle savedInstanceState)
        {
           System.out.println (First stmt in onCreate of AddSwitch);

           super.onCreate(savedInstanceState);

           String[] switchName =
   getResources().getStringArray(R.array.Switch_array);
           setListAdapter(new
   ArrayAdapterString(this,android.R.layout.simple_list_item_1,
   switchName));
           getListView().setTextFilterEnabled(true);
       }

           protected void onListItemClick(ListView l, View v, int position, 
   long
   id)
           {
           }

           public void onItemSelected(AdapterView parent,View v,int
   position,long id)
           {

           }

   }

   Now I want to  change the color of list to other color. How to do
   that? Because here I had not used any .xml file so how to write code
   to change the color of list?

   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: setting background of an imagebutton to transparent

2010-10-18 Thread grace
HI,
i think it should be #00FF

On Oct 17, 6:06 pm, Kumar Bibek coomar@gmail.com wrote:
 #



 On Sun, Oct 17, 2010 at 6:14 PM, dashman erjdri...@gmail.com wrote:

         ImageButton android:id=@+id/button
                         android:src=@drawable/button
                         android:background=???
                         android:layout_gravity=center_vertical
                                 android:layout_width=wrap_content
                 android:layout_height=wrap_content /

  @android:color/transparent - and almost every permutation

  little help..

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

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

2010-10-17 Thread grace
hi,
your table layout as defined in your xml specifes to fill the parent
with its content.
that is why it is not showing up the second image button.
try to adjust the width of the table layout so that image button can
also be seen
TableLayout
 android:layout_width=fill_parent /here
 android:layout_height=wrap_content
 android:stretchColumns=1


On Oct 18, 7:49 am, dashman erjdri...@gmail.com wrote:
 i've got a linear layout - horz.

 with an image-view on the left and
 a tablelayout to it's right.

 works fine!

 i wanted to add an image-button to the
 right of the tablelayout.

 problem is that image-button never appears
 on the screen.

 if i comment out the tablelayout (i.e.
 just 2 image-views in the layout) - then
 the image-button shows up.

 i've verified the code for the image-button -
 it's correct.

 it's almost as if one cannot have a view
 after  a tablelayout - i.e. it takes up the
 remainder of the width.

 ?xml version=1.0 encoding=utf-8?

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:orientation=horizontal
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:paddingTop=5dip
         android:paddingBottom=5dip
                 android:background=#33

         ImageView android:id=@+id/main_child_image
                         android:paddingLeft=40dip
                         android:paddingRight=5dip
                         android:layout_gravity=center_vertical
                                 android:layout_width=wrap_content
                 android:layout_height=wrap_content /

 TableLayout
     android:layout_width=fill_parent
     android:layout_height=wrap_content
     android:stretchColumns=1

     TableRow

         TextView
             android:id=@+id/main_child_text1
                         style=@style/style_main_child_text1 /

         TextView
             android:id=@+id/main_child_text2
                         style=@style/style_main_child_text2 /

         TextView
             android:id=@+id/main_child_text6
                         style=@style/style_main_child_text6 /

     /TableRow

     TableRow
         TextView
             android:id=@+id/main_child_text3
                         style=@style/style_main_child_text3 /
         TextView
             android:id=@+id/main_child_text4
                         style=@style/style_main_child_text4 /
         TextView
             android:id=@+id/main_child_text5
                         style=@style/style_main_child_text5 /
     /TableRow

 /TableLayout

         ImageButton android:id=@+id/status_button           !--
 this is not showing up --
                         android:src=@drawable/status_button    !-- if i 
 comment
 the tablelayout - then it shows--
                         android:layout_gravity=center_vertical
                                 android:layout_width=32px
                 android:layout_height=32px /

 /LinearLayout

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

2010-10-08 Thread grace
hi,

how to find programatically which version of opengl es is being used
for any 3D 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: bitmap size exceeds VM budget

2010-10-07 Thread grace

hi refer this link,it may help u
http://stackoverflow.com/questions/477572/android-strange-out-of-memory-issue/823966#823966

On Oct 7, 10:53 am, Kumar Bibek coomar@gmail.com wrote:
 Managing pictures needs special attention since the max heap area you get is
 16MB or more on a few phones. You cannot exceed that budget.



 On Wed, Sep 29, 2010 at 8:45 AM, Amanda Lee amanda7...@gmail.com wrote:
  Hi all,
  I am a amateur for android development.
  There are some problems which might need your assistance.
  I intend to process plenty of pictures via SD card.
  With the attached code, it seems not to work smoothly via SD card.
  The systme will report bitmap size exceeds VM budget.
  Is there any solution can help to slove this problem?

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

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

2010-09-23 Thread grace
hi,

as the button has the clickable property the listrow which holds the
button doesnot hold this property.
u can sroll down the list but u cannot click the list row.

On Sep 24, 6:35 am, John Gaby jg...@gabysoft.com wrote:
 I have a ListView control for which I supply my own ListAdapter.  When
 my adapter's 'getView' is called, I return a view which contains other
 controls.  Now if the view that I return contains only TextViews, then
 everything works fine.  However if I place a Button control on the
 view that I return, then I do not seem to be able to select a row of
 the table anymore.  I can scroll the table, and touch the button that
 is in the row and get it's 'onClick' message, but I never receive an
 'onItemClick' message from the ListView control.

 Is this supposed to work?  If so, does anyone have any idea what might
 be going 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 get the height width of emulator in android

2010-09-16 Thread grace
getWindowManager().getDefaultDisplay().getWidth() and
getWindowManager().getDefaultDisplay().getHeight()

On Sep 16, 3:20 pm, RKJ (Android developer) rkjhaw1...@gmail.com
wrote:
 Hi all,

 I want to get the height  width of emulator (which will reflect in
 device also).

 --RKJ

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

2010-09-06 Thread grace
Hi,

I am Implementing one auto text view.
it looks fine in potrait mode but in landscape the soft keyboard
contains DONE button,with no functionality.nothing happens even if i
click done button .

is there any way to avoid that done button from virtual keyboard or
add functionality to it.
Please help..


Thanks in advance,
Grace.

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

2010-08-30 Thread grace
 add android:gravity=center_horizontal in the linear layout

On Aug 31, 8:42 am, William Ferguson william.ferguson...@gmail.com
wrote:
 OK, I'm obviously missing something fundamentally simple here.
 I have a LinearLayout containing 2 buttons.
 I've coloured the layout background red so I can see that it has
 expanded to fill its parent.
 I wanted the BooButton to center horizontally within the layout and
 the OtherButton to be right justified.
 But both buttons are on the left of the layout.

 What have I done wrong?

 LinearLayout android:id=@+id/buttonBlock
    android:orientation=horizontal
    android:background=#ff
    android:layout_width=fill_parent
    android:layout_height=wrap_content

   Button android:id=@+id/booButton
        android:text=Boo
        android:layout_gravity=center_horizontal
        android:layout_width=wrap_content
        android:layout_height=wrap_content/

   Button android:id=@+id/otherButton
        android:text=Other
        android:layout_gravity=right
        android:layout_width=wrap_content
        android:layout_height=wrap_content/
  /LinearLayout

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

2010-08-04 Thread grace

hi,
does your selector which you set as the background defines background
colors for focus also??
as per my understanding your trying to check for selection state when
the layout is in focusable state.

On Aug 4, 4:12 pm, Pipen erik.ing...@gmail.com wrote:
 Hi all,

 I have a scroll view with a couple of LinearLayous in it (please don¨t
 tell me to use a ListView, because it's out of the question)

 I set the background to be a selector with different backgrounds for
 selected an non selected. The problem is that it never gets selected
 when scrolling with the arrows (emulator) wheel (nexus one). But if I
 do view.setSelected(true) it indicates that its selected.

 Is there a way to set these views to be selectable when a user scrolls
 trough the scroll view?

 Kind regards

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

2010-07-20 Thread grace


On Jul 20, 6:58 pm, Tina tina...@gmail.com wrote:
 Hi, all!
 I need to check web site availability and use requestRouteToHost  for
 that purpose. On real device everything works fine, but on emulator
 requestRouteToHost  always return false.
 What's wrong?
 Code is:

 public static boolean isHostAvailable(Context context, String
 urlString) throws UnknownHostException, MalformedURLException {
                 boolean ret = false;
                 int networkType = ConnectivityManager.TYPE_WIFI;/**LINE 
 1**/
                 ConnectivityManager cm = (ConnectivityManager)
 context.getSystemService(Context.CONNECTIVITY_SERVICE);
                 if(cm != null){
                         NetworkInfo nf = cm.getActiveNetworkInfo();
                         if(nf != null){
                                 networkType = nf.getType();
                         }
                         URL url = new URL(urlString);
                         InetAddress  iAddress = 
 InetAddress.getByName(url.getHost());
                         ret = cm.requestRouteToHost(networkType,
 ipToInt(iAddress.getHostAddress()));
                 }
                 return ret;

 }




i dont think wi-fi access is possible on emulator.
so make sure and if not possible,try with other network types.

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

2010-07-19 Thread grace
hi please check out the sample code for creating views and viewGroups
without a xml


public class tut3 extends Activity {

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);



ScrollView sv = new ScrollView(this);

LinearLayout ll = new LinearLayout(this);

ll.setOrientation(LinearLayout.VERTICAL);

sv.addView(ll);



TextView tv = new TextView(this);

tv.setText(Dynamic layouts ftw!);

ll.addView(tv);



EditText et = new EditText(this);

et.setText(weee~!);

ll.addView(et);



Button b = new Button(this);

b.setText(I don't do anything, but I was added
dynamically. :));

ll.addView(b);



for(int i = 0; i  20; i++) {

CheckBox cb = new CheckBox(this);

cb.setText(I'm dynamic!);

ll.addView(cb);

}

this.setContentView(sv);

}

}


On Jul 17, 5:46 pm, Jags jag...@gmail.com wrote:
 is there a way i can create a view and add some textviews into it ?
 programmatically ? any sample code ?

 regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 eliminate the java.lang.OutOfMemoryError: bitmap size exceeds VM budget issue while scrolling in bluetooth screen.

2010-07-06 Thread grace
Hi,
seems that memory being used is more..
when dealing with bitmap its always better to free up earlier used
memory before using the new one
so you follow the link that will guide you with the clear solution.

http://stackoverflow.com/questions/477572/android-strange-out-of-memory-issue/823966#823966
On Jul 5, 8:03 am, sourabh.j...@gmail.com sourabh.j...@gmail.com
wrote:
 HI ,

 While performing scrolling on the Bluetooth scanned devices screen I
 faced the below out of memory issue.

 06-28 12:35:51.338 E/AndroidRuntime( 1311): Caused by:
 java.lang.OutOfMemoryError: bitmap size exceeds VM budget
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:447)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:
 323)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.drawable.NinePatchDrawable.inflate(NinePatchDrawable.java:
 254)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:
 788)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.content.res.Resources.loadDrawable(Resources.java:1690)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.content.res.TypedArray.getDrawable(TypedArray.java:548)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.view.View.init(View.java:1850)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.view.View.init(View.java:1799)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     at
 android.view.ViewGroup.init(ViewGroup.java:284)
 06-28 12:35:51.338 E/AndroidRuntime( 1311):     ... 36 more

 It looks like the memory for the application was exhausted .The
 bluetooth settings page uses BluetoothDevicePreference to handle
 onBindView() api for showing the the icon and name of the searched
 bluetooth devices , now while scrolling the searched device page every
 time the getView of the preference is getting called and that is
 eventually calling the onBindView() api to show the icon and device
 name on the screen.

 So can anyone suggest me how should I handle this kind of out of
 memory issue ?

 Thanks and Regards,
 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


[android-developers] Re: Display android screen on projector

2010-07-06 Thread grace
Hi,

Android ScreenCast tool can also help you in this aspect.

http://code.google.com/p/androidscreencast/

this works with the camera preview,
refresh rate 4-5 fps and can changed to landscape mode also

On Jul 4, 2:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 You can use dr...@screen:

 http://blog.ribomation.com/2010/01/21/droidscreen/

 That is based on my earlier DroidEx utility. Both can only do about 6
 frames per second, due to the limitations of the adb interface. Hence,
 this is fine for basic apps, but will not work well for:

 -- videos
 -- camera previews
 -- OpenGL animations

 Of course, you can also simply run the application in the emulator, if
 that will suffice for your needs.



 On Sun, Jul 4, 2010 at 5:23 AM, Krishna Kumar krissf...@gmail.com wrote:
  laptop

  On Sun, Jul 4, 2010 at 5:20 PM, Nishant Kumar nishant.cs...@gmail.com
  wrote:

  Hi,

  I have made an android application. Now I want to demonstrate the
  application to a group of people.

  How can I show my android screen live on a projector through a
  laptop/desktop.

  Thanks,
  Nishant

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

  --
  Krishna Kumar

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

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

 Android Consulting:http://commonsware.com/consulting

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

2010-07-06 Thread grace
HI,

Try using getTabHost().setCurrentTab(1/*tab2*/);
once you enter/leave the tab2 activity

On Jul 1, 9:01 pm, Jeruliu jeru@gmail.com wrote:
 I have a TabActivity class A with 2 tabs, a sub activity class B in
 tab 2.

 Now a dialog pops up from the UI in B, once i click the save button in
 this dialog it goes back to the TabActivity but the tab is set to 1,
 however i want to set the current tab to 2 once the dialog box closed.

 In short i need to acquire the tabHost reference in the diaglo when
 clicking on the save button.

 Please let me know how to do that 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: where does openFileOutput store the file

2010-07-06 Thread grace
Hi,

I think this will store the file as data/data/app-package-name/file-
name-specified

On Jul 6, 12:42 pm, Abhyudai Shanker abhyudai.shan...@gmail.com
wrote:
 Hey guys,

 M trying to write a file using openFileOutput, using the following snippet:

               // open myfilename.txt for writing
               OutputStreamWriter out = new
 OutputStreamWriter(openFileOutput(myfilename.txt,0));
               // write the contents on mySettings to the file
               out.write(sa_lt);
               // close the file
               out.close();

 I have to use this file, myfilename.txt, later in my native code. To
 reference it I must know it's path.

 Anyone knows where does openFileOutput create the file and if it can be
 opened in my native code using the path, as in would there be any permission
 issues.

 Please guide me

 Abhyudai

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

2010-06-29 Thread grace
hi,
use button.setLines() method to restrict it to single line

On Jun 16, 8:17 am, Dhawal dhawal.sh...@gmail.com wrote:
 Hi,
 I am creating a button widget with icon and text. Single word text is
 getting divided into two lines. There is enough room on the screen for
 the button widget to grow. But it still wraps the text to next line.
 How do I force it to be single line ?
 This is how I setup th button widget.

 Button android:id=@+id/delete android:text=@string/delete
                 android:drawableTop=@drawable/ic_menu_post_delete
                 style=@style/OnScreenActionIcon /

 Thanks,
 Dhawal.

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

2010-06-23 Thread grace
thanks for ur reply,
I have gone through the link.
As i understand the fix for this problem is to give the supported
parameters to the camera object which we get from the list of
getSupportedPreviewSizes().

but my case is little different i guess,i just have the apk of the
application i downloaded not the source code to make the changes
accordingly.
I am trying to run it on N1 which has 2.1 update1.
so,how to use the above fix to solve this issue on my phone.

pls help..

On Jun 22, 5:49 pm, blindfold seeingwithso...@gmail.com wrote:
 See the declined issue discussion on setPreviewSize() 
 athttp://code.google.com/p/android/issues/detail?id=7909and the
 recommendations made there by Wu-Cheng (Comment 29).

 Regards

 The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

 On Jun 22, 10:59 am,gracegrace.a...@wipro.com wrote:

  Hi,

  I have downloaded one open source ocr application.
  when i run it on the g1 phone it is working,but for  the nexus one its
  throwing up a exception telling
  E/QualcommCameraHardware(   52): Invalid preview size requested:
  533x310

  E/AndroidRuntime( 5038): java.lang.RuntimeException: setParameters
  failed

  hoe can i make this work on nexus too.

  thanks in advance..

 Grace.



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

2010-06-22 Thread grace
use the function button.setVisibility(View.VISIBLE); and try once
again..

On Jun 21, 2:04 pm, mike hasitharand...@gmail.com wrote:
 hi guys,

 i have a class which extends a View and i'm drawing few images in the
 canvas.
 and i want to draw two buttons as well. could someone tell me how to
 do this???

 this is my class

 public class DrawView extends View {
         private ColorBall colorball1;

         String[] str;
         int width, height;

         Context ctx;

         public DrawView(Context context, int width, int height, InputStream
 is,
                         String[] str) {
                 super(context);
                 setFocusable(true); // not yet necessary, but you never know 
 what
 the
                 // future brings
                 // declare each ball with the ColorBall class
                 // if(color.equals(blue)){
                 this.ctx = context;
                 this.str = str;
                 this.height = height;
                 this.width = width;

                 colorball1 = new ColorBall(context, is, height, width);

         }

         @Override
         protected void onDraw(Canvas canvas) {

                 colorball1.moveBall(5, 3);

                 // draw the balls on the canvas
                 canvas.drawBitmap(colorball1.getBitmap(), colorball1.getX(),
 colorball1
                                 .getY(), null);

                 Button btnAnswer = (Button) findViewById(R.id.button1);
                 Button btnEnd = (Button) findViewById(R.id.button2);

                 // refresh the canvas
                 invalidate();
         }

 }

 even i have created two button but how can i make them visible??

 regards,
 Mike

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

2010-06-22 Thread grace
Hi,

I have downloaded one open source ocr application.
when i run it on the g1 phone it is working,but for  the nexus one its
throwing up a exception telling
E/QualcommCameraHardware(   52): Invalid preview size requested:
533x310

E/AndroidRuntime( 5038): java.lang.RuntimeException: setParameters
failed

hoe can i make this work on nexus too.


thanks in advance..


Grace.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Content provider / ListView - Close the database but leave the cursor open?

2010-06-21 Thread grace
Hi,

did u use Cursor.setNotificationUri(...) before closing the database
in the query function of the provider.??

On Jun 19, 5:40 am, Jawon jawonl...@gmail.com wrote:
 I have a ContentProvider that stores data in a SQLite database. I also
 have an app with a ListView that displays data queried from the
 ContentProvider. I run a query() on the ContentProvider, then I take
 the returned Cursor, make an adaptor, and set it to the ListView, like
 so:

                 dbAdapter = getContentResolver();
                 deviceList = (ListView)this.findViewById(R.id.deviceList);

                 Cursor allDevices =
                         dbAdapter.query(BluetoothContentProvider.CONTENT_URI,
                                                         
 BluetoothContentProvider.ALL_COLUMNS,
                                                         null,
                                                         null,
                                                         
 BluetoothContentProvider.KEY_ROWID +  ASC);
                 startManagingCursor(allDevices);
                 SimpleCursorAdapter cursorAdaptor =
                         new SimpleCursorAdapter(this, R.layout.device, 
 allDevices,
 COLUMN_HEADINGS, DISPLAY_FIELDS);
                 deviceList.setAdapter(cursorAdaptor);

 If I close the database inside the query() of the Provider, I get an
 Invalid statement in fillWindow() error from the returned Cursor,
 but I don't want to leave the database permanently open either. What
 should I do?

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

2010-06-07 Thread grace
Hi,

I am using Google Zxing QR code library for Android  to scan the
qrcodes and get the result..
now i don't want to use the camera to scan..
i want to scan a qr code that is stored as a image resource in try
app..
can some body guide me how to do it..
any kind of example or documentation on how to do this...


Thanks in advance,

Grace.

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

2010-06-03 Thread grace
Hi,

I want  to change the background of the optionmenuitem and have my
custom theme for the menu items
is it possible??
pls help..


thanx in advance,
Grace.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Apps not showing in market after factory reset with Froyo.

2010-05-23 Thread Christopher Grace
Thanks for the reply. The behavior I'm seeing is exactly the same as what
you've noted.  I still don't feel particularly good about the situation, but
as there are others noticing the same issue, at least I don't feel lost in
this.  Will start examining my manifest files in greater depth to see if
there's anything that jumps out.

On Sun, May 23, 2010 at 3:37 PM, niko001 ebs...@googlemail.com wrote:

 I'm having this issue even without performing a factory reset, see

 http://groups.google.com/group/android-developers/browse_thread/thread/96d33683093a3dd7



 On 23 Mai, 23:30, SoftwareForMe.com sa...@softwareforme.com wrote:
  I have a friend who had this exact thing happen. I'll let you know if he
  figures it out, and you do the same!
 
  On Sun, May 23, 2010 at 2:10 PM, Christopher christopher...@gmail.com
 wrote:
 
   I recently got the Froyo update on my N1, and initially everything was
   working just fine with regard to being able to see my apps in the
   market.  Today I performed a factory reset to wipe the device, and
   after getting it set up again, I can no longer see my apps in the
   market.  Has anyone else run into 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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 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.comandroid-developers%2bunsubscr...@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] INSTALL_FAILED_UPDATE_INCOMPATIBLE.. plss help

2010-05-17 Thread grace
Hi,

I am getting this INSTALL_FAILED_UPDATE_INCOMPATIBLE message when i
try to install my app on to the device..

i have searched enough on this..and found out that  emulator -wipe-
data and then install the app will help solving the above problem,
but i doubt that this emulator -wipe-data will clear all the details
of the data partition.

I have many other applications installed on my device which i don't
want to lose..
so can anybody help me how to wipe the details of specific package
rather than the whole data sect


thanks in advance,

Grace.

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

2010-05-17 Thread grace
Hi ,

i have tried the same on g1 phone and it worked fine for me..
the soft keyboard is able to show the number keys instead of regular
alphabets
and the input accepts only the numbers in the specified digit string

so probably u may checkout on which version you app is working on..

On May 16, 6:02 pm, Prasanna Perera prasanna.per...@gmail.com wrote:
 Hello,

 I have an EditText that only accepts digits.  I want the softkeyboard
 to show only digits for this input filed.  How do I do this?  Using
 the attributes below have not worked for me.  I am testing on a Droid
 phone.

                         android:digits=1234567890
                         android:inputType=number
 Thanks,
 Prasanna

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: why launch is cancelled

2010-05-17 Thread grace
try restarting your adb device and then try launching your app again..
that should work.

On May 15, 7:58 pm, Muhammad Shair Ali mshair@googlemail.com
wrote:
 Hello,

 Can some one tell me ,why launch is cancelled

 [2010-05-15 07:56:22 - Helloandroid] Device API version is 7 (Android
 2.1)
 [2010-05-15 07:56:22 - Helloandroid] HOME is up on device
 'emulator-5554'
 [2010-05-15 07:56:22 - Helloandroid] Uploading Helloandroid.apk onto
 device 'emulator-5554'
 [2010-05-15 07:56:28 - Helloandroid] Failed to upload Helloandroid.apk
 on device 'emulator-5554'
 [2010-05-15 07:56:28 - Helloandroid] java.io.IOException: Unable to
 upload file: timeout
 [2010-05-15 07:56:28 - Helloandroid] Launch canceled!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Changing LandScape to Potrait mode

2010-05-17 Thread grace
because the width and height values differ int he landscape and
potrait..
the positioning of widgets on screen will differ..

so if you are changing the orientation ,then you can have different
layouts for each orientation and set the same for respective
orientations.

On May 15, 4:42 pm, Karteek N kartee...@gmail.com wrote:
 Hi,
 I have a an application which is having some UI items like Buttons Radio
 Buttons etc.
 I want to change through code from landscape to portrait mode.
 I did  by calling the method
 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
 But my UI items totally disturbed some of the i am unable to see.
 What care i need to take for this
 Any one can give me any documents or any help

 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 
 athttp://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: INSTALL_FAILED_UPDATE_INCOMPATIBLE.. plss help

2010-05-17 Thread grace
hi,

Thanks for ur reply..
i followed the steps in that discussion and it worked out for me...


On May 17, 2:45 pm, Mark Murphy mmur...@commonsware.com wrote:
 grace wrote:
  Hi,

  I am getting this INSTALL_FAILED_UPDATE_INCOMPATIBLE message when i
  try to install my app on to the device..

  i have searched enough on this..and found out that  emulator -wipe-
  data and then install the app will help solving the above problem,
  but i doubt that this emulator -wipe-data will clear all the details
  of the data partition.

  I have many other applications installed on my device which i don't
  want to lose..
  so can anybody help me how to wipe the details of specific package
  rather than the whole data sect

 Uninstall the application before trying to install a new copy with a
 different signing key. You may need to do this from the Settings
 application instead of using adb uninstall. You may also need to briefly
 re-sign it with the earlier key.

 See this thread for more:

 http://groups.google.com/group/android-developers/browse_thread/threa...

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

 Android Training in US: 14-18 June 2010:http://bignerdranch.com

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: APK files

2010-05-05 Thread grace
hi,

i don't think so we can extract information from a apk file.

On May 5, 1:45 pm, Neilz neilhorn...@googlemail.com wrote:
 Hi all.

 I just wondered, if someone has an application's APK file, can it be
 extracted? I mean, can you open it to extract any images, sound files,
 class files, xml files, etc?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Speed issue: content provider vs plain sqlite db

2010-05-05 Thread grace
Hi,

I have tried the same thing with content provider and even that take
some time to load the feeds..
so i think its nothing to do with the db or content provider

On May 4, 2:14 am, Moss b.thax@gmail.com wrote:
 Hi there,

 I have made an app that makes extensive use of an internal sqlite db
 to save news feeds. Those feeds are parsed from an URL and then cached
 in the DB so that I'm able to re-add them to a ListView after a
 onPause()/onResume() pair. It's all quite nice but it takes about 2 or
 3 seconds to restore the feed and showup the filled ListView.

 Apart from 1 ListView it's actually a TabHost with 3 ListActivities
 and in each of their ListView's I got about 50 items. So I can not not
 hold all 150 items at once in memory. That's the reason I cache them
 to a DB so I'm able to clear them out in their onPause() call.

 Why is it so slow? Would it be better to implement a ContentProvider?
 And, would it really speed the app up?

 Thanks in advanced.

 Cheers,
   Moss

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: [android-kernel] A simplest Application access Content Provider

2010-05-05 Thread grace
Hi,


getcontentResolver() is the method of Context class which is the super
class of activity,

so any non activity class cannot get access to the content resolver
object..
one work around(even though its not good practice to do..)pass the
content resolver object as parameter to the function you want to use
it from another class which is a activity,
but in your case i don't think you have that option of passing content
resolver object from another class as you have only one class that is
calling main in your program.


On May 6, 7:51 am, linlo...@gmail.com wrote:
 Sorry,

 I've corrected it.
 If you have any idea about this issue, please help check it.

 Thanks.

 2010/5/5 Mateusz Kozak mateuszkozak...@gmail.com



  Why are you posting this on Android-kernel not on android-platform?

  W dniu 2010-05-05 13:57 użytkownik linlo...@gmail.com napisał:

  hi,

  Usually, we can inherit class Activity to access Content Provider, such
  as SMS/Contacts with following codes:
  ===
  public class ActivityTest extends Activity {
  ...
      private void insertSms(String str_address, String content){
          ContentResolver contentResolver = getContentResolver();
          String strUriInbox = content://sms/inbox;
          ContentValues values = new ContentValues();
          values.put(address, str_address);
          values.put(date, Calendar.getInstance().getTime().getTime());
          values.put(protocol, 0);
          values.put(status, -1);
          values.put(type, 1);
          values.put(body, content);
          Uri uriSms = Uri.parse(strUriInbox);
          contentResolver.insert(uriSms, values);
      }
  }
  ===

  However, I don't want to show a activity if write SMS database. So, I
  design a simplest application without Activity with following codes:
  ===
  package com.xxx.NoActivityTest;

  public class NoActivityTest {
      public NoActivityTest(){
      }

      private void insertSms(String str_address, String content){
          ContentResolver contentResolver = *getContentResolver*();  
  *//NoActivityTest
  don't inherit from Activity, so, don't recongnize getContentResolver(),
  so, can't get ContentResolver instance.*
          String strUriInbox = content://sms/inbox;
          ContentValues values = new ContentValues();
          values.put(address, str_address);
          values.put(date, Calendar.getInstance().getTime().getTime());
          values.put(protocol, 0);
          values.put(status, -1);
          values.put(type, 1);
          values.put(body, content);
          Uri uriSms = Uri.parse(strUriInbox);
          contentResolver.insert(uriSms, values);
      }

      public static void main(String[] args) {
          NoActivityTest ex = new NoActivityTest();
          ex.insertSms(13912345678, test0001);
      }
  }
  ===

  As you seen from comments, can't get ContentResolver instance because
  don't recongnize getContentResolver().
  How to overcome this issue?

  Thanks.

  --
  unsubscribe: 
  android-kernel+unsubscr...@googlegroups.comandroid-kernel%2bunsubscr...@googlegroups.com
  website:http://groups.google.com/group/android-kernel

   --
  unsubscribe: 
  android-kernel+unsubscr...@googlegroups.comandroid-kernel%2bunsubscr...@googlegroups.com
  website:http://groups.google.com/group/android-kernel

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: clearing table

2010-04-20 Thread grace
hi,
use the sql statements to drop the table.

On Apr 20, 11:14 am, ranjit R ranjitr...@gmail.com wrote:
 how to clear a table in android database.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: clearing table

2010-04-20 Thread grace
either u can use delete tablename with all other parameters as null..
if u want to delete all the entries of the table.

On Apr 20, 11:14 am, ranjit R ranjitr...@gmail.com wrote:
 how to clear a table in android database.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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 depress the onLongClick() when drag a view

2010-04-19 Thread grace

hi,

try disabling the longclick event using public void setLongClickable
(boolean longClickable)
function  while ur performing the drag operation and enable it after
that..
so that u can have both the functionalities..

regards,
Grace.

On Apr 19, 11:47 am, sheng wang banxia...@gmail.com wrote:
 Hi,

 I have a View and I can drag it. It also has a onLongClick() method so it
 can respond to the long press on the screen.

 The problem is when I drag it , the onLongClick will also be triggered .
 Anyone have an idea to depress the long click detection when i move it .

 Thanks in advances.
 Shawn.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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 depress the onLongClick() when drag a view

2010-04-19 Thread grace
hi,

try disabling the longClick event using  public void setLongClickable
(boolean longClickable)
function while ur performing the drag operation and enable it after
that..
so that u can have both the functionalities..


Regards,
Grace.

On Apr 19, 11:47 am, sheng wang banxia...@gmail.com wrote:
 Hi,

 I have a View and I can drag it. It also has a onLongClick() method so it
 can respond to the long press on the screen.

 The problem is when I drag it , the onLongClick will also be triggered .
 Anyone have an idea to depress the long click detection when i move it .

 Thanks in advances.
 Shawn.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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: Question regarding the database creation

2010-04-19 Thread grace

hi santhosh,

u can try calling the sql statement for dropping the table (with out
the use of upgrade)at the end of all the functions on database.

regards,

Grace.

On Apr 19, 1:42 am, Santhosh santhoshpun...@gmail.com wrote:
 Hello all,

 I have started creating database for my application.
 It is working well.
 The data is also getting stored.But the issue is that i require
 dropping table, that already exists, every time i run the
 application.

 How is it possible? Please help me in this aspect. Waiting for ur
 reply.

 But one thing i found is that whenever i change the version of the
 database in my code, the table gets dropped. But i would like to know
 whether it is possible to drop table without changing the version
 number of the database.

 Kindly help me regarding this.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://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] Dynamic Layout Question

2010-04-15 Thread grace
hi,

i tried creating the layout dynamically in the  oncreate of the
activity
my code looks some thing like this..

mLinearLayout_no_button = new LinearLayout(this);

mLinearLayout_no_button.setOrientation(1);   ///---1.for
orientation to be vertical


mLinearLayout_no_button.setBackgroundResource(R.drawable.andy);
mEditText_number = new EditText(this);
mEditText_number.setWidth(200);   ///--2.width of the
edit text
mEditText_number.setText(str);
mLinearLayout_no_button.addView(mEditText_number);
mButton_dial = new Button(this);
mButton_dial.setText(Dial!);

mButton_dial.setWidth(100); ///---3.width of the dial
button

mLinearLayout_no_button.addView(mButton_dial);
mButton_dial.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
  performDial();
}

   so,if my layout is in default mode i.e, horizontal then lines 2 3
work.
and if i change my layout to vertical,then am not able to set the
width to any..
both the edit text and button are filling the parent.

why is it like this??
cant we set attributes to the widgets dynamically??
plz help..


thanks in advance,

Grace.
  });


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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Dynamic Layout Question

2010-04-15 Thread grace
thanks..

it worked fine..

On Apr 15, 6:38 pm, social hub shubem...@gmail.com wrote:
 try setting the layoutparams

 .setLayoutParams( new LayoutParams(100,40));

 When you are creating dynamically its best to set the width and height
 always. u can also set to WRAP_CONTENT,WRAP_CONTENT etc.

 On Thu, Apr 15, 2010 at 7:32 AM, grace grace.a...@wipro.com wrote:
  hi,

  i tried creating the layout dynamically in the  oncreate of the
  activity
  my code looks some thing like this..

                 mLinearLayout_no_button = new LinearLayout(this);

                 mLinearLayout_no_button.setOrientation(1);   ///---1.for
  orientation to be vertical

  mLinearLayout_no_button.setBackgroundResource(R.drawable.andy);
                 mEditText_number = new EditText(this);
                 mEditText_number.setWidth(200);           ///--2.width of
  the
  edit text
                 mEditText_number.setText(str);
                 mLinearLayout_no_button.addView(mEditText_number);
                 mButton_dial = new Button(this);
                 mButton_dial.setText(Dial!);

                 mButton_dial.setWidth(100);     ///---3.width of the dial
  button

                 mLinearLayout_no_button.addView(mButton_dial);
                 mButton_dial.setOnClickListener(new View.OnClickListener() {
                     public void onClick(View v) {
                       performDial();
                     }

    so,if my layout is in default mode i.e, horizontal then lines 2 3
  work.
  and if i change my layout to vertical,then am not able to set the
  width to any..
  both the edit text and button are filling the parent.

  why is it like this??
  cant we set attributes to the widgets dynamically??
  plz help..

  thanks in advance,

  Grace.
                   });

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

  To unsubscribe, reply using remove me as the subject.

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

2010-04-14 Thread grace


hi,

i think u can use pending intent for ur purpose..

On Apr 13, 12:52 am, emada.adame emada.ad...@gmail.com wrote:
 So im just getting started with android development and i found my
 first head scratcher. I have an app that when opened makes a on going
 event notification. Then if i hit the home button the app falls from
 view and when i attempt to bring it back via clicking on the ongoing
 event notification its like opening a whole new app, then when i hit
 the back button the ongoing even goes away and it returns me to the
 original app window. How do i get the notification to take me to the
 original rather then opening a new instance.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How to resize the RelativeLayout or any other Layout in Android ?

2010-04-13 Thread grace

yes..u can do it by giving the values to width and height of the
layout.
but this is always not advisable.

On Apr 13, 2:56 pm, javame_android su...@softwebsolutions.com wrote:
 Hi,

 I have a RelativeLayout defined in xml and I call the
 setContentView(R.layout.relativeLAyout) for displaying in Activity.

 Now, if I want to resize this RelativeLayout then can it be done and
 if yes, then can someone let me know how?

 The inner components can be resized relatively to the parent.

 Is this actually possible?

 Regards
 Sunil

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

2010-04-12 Thread grace

ya u can do that..
using methods like public void setHorizontalScrollBarEnabled (boolean
horizontalScrollBarEnabled)
and public void setVerticalScrollBarEnabled (boolean
verticalScrollBarEnabled)


On Apr 12, 5:48 pm, mmkr manutd...@gmail.com wrote:
 Hi all,

     Is it possible to disable the scrollbar in the webview? If
 possible how?

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Writing Current Time

2010-03-31 Thread grace
ya u can use the calendar for that

On Mar 31, 11:45 am, perumal316 perumal...@gmail.com wrote:
 Hi All,

 In my application I will be writing messages to a text file. When I am
 writing the messages I also want to include the time in it.

 How do i write in the current date and time? Must I use Calendar now =
 Calendar.getInstance() ?

 Thanks In Advance,
 Perumal

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: R.id cannot be resolved

2010-03-29 Thread grace
hi,

just verify how is the id to the listview defined in the layout file.
if it is as android:list in the layout,then u need to specify it as
(android.R.id.list) in the findViewById method




On Mar 28, 9:52 pm, mnavlani monishanavl...@gmail.com wrote:
 hello all,
 this is my first attempt at the UI. i tried to create a list view
 using the following code:

 package com.paad.todolist2;

 import java.util.ArrayList;

 import android.app.Activity;
 import android.os.Bundle;
 import android.view.KeyEvent;
 import android.view.View;
 import android.view.View.OnKeyListener;
 import android.widget.ArrayAdapter;
 import android.widget.EditText;
 import android.widget.ListView;

 public class ToDoList2 extends Activity {
     /** Called when the activity is first created. */
  //   @Override
    // public void onCreate(Bundle savedInstanceState) {
    //     super.onCreate(savedInstanceState);
    //     setContentView(R.layout.main);
    // }
     public void onCreate(Bundle savedInstanceState) {
         // Inflate your view
          super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         // Get references to UI widgets
         ListView myListView = (ListView)findViewById(R.id.myListView);
         final EditText myEditText =
 (EditText)findViewById(R.id.myEditText);
         // Create the array list of to do items
         final ArrayListString todoItems = new ArrayListString();
         // Create the array adapter to bind the array to the listview
         final ArrayAdapterString aa;
         aa = new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,todoItems);
         // Bind the array adapter to the listview.
         myListView.setAdapter(aa);
         myEditText.setOnKeyListener(new OnKeyListener() {
                 public boolean onKey1(View v, int keyCode, KeyEvent event) {
                 if (event.getAction() == KeyEvent.ACTION_DOWN)
                 if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER)
                 {
                 todoItems.add(0, myEditText.getText().toString());
                 aa.notifyDataSetChanged();
                 myEditText.setText( );
                 return true;
                 }
                 return false;
                 }

                         @Override
                         public boolean onKey(View arg0, int arg1, KeyEvent 
 arg2) {
                                 // TODO Auto-generated method stub
                                 return false;
                         }
                 });
         }

 }

 but, the line:
 ListView myListView = (ListView)findViewById(R.id.myListView);
 is giving an error :R.id cannot be resolved.

 please help me regarding this.

 regards

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: media player source code

2010-03-29 Thread grace
u can check out in the api demos for one..

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/index.html

On Mar 28, 7:18 am, jana janarthanan jana87@gmail.com wrote:
 Dear sir

            Good morning to all. please send the media player source code to
 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Camera in Portrait on Surface View

2010-03-29 Thread grace

i tried the following method, it worked out for me..
Parameters params = mCamera.getParameters();
params.set(orientation, portrait);
mCamera.setParameters(params);
u need to add this code before calling setPreviewDisplay() in the
public void surfaceCreated(SurfaceHolder holder)..

On Mar 30, 10:30 am, Prasanna Perera prasanna.per...@gmail.com
wrote:
 Hello,

 I tried several things to try to get the camera preview to show up in
 portrait on a SurfaceView.  Nothing worked.  I am testing on a Droid
 that has 2.0.1.  I tried:

 1) forcing the layout to be portrait by:
 this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

 2) using
 Camera.Parameters parameters = camera.getParameters();
 parameters.set(orientation, portrait);
 parameters.setRotation(90);
 camera.setParameters(parameters);

 Is there something else I can try?  If this a bug in Android or the
 phone how can I make sure that this is the case so that I have proof
 to inform the client?

 Thanks,
 Prasanna

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Issue in installing SDK

2010-03-23 Thread grace

hi,

you can give your network settings in (if your using eclipse )
window-preferences-general-network connections

On Mar 22, 11:18 am, StillALearner k.mad...@gmail.com wrote:
 Hi,

  I am trying to install the Android SDK  i get the following error

 XML verification failed 
 forhttp://dl-ssl.google.com/android/repository/repository.xml.
 Error: cvc-elt.1: Cannot find the declaration of element 'HTML'.

 My PC is behind proxy,is that an issue by any chance ? Also there is a
 provision to specify proxy IP and port , i need to specify
 authentication credentials for my proxy too, where to specify the same.

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Accessing Email Addresses

2010-03-23 Thread grace
try using the class ContactsContract.Data for your purpose.

u can refer 
http://developer.android.com/reference/android/provider/ContactsContract.Data.html
from android site.




On Mar 17, 6:40 pm, Maxood maqs...@salsoft.net wrote:
 I have the following code through which i am able to retrieve phone
 numbers. Somehow , i am not able to retrieve email addresses by using
 android.provider.Contacts.People API. Any ideas?

 import android.app.AlertDialog;
 import android.app.ExpandableListActivity;
 import android.content.ContentUris;
 import android.content.Context;
 import android.database.Cursor;
 import android.net.Uri;
 import android.os.Bundle;
 import android.provider.Contacts.People;
 import android.view.View;
 import android.widget.ExpandableListAdapter;
 import android.widget.SimpleCursorTreeAdapter;
 import android.widget.TextView;
 import android.widget.ExpandableListView.OnChildClickListener;

 public class ShowContacts extends ExpandableListActivity implements
 OnChildClickListener {
     private int mGroupIdColumnIndex;

     private String mPhoneNumberProjection[] = new String[] {
             People.Phones._ID, People.NUMBER // CHANGE HERE
     };

     private ExpandableListAdapter mAdapter;

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);

         // Query for people
         Cursor groupCursor = managedQuery(People.CONTENT_URI,
                 new String[] {People._ID, People.NAME}, null, null,
 null);

         // Cache the ID column index
         mGroupIdColumnIndex =
 groupCursor.getColumnIndexOrThrow(People._ID);

         // Set up our adapter
         mAdapter = new MyExpandableListAdapter(groupCursor,
                 this,
                 android.R.layout.simple_expandable_list_item_1,
                 android.R.layout.simple_expandable_list_item_1,
                 new String[] {People.NAME}, // Name for group layouts
                 new int[] {android.R.id.text1},
                 new String[] {People.NUMBER}, // AND CHANGE HERE
                 new int[] {android.R.id.text1});
         setListAdapter(mAdapter);
     }

     public class MyExpandableListAdapter extends
 SimpleCursorTreeAdapter {

         public MyExpandableListAdapter(Cursor cursor, Context context,
 int groupLayout,
                 int childLayout, String[] groupFrom, int[] groupTo,
 String[] childrenFrom,
                 int[] childrenTo) {
             super(context, cursor, groupLayout, groupFrom, groupTo,
 childLayout, childrenFrom,
                     childrenTo);
         }

         @Override
         protected Cursor getChildrenCursor(Cursor groupCursor) {
             // Given the group, we return a cursor for all the
 children within that group

             // Return a cursor that points to this contact's phone
 numbers
             Uri.Builder builder = People.CONTENT_URI.buildUpon();

             ContentUris.appendId(builder,
 groupCursor.getLong(mGroupIdColumnIndex));

 builder.appendEncodedPath(People.Phones.CONTENT_DIRECTORY);
             Uri phoneNumbersUri = builder.build();

             return managedQuery(phoneNumbersUri,
 mPhoneNumberProjection, null, null, null);
         }
     }

     @Override
      public boolean onChildClick(android.widget.ExpandableListView
 parent,
                View v, int groupPosition, int childPosition, long id)
 {
           AlertDialog dialog = new
 AlertDialog.Builder(ShowContacts.this)
                     .setMessage(((TextView) v).getText().toString())
                     .setPositiveButton(OK, null).create();
           dialog.show();
           return true;
      }

 }

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: I want to get image from the camera by mCamera.setPreviewCallback(mPreviewCallback);

2010-03-23 Thread grace
probably u can click a picture and call like this,

preview.camera.takePicture(shutterCallback, rawCallback,
jpegCallback); in the onPreviewFrame()..
registering with callBacks shutterCallback,rawCallback,,jpegCallback.

for eq.

ShutterCallback shutterCallback = new ShutterCallback() {
public void onShutter() {
Log.d(TAG, onShutter'd);
}
};

/** Handles data for raw picture */
PictureCallback rawCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
Log.d(TAG, onPictureTaken - raw);
}
};

/** Handles data for jpeg picture */
PictureCallback jpegCallback = new PictureCallback() {
public void onPictureTaken(byte[] data, Camera camera) {
FileOutputStream outStream = null;
try {
// write to local sandbox file system
//  outStream =
CameraDemo.this.openFileOutput(String.format(%d.jpg,
System.currentTimeMillis()), 0);
// Or write to sdcard
outStream = new 
FileOutputStream(String.format(/sdcard/%d.jpg,
System.currentTimeMillis()));
outStream.write(data);
outStream.close();
Log.d(TAG, onPictureTaken - wrote bytes:  + 
data.length);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
}
Log.d(TAG, onPictureTaken - jpeg);
}
};



On Mar 22, 12:33 pm, bright wang wangyl...@gmail.com wrote:
 the Code Snippet following :

 mCamera =Camera.open();

 mCamera.setPreviewCallback(mPreviewCallback);

 Camera.PreviewCallback mPreviewCallback = newCamera.PreviewCallback()
 {

                 @Override
                 public void onPreviewFrame(byte[] data,Cameracamera) {
                                 Log.d(TAG, onPreviewFrame! data is  + (data 
 == null ? null! :
 ok!));

                                 Here, i want to convert data to image/
 bitmap, how to do ?

                                 }
                         }
                 }

         };
 --
 Best Regards!

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] camera service problem

2010-03-18 Thread grace
hi,

i have tried the following code and it shows me strange behavior..

http://groups.google.com/group/android-developers/browse_thread/thread/d8587b4b2139a85/809ebdafc456be32?lnk=gstq=camera+overlay#809ebdafc456be32

when i run it for the first time it shows an exception saying failed
to connect to the camera service
but works fine for the second run..
what could be the possible reason for this??
pls help..


thanks in advance,

Grace.

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: SQLite onUpgrade

2010-03-17 Thread grace

onUpgrade is called when u have installed using adb..
now when u load the app, the new version is already upgraded so it
will not again call the onUpgrade again..
in short this function is called when there are some changes made to
the data schema,droping tables,altering ables etc.


On Mar 12, 12:19 am, xdm40 poiuytr...@gmail.com wrote:
 For some reason, my onUpgrade method is not getting called when it
 should.

 I have incremented both the application version and the database
 version.  When I re-install the application on the emulator using:
 adb install -r app.apk

 It installs the newer version, but when I load the application,
 onUpgrade is not called.

 Any ideas?  Do I need to upgrade the app a different way instead of
 using adb install -r?

 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 trace contentProvider

2010-03-16 Thread grace

hi,
as we can see this query is an abstract method and the implementation
of this method will be defined in the classes that extend this
contentprovider class.

you can check out different provider implementations for the
definition of this method.


On Mar 17, 7:24 am, a a harvey.a...@gmail.com wrote:
 Dear All,

 I am now reading contentProvider.java( under the 
 base/core/java/android/content)

 Ln 127 looks following:

         public Cursor query(Uri uri, String[] projection,
                 String selection, String[] selectionArgs, String sortOrder) {
             enforceReadPermission(uri);
             return ContentProvider.this.query(uri, projection, selection,
                     selectionArgs, sortOrder);
         }

 I'm really confused about that contentProvider invoke this.query()

 Ln 444
     public abstract Cursor query(Uri uri, String[] projection,
             String selection, String[] selectionArgs, String sortOrder);

 Ln444 is Nothing to do the query(), it seams this is only declare,
 not yet implement.

 where is it implement?  How can i find it? anyone can tell 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 to disable the menuitem

2010-03-16 Thread grace

hi,

based on your logic..
may u can try like this
menu.getItem(ItemID).setEnabled(false);
and if u dont want the item to be visible u cant set the visibility
accordingly..

On Mar 17, 5:03 am, David Toledo dtole...@gmail.com wrote:
 Hi All

               How to disable the menuitem in android in execution time.
 Example : Button Next and Back. When is in the last record, the Next menu is
 disable

 Thanks
 David

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


[android-developers] Re: Numbers aligned to the right in EditText

2010-03-16 Thread grace
u can set the gravity of the view(edittext ) to right.

On Mar 16, 2:17 pm, Marek Urbaniak marek.urban...@gmail.com wrote:
 Is it possible to align text in the EditText widget to the right? I do
 not see any such a property. Am I missing it or maybe there is no such
 an option.

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

2010-03-16 Thread grace
hi,

define ur layout with an image view and set the src to some image
drawable


On Mar 16, 1:25 pm, massimo maxloveg...@gmail.com wrote:
 Hi,
 I would like to put an image into android (I'm using Eclipse).
 How I need to procede?

 I have make a new project with a class that have the base code, after
 what I need to write?

 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


[android-developers] Re: How to use phone internal memory to store user data......

2010-03-11 Thread grace
absolutely..
if you store your data with in your application package then other
applications can't access that data.
you can go for a content provider if you want to share data between
applications.

On Mar 11, 11:19 am, Girish girishprasa...@gmail.com wrote:
 Hi all..
           I want to access phone internal memory to store some data,
 similar to that of sdcard. but the problem is that the data written by
 one application  is not accessed by other applications. because of uid
 mismatches.

 any solution ?

 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: Custom content provider(java.lang.VerifyError)

2010-03-11 Thread grace
hi,

the idea of moving the content provider on to some common library
seems quite reasonable.
but i have a doubt whether all the content providers (like
contacts,etc..) are implemented in the same way..
and moreover we do import them in our applications right?
can somebody shed some light on these please..




On Mar 11, 9:53 pm, Makas Tzavellas makas.tzavel...@gmail.com wrote:
 The error stack trace indicates that you are using
 com.mypack.android.mycontentprovider.MyProvider class directly in
 com.mypack.android.appwidgetsettingstest.TestActivity where I assume
 your second application is located.

 You *cannot* import classes or reference classes that does not belong
 to your application classpath. If you are trying to reference some
 public static fields. It would be better that you separate them into a
 common library that can be shared by both your content provider
 application and your other applications. As both applications run in
 their own VM, hence they have their own classloaders.

 You will need to use intents and ContentResolver to communicate with
 your ContentProvider. It is not possible to reference the content
 provider implementation directly.

 On Mar 9, 8:28 pm, Musafir musafir4frie...@gmail.com wrote:

  hi friends,
  i created a custom content provider in one android application
  following all guidelines from developers.android.com and an activity
  in same application with an edittext and a button.when ever i enter
  any integer value and click on the button ,using custom content
  provider am inserting value to a sqlite database...this worked fine.
  but when i created another application and tried to access the custom
  content provider by importing custom provider class am getting the
  following exception:

  W/dalvikvm(  418): VFY: unable to resolve static field 29
  (CONTENT_URI) in Lcom/
  mypack/android/mycontentprovider/MyProvider;
  W/dalvikvm(  418): VFY:  rejecting opcode 0x62 at 0x0047
  W/dalvikvm(  418): VFY:  rejected Lcom/mypack/android/
  appwidgetsettingstest/Test
  Activity;.onCreate (Landroid/os/Bundle;)V
  W/dalvikvm(  418): Verifier rejected class Lcom/mypack/android/
  appwidgetsettings
  test/TestActivity;
  W/dalvikvm(  418): Class init failed in newInstance call (Lcom/mypack/
  android/ap
  pwidgetsettingstest/TestActivity;)
  D/AndroidRuntime(  418): Shutting down VM
  W/dalvikvm(  418): threadid=3: thread exiting with uncaught exception
  (group=0x4
  001aa28)
  E/AndroidRuntime(  418): Uncaught handler: thread main exiting due to
  uncaught e
  xception
  E/AndroidRuntime(  418): java.lang.VerifyError:
  com.mypack.android.appwidgetsett
  ingstest.TestActivity
  E/AndroidRuntime(  418):        at
  java.lang.Class.newInstanceImpl(Native Method
  )
  E/AndroidRuntime(  418):        at
  java.lang.Class.newInstance(Class.java:1472)
  E/AndroidRuntime(  418):        at
  android.app.Instrumentation.newActivity(Instr
  umentation.java:1097)
  E/AndroidRuntime(  418):        at
  android.app.ActivityThread.performLaunchActiv
  ity(ActivityThread.java:2316)
  E/AndroidRuntime(  418):        at
  android.app.ActivityThread.handleLaunchActivi
  ty(ActivityThread.java:2417)
  E/AndroidRuntime(  418):        at android.app.ActivityThread.access
  $2100(Activi
  tyThread.java:116)
  E/AndroidRuntime(  418):        at android.app.ActivityThread
  $H.handleMessage(Ac
  tivityThread.java:1794)
  E/AndroidRuntime(  418):        at
  android.os.Handler.dispatchMessage(Handler.ja
  va:99)
  E/AndroidRuntime(  418):        at android.os.Looper.loop(Looper.java:
  123)
  E/AndroidRuntime(  418):        at
  android.app.ActivityThread.main(ActivityThrea
  d.java:4203)
  E/AndroidRuntime(  418):        at
  java.lang.reflect.Method.invokeNative(Native
  Method)
  E/AndroidRuntime(  418):        at
  java.lang.reflect.Method.invoke(Method.java:5
  21)
  E/AndroidRuntime(  418):        at com.android.internal.os.ZygoteInit
  $MethodAndA
  rgsCaller.run(ZygoteInit.java:791)
  E/AndroidRuntime(  418):        at
  com.android.internal.os.ZygoteInit.main(Zygot
  eInit.java:549)
  E/AndroidRuntime(  418):        at
  dalvik.system.NativeStart.main(Native Method)

  Help me plz ..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] Re: Custom content provider(java.lang.VerifyError)

2010-03-09 Thread grace
hi,
i have also got the same problem.

i have made a jar file of the content provider and imported in the
second application that is using this content provider.
don't know whether this is the correct approach,but things worked out
fine for me.

so u can also try it out ..

On Mar 9, 5:28 pm, Musafir musafir4frie...@gmail.com wrote:
 hi friends,
 i created a custom content provider in one android application
 following all guidelines from developers.android.com and an activity
 in same application with an edittext and a button.when ever i enter
 any integer value and click on the button ,using custom content
 provider am inserting value to a sqlite database...this worked fine.
 but when i created another application and tried to access the custom
 content provider by importing custom provider class am getting the
 following exception:

 W/dalvikvm(  418): VFY: unable to resolve static field 29
 (CONTENT_URI) in Lcom/
 mypack/android/mycontentprovider/MyProvider;
 W/dalvikvm(  418): VFY:  rejecting opcode 0x62 at 0x0047
 W/dalvikvm(  418): VFY:  rejected Lcom/mypack/android/
 appwidgetsettingstest/Test
 Activity;.onCreate (Landroid/os/Bundle;)V
 W/dalvikvm(  418): Verifier rejected class Lcom/mypack/android/
 appwidgetsettings
 test/TestActivity;
 W/dalvikvm(  418): Class init failed in newInstance call (Lcom/mypack/
 android/ap
 pwidgetsettingstest/TestActivity;)
 D/AndroidRuntime(  418): Shutting down VM
 W/dalvikvm(  418): threadid=3: thread exiting with uncaught exception
 (group=0x4
 001aa28)
 E/AndroidRuntime(  418): Uncaught handler: thread main exiting due to
 uncaught e
 xception
 E/AndroidRuntime(  418): java.lang.VerifyError:
 com.mypack.android.appwidgetsett
 ingstest.TestActivity
 E/AndroidRuntime(  418):        at
 java.lang.Class.newInstanceImpl(Native Method
 )
 E/AndroidRuntime(  418):        at
 java.lang.Class.newInstance(Class.java:1472)
 E/AndroidRuntime(  418):        at
 android.app.Instrumentation.newActivity(Instr
 umentation.java:1097)
 E/AndroidRuntime(  418):        at
 android.app.ActivityThread.performLaunchActiv
 ity(ActivityThread.java:2316)
 E/AndroidRuntime(  418):        at
 android.app.ActivityThread.handleLaunchActivi
 ty(ActivityThread.java:2417)
 E/AndroidRuntime(  418):        at android.app.ActivityThread.access
 $2100(Activi
 tyThread.java:116)
 E/AndroidRuntime(  418):        at android.app.ActivityThread
 $H.handleMessage(Ac
 tivityThread.java:1794)
 E/AndroidRuntime(  418):        at
 android.os.Handler.dispatchMessage(Handler.ja
 va:99)
 E/AndroidRuntime(  418):        at android.os.Looper.loop(Looper.java:
 123)
 E/AndroidRuntime(  418):        at
 android.app.ActivityThread.main(ActivityThrea
 d.java:4203)
 E/AndroidRuntime(  418):        at
 java.lang.reflect.Method.invokeNative(Native
 Method)
 E/AndroidRuntime(  418):        at
 java.lang.reflect.Method.invoke(Method.java:5
 21)
 E/AndroidRuntime(  418):        at com.android.internal.os.ZygoteInit
 $MethodAndA
 rgsCaller.run(ZygoteInit.java:791)
 E/AndroidRuntime(  418):        at
 com.android.internal.os.ZygoteInit.main(Zygot
 eInit.java:549)
 E/AndroidRuntime(  418):        at
 dalvik.system.NativeStart.main(Native Method)

 Help me plz ..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] Re: ListView, SimpleAdapter and Bitmaps - bug ?

2010-03-08 Thread grace
hi,
u cant bind images using simple adapter..
u need to create one custom adapter for that..

here is a simple example of custom adapter..

http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/

now u can try add ur image along with 2 text views to your adapter






On Mar 7, 9:26 pm, Marco Alexander Schmitz
marco.alexander.schm...@googlemail.com wrote:
 Hi,

 I got my ListView which shows one ImageView and two TextViews in every
 row.

 Now I want to load the images NOT from my ressources (as in many
 examples) but from the internet.

 Somehow this doesnt work with the SimpleAdapter. Is this a bug?

 Here comes my code:

 ---

 MEINUNGEN.XML:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:orientation=vertical android:layout_width=fill_parent
 android:layout_height=fill_parent android:background=@drawable/bg

 ListView android:id=@+id/android:list
 android:layout_width=fill_parent
 android:layout_height=fill_parent android:cacheColorHint=#
 android:divider=@drawable/divider android:dividerHeight=1px/

 /LinearLayout

 ---

 MEINUNGEN_LIST_ROW.XML:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:orientation=horizontal android:paddingTop=3dip
 android:paddingBottom=3dip android:paddingLeft=3dip

 ImageView android:id=@+id/icon android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:layout_gravity=center_vertical
 android:src=@drawable/wolfgangroth /

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
 android:layout_width=fill_parent android:layout_height=fill_parent
 android:orientation=vertical

 TextView android:id=@+id/name android:text=Thomas Öchsner
 android:textSize=10px android:gravity=center_vertical
 android:paddingLeft=6dip android:paddingTop=6dip
 android:textColor=#cc android:layout_width=fill_parent
 android:layout_height=wrap_content/

 TextView android:id=@+id/content android:text=Dämpfer für von der
 Leyen
 android:textSize=16px android:gravity=center_vertical
 android:paddingLeft=6dip android:paddingTop=6dip
 android:textColor=#ee android:layout_width=fill_parent
 android:layout_height=wrap_content/

 /LinearLayout

 /LinearLayout

 ---

 public class MeinungenListActivity extends ListActivity {

 private static final String ICON = icon;
 private static final String NAME = name;
 private static final String CONTENT = content;
 private static final String INTENT = intent;
 private static final String[] PARAM = { ICON, NAME, CONTENT };

 private ListMapString, Object list = new ArrayListMapString,
 Object();

 public void onCreate(Bundle icicle) {
 super.onCreate(icicle);

 setContentView(R.layout.meinungen);

 addItem(list, R.drawable.thomasoechsner, Thomas Öchsner,
 Dämpfer für von der Leyen, new Intent(this,
 MeinungenListActivity.class));

 addItem(list, R.drawable.marcbeise, Marc Beise,
 Die Banker ducken sich schon wieder weg, new Intent(this,
 MeinungenListActivity.class));

 addItem(list, R.drawable.wolfgangroth, Wolfgang Roth,
 Röttgen setzt auf Angriff, new Intent(this,
 MeinungenListActivity.class));

 addItem(list, R.drawable.charlottefrank, Charlotte Frank,
 Sorge um die Vorsorge, new Intent(this,
 MeinungenListActivity.class));

 SimpleAdapter notes = new SimpleAdapter(this, list,
 R.layout.meinungen_list_row, PARAM, new int[] { R.id.icon, R.id.name,
 R.id.content });
 setListAdapter(notes);

 }

 public void addItem(ListMapString, Object data, int icon, String
 name, String content, Intent intent) {
 MapString, Object map = new HashMapString, Object();
 map.put(ICON, icon);
 map.put(NAME, name);
 map.put(CONTENT, content);
 map.put(INTENT, intent);
 data.add(map);

 }

 ---

 THIS CODE IS THE PROBLEM (please look at here_comes_it):

 public void addItem(ListMapString, Object data, Bitmap
 here_comes_it, String name, String content, Intent intent) {
 MapString, Object map = new HashMapString, Object();
 map.put(ICON, here_comes_it);
 map.put(NAME, name);
 map.put(CONTENT, content);
 map.put(INTENT, intent);
 data.add(map);

 }

 try {
 URL aURL = new URL(http://www.anddev.org/images/avatars/
 6748766294aa15a585d1fd.jpg);
 URLConnection conn = aURL.openConnection();
 conn.connect();
 InputStream is = conn.getInputStream();
 Bitmap here_comes_it = BitmapFactory.decodeStream(is);
 is.close();

 addItem(list, here_comes_it, Daniela Kuhr, Angst vor der
 Genknolle, new Intent(this, MeinungenListActivity.class));} catch (Exception 
 e) {

 e.printStackTrace();

 }

 

[android-developers] Re: Regarding ListView

2010-03-08 Thread grace
u can change it in the layout file..
try changing the height of the list item, according to the content you
are trying to display



On Mar 4, 3:52 pm, vinoth vinothso...@gmail.com wrote:
 How to increase the listview item size? When the text to be displayed
 is longer, it gets clubbed and could not see the full 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] Re: Runtime Language change support.

2010-03-08 Thread grace
exactly..
u can have different xml  files for different languages and can try
your application changing the locale at start up or at run time.

u can go through the documentation of localization of strings in
android site for more information.

http://developer.android.com/guide/topics/resources/localization.html



On Mar 8, 7:43 pm, Alok Kulkarni kulsu...@gmail.com wrote:
 Hi guys,
 I m developing an Android App which communicated with a server.
 User can select a language of his choice at startup or during the App
 execution lifetime.After selecting the lang, the corresponding XML file is
 downloaded from server according to language which will map the Values of
 Application strings accoding to that language.Can i do something like
 replacing the default Strings.xml which contains English names(Say by
 default) to the language selected by user.Better will be adding an XML file
 per language and referring it runtime directly.
 Thanks,
 Alok.

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


[android-developers] getting java.lang.NoClassDefFoundError

2010-02-23 Thread grace
hi,

I have made a content provider and want to use it from other
application.
I am able to access the overridden functions of content provider,but
the problem comes when i want to access the user defined functions of
the content provider.
there is not problem while installing the app on emulator,but when i
run it
a java.lang.NoClassDefFoundError exception is thrown..

can somebody help me how to resolve it??


Thanks in advance,

grace.

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

2010-02-22 Thread grace
hi,
try using ..
public void setImageResource (int resId)

this works same as and:src


On Feb 23, 7:39 am, HBBob hbhoff...@gmail.com wrote:
 I have a simply ListView, I want to set the ImageView android:src
 based on the value of
 TextView android:id=@+id/line_1. How can I do this? Thanks in
 advance.

   ImageView
         android:id=@android:id/android:list
         android:layout_width=wrap_content
         android:layout_height=fill_parent
         android:layout_marginRight=6dip
         android:src=@drawable/icon /
     LinearLayout
         android:orientation=vertical
         android:layout_width=0dip
         android:layout_weight=1
         android:layout_height=fill_parent

         TextView
             android:id=@+id/line_1
             android:layout_width=fill_parent
             android:layout_height=20dip
             android:textSize=15sp
             android:layout_weight=1
             android:gravity=center_vertical
         /..

 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 do you do the equivalent of hitting the home button in s/w

2010-01-31 Thread grace
hi,
guess this can solve ur problem

create an intent with { action=android.app.action.MAIN,
category=android.app.category.HOME }
this will launch the home screen(like when u click the home button)

going through documentation of android could be of even more help

On Jan 29, 3:02 am, sdphil phil.pellouch...@gmail.com wrote:
 subject says it all.  i want to do the equivalent of hitting the
 home button programmatically.

 tia.

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


[android-developers] Re: How to disable user interaction arising from a long press to an EditText

2010-01-19 Thread grace
hi,

add android:longClickable=false attribute to your EditText tag in
the layout xml file.
then it will not show any options on long press

On Jan 19, 5:35 pm, MMC2 m...@mmc2.com.au wrote:
 A long press on an EditText brings up a menu of options that the user
 can select. The only messages or options that I want users of my apps
 to get, I want to come from me via the app. How do you disable this so
 that nothing happens when you long press the EditText? What other
 situations like this should I be aware of?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: EditText := size of the text content

2010-01-17 Thread grace
hi

add android:gravity=center android:maxLength=3 into ur layout file
in the  edit text tag

On Jan 17, 8:20 am, Helloween parin.choganw...@gmail.com wrote:
 Hi All,

 I am beginner in Android development. How do I restrict the size of
 text ( e.g. I just want 3 character in edit text)?
 Also How do I align text in center within Edittext?

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

[android-developers] listitem listener is not being called

2010-01-15 Thread grace
hi,

i've tried displaying a simple list using listactivity.
it is working fine but the problem is with the listener.
when i click on ant list item with mouse ,the onListItemClick()
listener is not called..
strangely this is working fine when i click the key-upkey-down keys.


can anybody tell what could hav gone wrong?why is muouse click not
working???

/my code goes like this

public class NoteList extends ListActivity{
ListString feeds = new ArrayListString(10/*messages.size()*/);

String [] path={http://10.200.207.85:8080/android_news.xml,http://
10.200.207.85:8080/rss.xml};
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.notes_list);
setTitle(RssReader/ListSubScriptions);
  fillList();



}
public void fillList()
{
feeds.add(Android_news);
feeds.add(MS-US-Local);
this.setListAdapter(new ArrayAdapterString(this,
R.layout.row,feeds));

}
@Override
protected void onListItemClick(ListView l, View v, int position,
long id) {
super.onListItemClick(l, v, position, id);
String data = path[position];
NoteEditLogic n=new NoteEditLogic(getContentResolver());
n.save1(null, data);
finish();

}
thanx 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] Re: bind to a service

2010-01-12 Thread grace
from ur code what i understand is that u have not defined the class
that implements servive methods(like onBind() etc..)

for ur code to work u need to define one class tha extends Service
class and that return an IBinder object from the onBind() function
(which acts as a proxy to the service object)

this IBinder object is passed to the onServiceConnected() as in ur
code

 public void onServiceConnected(ComponentName name,
 IBinder service) {
 Log.e(tag,connected);

 }

for beeter understanding check out the sample on the implementation of
the service calss providede in

android-sdk-windows-1.6_r1\platforms\android-1.5\samples\ApiDemos\src
\com\example\android\apis\app\LocalService.java

note:you can find this out in ur present working sdk version

On Jan 12, 4:40 am, dane131 orestis...@gmail.com wrote:
 hallo,

 I have made an activity that simply binds to a service,here is my
 code :

 public class LaunchApp extends Activity {
     /** Called when the activity is first created. */
         Button dial;

                 �...@override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         Toast.makeText(this, text, Toast.LENGTH_LONG).show();
         dial=(Button)findViewById(R.id.call_buddy);
         dial.setOnClickListener(new OnClickListener() {

                 @Override
                         public void onClick(View v) {
                                 launch_app();

                         }

                         private void launch_app() {

                                 Intent launch_app=new Intent();
                                 launch_app.setComponent(new ComponentName
 (aexp.share.sharedapp1,aexp.share.sharedapp1.Service1));
                                 
 bindService(launch_app,mconnection,Context.BIND_AUTO_CREATE);

                         }
                 });

     }
                  ServiceConnection mconnection=new ServiceConnection(){

                                 @Override
                                 public void onServiceConnected(ComponentName 
 name,
                                                 IBinder service) {
                                         Log.e(tag,connected);

                                 }

                                 @Override
                                 public void 
 onServiceDisconnected(ComponentName name) {
                                         Log.e(tag,disconnected);

                                 }};

 }

 i just want to get a message in the log when my activity connects
 succesfully or disconnects from the service.The above code does not do
 this and the messages are never written to the Log,can you give me
 some fixes for this code?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: bind to a service

2010-01-12 Thread grace
from the code what i understand is you didnot define the class that
implements the service methods(api s like onbind() ..etc)
for this code to work u need to return one Ibinder object from the
onBind()..( which acts as proxy to the service object)
this IBinder object is passed to the onServiceConnected()..as in ur
code.

 public void onServiceConnected(ComponentName name,
 IBinder service) {
 Log.e(tag,connected);

 }

for better understanding refer the example given on the service class
implementation in
sdk/platforms/android-version/samples/ApiDemos/src/com/example/
android/apis/app/LocalService.java

note:sdk/platforms/android-version  path on the sdk version  you
are using till platforms..


On Jan 12, 4:40 am, dane131 orestis...@gmail.com wrote:
 hallo,

 I have made an activity that simply binds to a service,here is my
 code :

 public class LaunchApp extends Activity {
     /** Called when the activity is first created. */
         Button dial;

                 �...@override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         Toast.makeText(this, text, Toast.LENGTH_LONG).show();
         dial=(Button)findViewById(R.id.call_buddy);
         dial.setOnClickListener(new OnClickListener() {

                 @Override
                         public void onClick(View v) {
                                 launch_app();

                         }

                         private void launch_app() {

                                 Intent launch_app=new Intent();
                                 launch_app.setComponent(new ComponentName
 (aexp.share.sharedapp1,aexp.share.sharedapp1.Service1));
                                 
 bindService(launch_app,mconnection,Context.BIND_AUTO_CREATE);

                         }
                 });

     }
                  ServiceConnection mconnection=new ServiceConnection(){

                                 @Override
                                 public void onServiceConnected(ComponentName 
 name,
                                                 IBinder service) {
                                         Log.e(tag,connected);

                                 }

                                 @Override
                                 public void 
 onServiceDisconnected(ComponentName name) {
                                         Log.e(tag,disconnected);

                                 }};

 }

 i just want to get a message in the log when my activity connects
 succesfully or disconnects from the service.The above code does not do
 this and the messages are never written to the Log,can you give me
 some fixes for this code?
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] problem with onListItemClick()

2010-01-12 Thread grace
i've tried displaying a simple list in ListActivity,it is working fine
but the problem i got is with the listener..
when i click on any of the list item using the mouse onListItemClick()
is not being called,
strangely it is working fine with the key-upkey-down keys.

can anybody tell what could be the fault???

this is my sample code

public class NoteList extends ListActivity{
ListString feeds = new ArrayListString(10/*messages.size()*/);

String [] path={http://10.200.207.85:8080/android_news.xml,http://
10.200.207.85:8080/rss.xml};
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.notes_list);
fillList();
   }
public void fillList()
{
feeds.add(Android_news);
feeds.add(MS-US-Local);
this.setListAdapter(new ArrayAdapterString(this,
R.layout.row,feeds));

}
@Override
protected void onListItemClick(ListView l, View v, int position,
long id) {
super.onListItemClick(l, v, position, id);
String data = path[position];
NoteEditLogic n=new NoteEditLogic(getContentResolver());
n.save1(null, data);
finish();

}
}
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] Re: I am a german market developer. How can I see the english comments to my program?

2010-01-12 Thread grace
can be more elobarate on ur question pls..

is it like the msgs ur displaying in ur programme are displayed in
german..
if it is so,then u shud go for localisation of strings i guess

On Jan 8, 8:47 pm, Martin google-gro...@digle.de wrote:
 Hi!

 I am a german market developer. How can I see the english comments to
 my program? I just see the german ones.

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

2009-07-03 Thread Grace Kloba
shouldOverrideUrlLoading is only called if the loading request is triggered
by a user action, like click on a link. It is not called for
webview.loadUrl.
thanks,
Grace


On Thu, Jul 2, 2009 at 5:58 AM, ioRek jeremy.vuiller...@gmail.com wrote:


 Hi everybody,
 I have some issues in intercepting resource or url and cancel them.

 here is an exemple :
 I have a webview.loadUrl(http://www.anyurl);   but the server
 actually redirect me on an other url.

 How to cancel this redirect ?

 I can see the new url in onLoadResource but I can't block it at this
 state

 The shouldOverrideUrlLoading could be great but it's not call in this
 case .

 I read a lot of stuff about shouldoverride and I saw there are some
 bugs  so I would be happy to have some help on this.

 Regards,
 Jeremy

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Can i set a different Browser Homepage through code?

2009-06-15 Thread Grace Kloba
No.
thanks,
Grace


On Sun, Jun 14, 2009 at 10:57 PM, Ramanadh ramyn...@gmail.com wrote:


 Can we set Homepage from javascript?

 On Jun 13, 6:45 am, Dianne Hackborn hack...@android.com wrote:
  I am almost positive you can't.  I sure hope you can't. :)
 
  On Fri, Jun 12, 2009 at 5:15 AM, Android Users androidmai...@gmail.com
 wrote:
 
   Hi all,
   Can i set a different Browser Homepage through code? If so then how?
 Need
   info about this urgently.
 
   Thanks in advance.
 
  --
  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
-~--~~~~--~~--~--~---



[android-developers] Re: npapi plugin failed to load in android webview

2009-06-14 Thread Grace Kloba
The problem is your plugin path.
The path , /android_asset/web/, is not a valid file system path.

One thing you can try is to copy the plugin to your data dir in the
onCreate() and set the plugin path to your data dir.

thanks,
Grace


On Wed, Jun 10, 2009 at 9:30 PM, MIND GAME lovekhanna04...@gmail.comwrote:


 i am trying to load a npapi plugin using android api - webview.
 code is
webview.getSettings().setJavaScriptEnabled(true);
webview .getSettings().setPluginsEnabled(true);
webview.getSettings().setPluginsPath(/android_asset/web/);
System.out.println(Default plugin path
 is :+webview .getSettings().getPluginsPath());
webview.loadUrl(file:///android_asset/web/test.html);

 i m using   simple example  npapi plugin.

 code for plugin is given below and i place this plugin inside my
 application's asset folder. and set pulgin path like this --
 webview.getSettings().setPluginsPath
 (/android_asset/web/);

 but plugin is failing to load...

 #include stdio.h
 #include string.h
 #if defined(OS_Darwin)
 #include Webkit/npapi.h
 #include WebKit/npfunctions.h
 #include WebKit/npruntime.h
 #define OSCALL
 #endif
 #if XULRUNNER_SDK
 #include npapi.h
 #include npupp.h
 #include npruntime.h
 #elif _WINDOWS /* WebKit SDK on Windows */
 #ifndef PLATFORM
 #define PLATFORM(x) defined(x)
 #endif
 #include npfunctions.h
 #ifndef OSCALL
 #define OSCALL WINAPI
 #endif
 #endif
 char** charArray = NULL;
 static NPObject *so  = NULL;
 static NPNetscapeFuncs *npnfuncs = NULL;
 /* NPN */
 static void logmsg(const char *msg) {
 #ifndef _WINDOWS
fputs(msg, stderr);
 #else
static FILE *out = fopen(\\npsimple.log, a);
fputs(msg, out);
fclose(out);
 #endif
 }

 static bool
 hasMethod(NPObject* obj, NPIdentifier methodName) {
logmsg(npsimple: hasMethod\n);
return true;
 }

 static bool
 invokeDefault(NPObject *obj, const NPVariant *args, uint32_t
 argCount,
 NPVariant *result) {
logmsg(npsimple: invokeDefault\n);
result-type = NPVariantType_Int32;
result-value.intValue = 42;
return true;
 }

 static bool
 invoke(NPObject* obj, NPIdentifier methodName, const NPVariant *args,
 uint32_t argCount, NPVariant *result) {
logmsg(npsimple: invoke\n);
invokeDefault(obj,args,argCount,result);
return true;
 }

 static bool
 hasProperty(NPObject *obj, NPIdentifier propertyName) {
logmsg(npsimple: hasProperty\n);
return false;
 }

 static bool
 getProperty(NPObject *obj, NPIdentifier propertyName, NPVariant
 *result) {
logmsg(npsimple: getProperty\n);
return false;
 }

 static bool enumerate(NPObject *npobj, NPIdentifier **value,
 uint32_t *count){
 }

 static NPObject* allocate(NPP npp,NPClass* theClass){
logmsg(IN ALLOCATE\n);
NPObject* npObj = (NPObject*)malloc(sizeof(NPObject));
return npObj;
 }

 static void deallocate(NPObject* obj){
logmsg(IN DEALLOCATE\n);
free(obj);
 }

 static NPClass npcRefObject = {
NP_CLASS_STRUCT_VERSION,
allocate,
deallocate,
NULL,
hasMethod,
invoke,
invokeDefault,
hasProperty,
getProperty,
NULL,
NULL,enumerate,
 };

 /* NPP */
 static NPError
 nevv(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
 char *argn[], char *argv[], NPSavedData *saved) {
logmsg(npsimple: new\n);
return NPERR_NO_ERROR;
 }

 static NPError
 destroy(NPP instance, NPSavedData **save) {
if(so)
npnfuncs-releaseobject(so);
so = NULL;
logmsg(npsimple: destroy\n);
return NPERR_NO_ERROR;
 }

 static NPError
 getValue(NPP instance, NPPVariable variable, void *value) {
switch(variable) {
default:
logmsg(npsimple: getvalue - default\n);
return NPERR_GENERIC_ERROR;
case NPPVpluginNameString:
logmsg(npsimple: getvalue - name string\n);
*((char **)value) = AplixFooPlugin;
break;
case NPPVpluginDescriptionString:
logmsg(npsimple: getvalue - description string\n);
*((char **)value) = a href=\http://
 www.aplix.co.jp/
 \AplixFooPlugin/a plugin.;
break;
case NPPVpluginScriptableNPObject:
logmsg(npsimple: getvalue - scriptable object\n);
if(!so)
so = npnfuncs-createobject(instance,
 npcRefObject);
npnfuncs-retainobject(so);
*(NPObject **)value = so;
break;
 #ifdef XULRUNNER_SDK
case NPPVpluginNeedsXEmbed:
logmsg(npsimple: getvalue - xembed\n);
/* *((PRBool *)value) = PR_FALSE; */
*((NPBool *)value) = FALSE;
break;
 #endif
}
return NPERR_NO_ERROR;
 }

 static NPError /* expected by Safari on Darwin */
 handleEvent

[android-developers] Re: Does cupcake support Webview with Gears ?

2009-04-14 Thread Grace Kloba

Still only for browser.

Grace

On Monday, April 13, 2009, Kumaravel Kandasami
kumaravel.kandas...@gmail.com wrote:
 Does  anyone know whether Android 1.5 SDK supports Gears supported Apps ?

 Currently release 1.1, supports Gears only on the browser application and we 
 are not able to implement Gears application on WebView.

 Thanks

 Kumar    _/|\_
 www.saisk.com
 ku...@saisk.com
 making a profound difference with knowledge and creativity...

 


-- 
thanks,
Grace

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

2009-01-25 Thread Grace Kloba

HTMLViewer should be under packages/apps/HtmlViewer.

On Mon, Jan 19, 2009 at 7:33 PM, vinay vinc...@gmail.com wrote:
 hi grace,
 I could do it by copying the index.html file in Browser/assets directory and
 modified private String homeUrl = file:///android_asset/index.html; in
 BrowserSettings.java file.

 where does html viewer resides an android?
 -vinay H

 On Tue, Jan 20, 2009 at 12:51 AM, Grace Kloba klo...@gmail.com wrote:

 As you found out, you can't open local files in the browser. But you
 can open it with HTMLViewer.

 On Sun, Jan 18, 2009 at 11:37 PM, vinay H vinc...@gmail.com wrote:
 
  Hi,
  How to load simple html file present in sdmmc card from web browser.
  It is mentioned in the net that due to security reasons this is not
  allowed. Is there any way to access the file from sdcard?
 
  Tried modifying private String homeUrl = file:///sdcard/index.html;
  in BrowserSettings.java file but browser throws an error could not be
  loaded.
 
  -vinayh
 
  
 



 --
 thanks,
 Grace
 




-- 
thanks,
Grace

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

2009-01-25 Thread Grace Kloba

The trick is to use -webkit-tap-highlight-color. If the alpha of the
color is 0, the orange ring won't be drawn.

On Thu, Jan 22, 2009 at 4:33 PM, Andrew Hedges segd...@gmail.com wrote:

 I'm one of the design guys Mark was talking about.

 I found scant documentation on Apple's site about -webkit-focus-ring-
 color, but from what I saw and my own tests on an Android emulator and
 Safari, it appears that this is not a writable property, but an OS-
 level constant that is applied to elements with focus. Here's the page
 I found that calls this a constant and not a property:

 http://developer.apple.com/documentation/appleapplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html

 For example, I tried the following:

 select style=-webkit-focus-ring-color: green;
 option1/option
 /select

 In Android, the focus ring remained orange. In Safari, it remained
 blue.

 Mark, not sure what this means for us. Maybe you can hack the OS and
 set this value to transparent? C'mon, you can do magic, right? :-)

 On Jan 23, 2:07 am, Mark Murphy mmur...@commonsware.com wrote:
 Fred Grott(shareme) wrote:
  Found it :) I hope

  how about webkit-focus-ring-color

  Does that sound correct Mark?

  I mean there would have to be say an admin.css with webkit in Android
  setting this to orange correct?

  Thus, the question is can we override it?

 In my case, I'd settle for just disabling it. Based on researching that
 constant you cited, I thought maybe the :focus CSS pseudo-class would
 allow me to disable the focus ring, but apparently not.

 Of course, my CSS-fu is weak.

 I'll pass this info on to the design guys and see if it gives them any help.

 Thanks!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Published!

 




-- 
thanks,
Grace

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

2009-01-19 Thread Grace Kloba

As you found out, you can't open local files in the browser. But you
can open it with HTMLViewer.

On Sun, Jan 18, 2009 at 11:37 PM, vinay H vinc...@gmail.com wrote:

 Hi,
 How to load simple html file present in sdmmc card from web browser.
 It is mentioned in the net that due to security reasons this is not
 allowed. Is there any way to access the file from sdcard?

 Tried modifying private String homeUrl = file:///sdcard/index.html;
 in BrowserSettings.java file but browser throws an error could not be
 loaded.

 -vinayh

 




-- 
thanks,
Grace

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

2008-11-03 Thread Grace Kloba
Create an implementation of WebViewClient and register it with WebView. That
will prevent the default behavior of triggering Browser window.

On Mon, Nov 3, 2008 at 8:56 PM, hao [EMAIL PROTECTED] wrote:


 anyone?

 On Oct 26, 8:55 pm, hao [EMAIL PROTECTED] wrote:
  if i make the webview load a web page, and in that web page i press on
  a form submit button, then another browser window is open. How can i
  make everything stay in my app instead of opening a new browser window?
 



-- 
thanks,
Grace

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