Re: [android-developers] wikipedia web service for android.

2010-11-19 Thread sathvik
@TreKing -- Thank you , I knew about MediaWiki , I wanted to know whether
there is a JAVA implementation of this API , like Google AJAX API's have
non-javascript implementations.
For MediaWiki I think I will have to execute php. Anyways will try in that
direction.

Thank you.

On Fri, Nov 19, 2010 at 10:36 PM, TreKing  wrote:

> On Tue, Nov 16, 2010 at 11:31 PM, sat  wrote:
>
>> Any links pointing to the above requirement would  be helpful.
>
>
> http://stackoverflow.com/questions/627594/is-there-a-wikipedia-api
>
> Found through a 10 second Google search for "Wikipedia API" :-)
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] view overlap

2010-11-18 Thread sathvik
May be parent container of ur custom view is not allowing your textview to
get below the imageview , increase the height of parent container and check
, check by giving marginTop (though it might not be the right soln)

On Thu, Nov 18, 2010 at 4:02 PM, Shalini  wrote:

> Hi
>
> I had created a custom view as gallery item. My custom view contains
> an image view and a textview. I want textview to be below of imageview
> but it overlaps. Please how to do this
>
> Custom_view.xml
>
>
> 
>  android:id="@+id/widget28"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> xmlns:android="http://schemas.android.com/apk/res/android";
> >
>  android:id="@+id/imageview01"
> android:layout_width="96px"
> android:layout_height="86px"
> android:layout_alignParentTop="true"
> android:layout_alignParentLeft="true">
> 
>  android:id="@+id/textview01"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"
> android:text="TextView"
> android:layout_below="@+id/imageview01"
>
> >
> 
> 
>
> Gallery.java
>
> package com.android.rss;
>
>
>
>
> import android.app.Activity;
> import android.content.Context;
> import android.content.res.TypedArray;
> import android.os.Bundle;
> import android.view.ContextMenu;
> import android.view.LayoutInflater;
> import android.view.MenuItem;
> import android.view.View;
> import android.view.ViewGroup;
> import android.view.ContextMenu.ContextMenuInfo;
> import android.view.ViewGroup.LayoutParams;
> import android.widget.AdapterView;
> import android.widget.BaseAdapter;
> import android.widget.Gallery;
> import android.widget.ImageView;
> import android.widget.LinearLayout;
> import android.widget.RelativeLayout;
> import android.widget.TextView;
> import android.widget.Toast;
> import android.widget.AdapterView.AdapterContextMenuInfo;
> import android.widget.AdapterView.OnItemClickListener;
>
>
>
> public class Gallery1 extends Activity {
>
>private class viewHolder{
>private TextView  text;
>private ImageView image;
>}
>Gallery g ;
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.gallery_1);
>
>// Reference the Gallery view
>  g = (Gallery) findViewById(R.id.gallery);
>// Set the adapter to our custom adapter (below)
>g.setAdapter(new ImageAdapter(this));
>
>// Set a item click listener, and just Toast the clicked
> position
>g.setOnItemClickListener(new OnItemClickListener() {
>public void onItemClick(AdapterView parent, View v, int
> position, long id) {
>Toast.makeText(Gallery1.this, "you have selected : " +
> position, Toast.LENGTH_SHORT).show();
>}
>});
>
>
>// We also want to show context menu for longpressed items in
> the gallery
>registerForContextMenu(g);
>}
>
>@Override
>public void onCreateContextMenu(ContextMenu menu, View v,
> ContextMenuInfo menuInfo) {
>menu.add("testing");
>}
>
>@Override
>public boolean onContextItemSelected(MenuItem item) {
>AdapterContextMenuInfo info = (AdapterContextMenuInfo)
> item.getMenuInfo();
>Toast.makeText(this, "Longpress: " + info.position,
> Toast.LENGTH_SHORT).show();
>return true;
>}
>
>public class ImageAdapter extends BaseAdapter {
>int mGalleryItemBackground;
>private LayoutInflater mInflater;
>public ImageAdapter(Context c) {
>mContext = c;
>mInflater = LayoutInflater.from(c);
>// See res/values/attrs.xml for the 
> that defines
>// Gallery1.
>TypedArray a =
> obtainStyledAttributes(R.styleable.Gallery1);
>mGalleryItemBackground = a.getResourceId(
>
> R.styleable.Gallery1_android_galleryItemBackground, 0);
>a.recycle();
>}
>
>public int getCount() {
>return mImageIds.length;
>}
>
>public Object getItem(int position) {
>return position;
>}
>
>public long getItemId(int position) {
>return position;
>}
>
>public View getView(int position, View convertView, ViewGroup
> parent) {
>viewHolder viewholder= new viewHolder();
>if (convertView == null)
>{
>  LayoutInflater inflater = (LayoutInflater) mContext
>  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
>convertView=inflater.inflate(R.layout.main, null,true);
>
>viewholder.image  =
> (ImageView)convertView.findViewById(R.id.imageview01);
>viewholder.text =
> (TextView)convertView.findViewById(R.id.textview01);
>
>convertView.setTag(viewholder);
>}
>else{
>viewholder= (viewHolder)convertView.getTag();
>
>}
>convertView.setLayoutParams

Re: [android-developers] Re: trying to get Hello Android tutorial to work

2010-11-17 Thread sathvik
Ya as said , try waiting for little longer, if everything compiled without
any eror
and press menu button in emulator , and make sure emulator is not locked.

On Wed, Nov 17, 2010 at 5:50 PM, eggsy84  wrote:

> Hi there,
>
> It sounds like your project hadn't been compiled.
>
> The R class is Android Resource management class and is automatically
> generated when an Android project is compiled.
>
> R.layout.main basically means the layout file /res/layout/main.xml.
> Android has a declarative layout concept so you can declare your
> layout in XML which is what the main.xml file is doing.
>
> Uncomment the lines you have commented and try cleaning your project
> and rebuilding it. You should find that the R class is created in the /
> bin folder.
>
> In terms of the emulator it can take a while to start up and the
> screen you describe is the emulator starting. Try waiting a little
> longer and you should be presented with the Android OS and all things
> going well your application will automatically startup.
>
> Declaring layout:
> http://developer.android.com/guide/topics/ui/declaring-layout.html
> Providing resources:
> http://developer.android.com/guide/topics/resources/providing-resources.html
>
> Eggsy
>
>
>
> On Nov 15, 7:51 pm, Houston startup coder 
> wrote:
> > I'm on Mac OS X Leopard and installed the ADT plugin into Eclipse
> > Galileo.  I followed all these steps to get started:
> >
> > http://developer.android.com/sdk/index.html
> >
> > My SDK version is 2.2 API 8 revision 2 and I just used the Hello World
> > tutorial found here:
> >
> > http://developer.android.com/resources/tutorials/hello-world.html
> >
> > When I first created the Android application, I saw this error in the
> > Eclipse console:
> >
> > [2010-11-13 18:20:43 - HelloAndroid] ERROR: Unable to open class
> > file /
> > Users/mydirectory/Documents/workspace/HelloAndroid/gen/com/example/
> > helloandroid/R.java: No such file or directory
> >
> > I commented out this line to fill in the few lines from the tutorial:
> >
> > setContentView(R.layout.main);
> >
> > When I ran the app, it launched my emulator but all I saw was a
> > vertical screen on the left that said "ANDROID" and phone buttons on
> > the right.  I did not see the "Hello, Android" text from the
> > tutorial.
> >
> > Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Acitivity managing

2010-11-17 Thread sathvik
I think I didn't understand properly , but according to what I understood ,
why u are not closing the activity B ,
ActivityB.finish(); will close the current activity and come back to
previous without loading it again.

On Wed, Nov 17, 2010 at 5:55 PM, Kostya Vasilyev  wrote:

> There is a flag you can use for this, when launching A from B:
>
>
> http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT
>
> If A is already running, it will be brought to front.
>
> -- Kostya
>
> 17.11.2010 15:18, umakantpatil пишет:
>
>  Hi,
>>
>> I have been in problem of the Activity life-cycle. All though i read
>> lots of docs on it put on getting clear picture on it.
>>
>> I have Activity A. In that activity I have menu options. If we click
>> any option it opens the respective activity like
>> if i click on 2nd button it opens Activity B
>> Now again Activity B has same options into it. When user clicks on 1st
>> button then i need to go back to activity A.
>> So using this.
>> Intent intent = new Intent().setClass(context, Articles.class);
>> startActivity(intent);
>> So always it starts new instance of activity and fetch data from DB. I
>> want something like
>> Activity A can be resumed back as it was.
>>
>>
>>
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget --
> http://kmansoft.wordpress.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
>

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

Re: [android-developers] How to open a file browser to upload a file

2010-11-17 Thread sathvik
I haven't used it or implemented it ,  Quick solution would be ,
On clicking on any btn (say browse) , read the directory( file system which
u want /mnt/sdcard) and display the returned array of objects in listview,
(This will be your own implementation of filebrowser) .

On Wed, Nov 17, 2010 at 5:22 PM, Marcin Orlowski
wrote:

> On 15 November 2010 03:06, Sriks  wrote:
> > Hi All,
> >
> > I'm a novice user writing my first android application. I have the
> > need to upload a file to a webserver from the device. I googled enough
> > before joining this forum and not at one place did I find a suitable
> > solution. I would like to know how to launch the file browser when
> > user clicks on the "Browse" button to upload a file.
>
> Unless I missed something this is not suported
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Error creating gen resource folder.

2010-11-17 Thread sathvik
Try >> project , clean. then run the app.
BTW is it for certain app or any app created is having same problem ?

On Sun, Nov 14, 2010 at 7:07 AM, GSDroid  wrote:

> Hello
> My eclipse is not creating gen folder and android compilation creates
> error
>
> missing required gen folder.
>
> Can some one help me with a pointer to troubleshoot this.
>
> -GS
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Some coding errors from a novice

2010-11-16 Thread sathvik
For the first part of your question -
Answer is -- thats referencing problem , Image is not found in the drawable
folder. as appbee suggested , put ur image in drawable folder i.e.
res/drawable in ur workspace, if that folder is not there , create it and
put the ok.png / ok.jpeg in it.

Second part I did not get the problem exactly , I think again it might be
referencing problem , check the id's u have declared in your xml files. U
cannot modify R.java , clean up the project and resolve all references and
try again.

On Wed, Nov 17, 2010 at 1:06 PM, appbee  wrote:

> To answer the first part of your question...
> android:src="@drawable/ok" means there should be an image file called
> ok.png or ok.jpg in the drawable folder.
> Look under res for the drawable folder. You can add any image file in
> the drawable folder and reference it using the above code.
>
> Hope this helps,
> Ruchira
>
>
> On Nov 16, 6:25 am, James  wrote:
> > Hi, I'm a beginner android developer, and I've only been coding for a
> > few months. I'm testing some layouts in a project using eclipse, and
> > I'm following the guidelines from a textbook (beginning android 2.0)
> > and I'm getting some rather perplexing errors. The first error is in
> > my main.xml. my code is as follows:
> >
> > 
> > http://schemas.android.com/apk/res/
> > android"
> > android:layout_width="fill_parent"
> > android:layout_height="wrap_content"
> > android:orientation="horizontal"
> >
> >  > android:id="@+id/icon"
> > android:padding="2dip"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:src="@drawable/ok"
> > />
> >  > android:id="@+id/label"
> > android:layout_width="wrap_content"
> > android:layout_height="wrap_content"
> > android:textSize="40sp"
> > />
> > 
> >
> > everything seems to work other than this line under ImageView:
> > android:src="@drawable/ok"
> >
> > I'm not entirely sure what this means, but the error says:
> > Error:No resource found that matches the given name (at 'src' with
> > value '@drawable/ok').
> >
> > Seeing as I don't really understand what I'm supposed to be
> > referencing, so I don't know where to begin fixing it.
> >
> > Secondly, I'm getting two similar errors concerning how to create
> > fields in R.Java.
> >
> > My code for Layout_Testing.java (my main .java file) is as follows:
> >
> > import android.app.ListActivity;
> > import android.os.Bundle;
> > import android.view.View;
> > import android.widget.ArrayAdapter;
> > import android.widget.ListView;
> > import android.widget.TextView;
> >
> > public class Layout_Testing extends ListActivity {
> > private TextView selection;
> > private static final String[] items={"lorem", "ipsum", "dolor",
> > "sit", "amet",
> > "consectetuer", "adipiscing", "elit", "morbi", "vel",
> > "ligula", "vitae", "arcu", "aliquet", "mollis",
> > "etiam", "vel", "erat", "placerat", "ante",
> > "porttitor", "sodales", "pellentesque", "augue", "purus"};
> > @Override
> > public void onCreate(Bundle icicle) {
> > super.onCreate(icicle);
> > setContentView(R.layout.main);
> > setListAdapter(new ArrayAdapter(this,
> > R.layout.row, R.id.label,
> > items));
> > selection=(TextView)findViewById(R.id.selection);
> > }
> > public void onListItemClick(ListView parent, View v,
> > int position, long id) {
> > selection.setText(items[position]);
> > }
> > }
> >
> > everything works up until I try to set the list adapter
> > (setListAdapter):
> >
> > setListAdapter(new ArrayAdapter(this,
> > R.layout.row, R.id.label,
> > items));
> > selection=(TextView)findViewById(R.id.selection);
> > }
> >
> > The error I'm getting says that they can't be resolved, so I attempted
> > to create a new field in R.Java. But, seeing as R.Java is derived, I
> > can't edit it. It just reverts back to before my edits. I'm really
> > confused about this and I figured this was the place to go for help.
> > Thanks for reading this, and if you have any suggestions, please email
> > me or respond!
> >
> > Thanks,
> > James
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Bar Application wheel

2010-11-16 Thread sathvik
I think you can use progress dialog for that purpose.
http://www.brighthub.com/mobile/google-android/articles/43168.aspx

On Tue, Nov 16, 2010 at 8:30 PM, Kumar Bibek  wrote:

>
> http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate%28boolean%29
>
> You can use this.
>
>
> On Tue, Nov 16, 2010 at 8:26 PM, pedr0  wrote:
>
>> Hi!
>>
>> I would like add a rotating wheel which indicates that my application
>> do somethings in the application bar (where its name appears ).
>>
>> Someone knows how should I do?
>>
>> Thanks a lot.
>>
>> pedr0.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: sqlite returned: error code = 1, msg = table customer has no column named totalpurchase

2010-11-16 Thread sathvik
If you have seriall , I would suggest to check the schema in the application
database by
sqlite>> .schema
and check the column name again(making sure its present in the table) and
structure of table.

On Tue, Nov 16, 2010 at 6:10 PM, DanH  wrote:

> First thing to do is to VERY CAREFULLY read the code that you use to
> create the DB and to reference the column.  Very likely the problem is
> a typo in one of the names or in the definition statements.  Check
> carefully the spelling of everything.
>
> And it never hurts to do as Kumar suggests and delete, then reinstall
> the app.  Plus you might want to try "cleaning" your project and
> building anew.
>
> On Nov 16, 2:38 am, Rahul Garg  wrote:
> > Hi guys,
> >
> > I am facing problem with my database while inserting values that it is
> > showing that it has no column named totalpurchase. While I clearly
> > declared it in my table and the other columns are not showing this
> > problem. can you suggest what is wrong with this.
> >
> > --
> > Rahul
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Re: [android-developers] Bar Application wheel

2010-11-16 Thread sathvik
I think you can use progress dialog for that purpose.
http://www.brighthub.com/mobile/google-android/articles/43168.aspx

On Tue, Nov 16, 2010 at 8:30 PM, Kumar Bibek  wrote:

>
> http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate%28boolean%29
>
> You can use this.
>
>
> On Tue, Nov 16, 2010 at 8:26 PM, pedr0  wrote:
>
>> Hi!
>>
>> I would like add a rotating wheel which indicates that my application
>> do somethings in the application bar (where its name appears ).
>>
>> Someone knows how should I do?
>>
>> Thanks a lot.
>>
>> pedr0.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Kumar Bibek
> http://techdroid.kbeanie.com
> http://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
>

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