[android-beginners] Dynamic Spinner

2009-12-13 Thread krishna
Hi,
I am working on android i am able to draw simple spinner.
But my application needs dynamic spinner mean in a one view there may
be one or four spinner need it depends upon application needs.
So how we can draw dynamic Spinner without using XML.

Thanks & Regards
Vilas Talewale

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


[android-beginners] Re: How to use external library in Android project

2009-10-29 Thread Naveen Krishna Ch
Eclipse provides an option to add the *.jar files in external libraries.

2009/10/29 Sj 

>
> Hi, Android developers
>
> I am trying to create very simple 'http client using Jersey API'.
> So I included Jersey library (such as jsr311-api-1.0.jar) as
> Referenced Library.
>
> And my code build well.
> But when I run it in Android Emulator, it seems the application
> crashes.
> The reason seems like ClassLoader of Android can't find the class
> 'com.sun.jersey.api.client.Client'.
> Anybody knows how to solve this?
>
> The code is following.
>
> package com.example.helloandroid;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> //Jersey Client API
> import com.sun.jersey.api.client.Client;
> import com.sun.jersey.api.client.WebResource;
>
>
> public class HelloAndroid extends Activity
> {
>/** Called when the activity is first created. */
>
>@Override
>public void onCreate(Bundle savedInstanceState)
>{
>super.onCreate(savedInstanceState);
>TextView tv = new TextView(this);
>//tv.setText("Hello, Android");
>getHTTPJAXRS(tv);
>setContentView(tv);
>}
>
>public void getHTTPJAXRS(TextView tv)
>{
>String url = "http://www.google.com/";;
>
>Client myClient = Client.create();
>    WebResource webres = myClient.resource(url);
>
>String s = webres.get(String.class);
>tv.setText(s);
>}
> }
>
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Poor Documentation

2009-10-23 Thread Naveen Krishna Ch
2009/10/23 Dori 

>
> i dont know if thats a joke or not?!
>
> the docs are not that bad,


Docs exists ??? tell where,
look for "android doc" in google
(or)
touch this
http://developer.android.com/guide/index.html



> try developing for facebook stuff, so out
> of date it hurts!
>
> On Oct 22, 2:00 pm, usharani ganapathy 
> wrote:
> > hi i m new to androidwhat is intent?
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Run the Previous Activity

2009-10-21 Thread Naveen Krishna Ch
This should be working
Activity 1   Activity 2

onCreate
onStart <-
onButton ---> onCreate/ |
onStart |
onButtondo a finish|
onDestroy> finish()-->|
onDestroy i will be out of ur app



2009/10/22 shobhit kasliwal 

> Thanks for the reply
> but if I do that .then how can I finish activity on button click event
> ?
> And also My problem is on the previous activity coz I am getting to the
> previous activity from button click event on the new activity but I am not
> able to do any event on the previous activity after that.
> So how can I do that ..??
>
>
>  On Thu, Oct 22, 2009 at 12:02 AM, Naveen Krishna Ch  gmail.com> wrote:
>
>>  Add a onDestroy or onPause in the 2nd activity,
>> and do a finish there..
>>
>> 2009/10/22 Shobhit Kasliwal 
>>
>>>
>>> Hi
>>> I am using tabbed Activity and Inside every tab I have different
>>> activities. on one of the activity (inside tabs) on click of a button
>>> I am starting a new activity(with a button it )  now I want to come
>>> back on previous activity on click of that button in new Activity and
>>> do some click events.
>>> I used the finish() on the new activity and I am getting back to the
>>> previous tabbed activity but I am not able to do any click event on
>>> that activity.
>>> I checked the Logs and it is saying that " No Window to dispatch
>>> pointer 1"  what can be the problem  ?
>>> I also tried opening a new activity (to open the previous tabbed
>>> activity) but still no luck.
>>> can anyone suggest me any alternate way of doing that
>>>
>>>
>>
>>
>> --
>> Shine bright,
>> (: Naveen Krishna Ch :)
>>
>>
>>
>>
>
>
> --
> Shobhit Kasliwal
> Application Developer Intern
> Liventus Designs
> 3400 Dundee Rd Northbrook IL 60062
> skasli...@liventus.com
> office: 847-291-1395 ext. 192
> Cell: (309) 826 4709
>
> Charles de 
> Gaulle<http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html> - 
> "The better I get to know men, the more I find myself loving dogs."
>  >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Run the Previous Activity

2009-10-21 Thread Naveen Krishna Ch
Add a onDestroy or onPause in the 2nd activity,
and do a finish there..

2009/10/22 Shobhit Kasliwal 

>
> Hi
> I am using tabbed Activity and Inside every tab I have different
> activities. on one of the activity (inside tabs) on click of a button
> I am starting a new activity(with a button it )  now I want to come
> back on previous activity on click of that button in new Activity and
> do some click events.
> I used the finish() on the new activity and I am getting back to the
> previous tabbed activity but I am not able to do any click event on
> that activity.
> I checked the Logs and it is saying that " No Window to dispatch
> pointer 1"  what can be the problem  ?
> I also tried opening a new activity (to open the previous tabbed
> activity) but still no luck.
> can anyone suggest me any alternate way of doing that
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Including pre-compiled 3rd party jar files to android application & building it with source code

2009-10-21 Thread Naveen Krishna Ch
In Andoird APIDemos there is an application PlatformLibrary.

There he shows exactly how to use a Jar file to build our application.

Add an xml linking the path and add in the Android.mk,
Hope it helps
2009/10/21 Harsha 

>
> Hi,
> I have an android application which uses 3rd party libraries(of which
> I don't have source code). In eclipse I can include them as external
> jars and build the APK without any problem.
> But problem arises when I try to build the application with android
> source code.
>
> My question is how to include those 3rd party jars in the source(in
> Android.mk)?
>
> If any one of you came across this and have the solution please let me
> know.
>
> Thanks in advance,
> Harsha C
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Application closes when I try to convert String to Integer

2009-09-17 Thread Naveen Krishna Ch
Try a code similar to this,

EditText priority =
(EditText)myAlertDialog.findViewById(R.id.priority_edit);
int x = Integer.parseInt(priority.getText().toString());

This works fine for me..

2009/9/16 rachana bedekar 

> Hi,
> I need to perform mathematical  operation on the EditText's text. For that
> I coverted text from the EditText to  String,  but when I further try to
> covert Strint to Integer using parseInt - code doesn't show any bug, but the
> emulator stops responding.
>
> Can anyone give me a suggestion on this?
>
> Thanks!
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Manifest file

2009-09-17 Thread Naveen Krishna Ch
For the first time when we develop an activity, The eclipse automatically
adds it to
the AndroidManifest.xml. As we want to add more activities or any frame work
components.

We need to add the, we can add permissions, intent filter, etc. also

2009/9/17 senrooy 

>
> In which cases I can modify this file? I have done some basic android
> applications but I didn't modify this file and applications worked
> fine. For what reason we should modify this file?
>
> On Sep 17, 4:06 pm, Mark Murphy  wrote:
> > senrooy wrote:
> > > I am new to android. I am using SDK and eclipse with ADT plug-ins for
> > > the first time. I want to know what is the significance of the
> > > AndroidManifest.xml file which is created automatically when we create
> > > an android project.
> >
> > There is a Web page in the Android documentation that covers this:
> >
> > http://developer.android.com/guide/topics/manifest/manifest-intro.html
> >
> > > Can we modify this file for any reason?
> >
> > You can modify it when you need to. If you are using Eclipse, it may
> > make some modifications for you, but other changes you may need to make
> >  yourself.
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com|
> http://twitter.com/commonsguy
> >
> > _Android Programming Tutorials_ Version 1.0 In Print!
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: String.xml

2009-08-11 Thread Naveen Krishna Ch
2009/8/11 Liviu Ungureanu 

> Hi! Is posible to get,fom code, value of a string from string.xml?
>
getText("The ID of the string");
Should be helpful.

>
> Thank you!
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

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



[android-beginners] Re: want some ebboks to download

2009-08-10 Thread chinni krishna
try this link
http://developer.android.com/guide/topics/fundamentals.html

On Mon, Aug 10, 2009 at 1:06 PM, Liviu Ungureanu wrote:

>
>
> 2009/8/10 
>
>>
>> Hello all;
>> I am new at android sevolopment.i need to have some ebooks n pdf to
>> start programming with android.will you please give me some link which
>> will start from basic.
>> Thank you
>>
>>
>> Hi!
> Try to search on pdfchm.net!
>
>
>
>
>
>
> >
>


-- 
y.chinnikrishna

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



[android-beginners] Re: activity problem..

2009-08-10 Thread Naveen Krishna Ch
2009/8/10 Liviu Ungureanu 

> hi!
>
> I have 2 activities and when i install my application on phone my
> activities are installed as separate apps...
> Can someone help me this please..i want one application with 2
> activities...
>
> This is the Manifest file:
>
> 
> http://schemas.android.com/apk/res/android";
>   package="com.app.lookitup2"
>   android:versionCode="1"
>   android:versionName="1.0"
>   android:icon = "@drawable/icon"
>   android:windowSoftInputMode="stateVisible">
>  android:label="@string/app_name">
>
>android:label="lookItUp"
>   android:windowSoftInputMode="stateVisible|adjustResize">
>
> 
> 
>  />
> 
> 
>   android:name=".ResultsActivity"
>  android:label="test">
>  
> 
>  />


> 
> 
> 
> 
> 

remove the intent filter for the 2nd activity.
use it only for main activity

>
>
> Thank you!
>
>
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

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



[android-beginners] Re: [android-beginners]

2009-08-07 Thread Naveen Krishna Ch
2009/8/7 seema sharma 

> I need a service example in android
> plz send to me
>
ApiDemos in the SDK has a service example for
Local service and Remote service..
Basically we need to have an AIDL file for each (Service and client)
And thier skeletons(Which are interfaces) should be defined by you..

>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

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



[android-beginners] Re: [android-beginners]

2009-08-07 Thread Naveen Krishna Ch
2009/8/7 seema sharma 

> hello everyone
>
> I am android beginner.I am looking for notification example in android.
> can u plz send to me
>
Go through the ApiDemos in the SDK..
There is sample code for it

>
> Seema Sharma
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)
~~Forgiveness is the economy of the heart...
  forgiveness saves the expense of anger, the cost of hatred, the waste of
spirits.~~

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



[android-beginners] Re: unable to install ADT plugin for europa eclipse 3.3

2009-08-04 Thread Naveen Krishna Ch
Use eclipse gynamede, instead of europa

2009/8/4 nikita 

>
> Hello everybody,
>
> I am getting following message while installing ADT plugin for europa
> eclipse 3.3.
>
> Android Development Tools (0.9.1.v200905011822-1621) requires plug-in
> "org.eclipse.wst.sse.core".
>
> Please suggest.
>
> Thanks in advance!!
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: camera preview problem

2009-08-03 Thread Naveen Krishna Ch
2009/8/3 swarna sm 

> I wants to create my own project in android.
> Can anyone tell me how to create icons in to the device.
>
Use a png file, put it under res folder of ur project..
 R.id.urfile.png
Mention it in ur Manifest or activity

>
>
>
> On 8/3/09, chuu  wrote:
>>
>>
>> It works! Thanks, Jack.
>>
>> On Aug 2, 4:12 pm, Jack Ha  wrote:
>> > Remove the 'android:permission="android.permission.CAMERA"' attribute
>> > from the application tag and add the following line in your manifest
>> > file:
>> >
>> > > > permission>
>> >
>> > --
>> > Jack Ha
>> > Open Source Development Center
>> > ・T・ ・ ・Mobile・ stick together
>> >
>> > The views, opinions and statements in this email are those of
>> > the author solely in their individual capacity, and do not
>> > necessarily represent those of T-Mobile USA, Inc.
>> >
>> > On Jul 30, 3:29 pm, chuu  wrote:
>> >
>> > > Hi,
>> >
>> > > I would like to try the camera preview function. I create a new
>> > > project, copy the sample code (CameraPreview.java) from ApiDemo, and
>> > > run on HTC G1. Nothing appear. The logcat shows:
>> >
>> > > I/ActivityManager(   56): Starting activity: Intent { flags=0x1000
>> > > comp={com.example.camerapreview/
>> > > com.example.camerapreview.CameraPreview} }
>> > > W/ActivityManager(   56): Permission Denial: starting Intent
>> > > { flags=0x1000 comp={com.example.camerapreview/
>> > > com.example.camerapreview.CameraPreview} } from null (pid=-1, uid=-1)
>> > > requires android.permission.CAMERA
>> > > D/AndroidRuntime( 9049): Shutting down VM
>> > > W/dalvikvm( 9049): threadid=3: thread exiting with uncaught exception
>> > > (group=0x4000fe70)
>> > > E/AndroidRuntime( 9049): Uncaught handler: thread main exiting due to
>> > > uncaught exception
>> > > E/AndroidRuntime( 9049): *** EXCEPTION IN SYSTEM PROCESS.  System will
>> > > crash.
>> >
>> > > My manifest is
>> > > 
>> > > http://schemas.android.com/apk/res/android";
>> > >   package="com.example.camerapreview"
>> > >   android:versionCode="1"
>> > >   android:versionName="1.0">
>> > > > > > android:permission="android.permission.CAMERA">
>> > > > > >   android:label="@string/app_name">
>> > > 
>> > > 
>> > > > > > android:name="android.intent.category.LAUNCHER" />
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> >
>> > > Could anyone give me a hint what's wrong?
>> >
>> >
>>
>>
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] RampUp the binding b/w Activity & Service

2009-08-01 Thread Naveen Krishna Ch
Hi all,

I am looking for a mechanism to ramp up the binding between
Activity and a Service.

*I have a:
*I have a java library wrapping up the service, Which does the binding.
*Looking for:
*A way to have a worker thread (Looper, etc ) to process the bindService
call and give a callback to onServiceConnected();

As fast as the instantiation of the class would take,

Is this approach worth giving a try.  If so, Can any one guide me to make
 this approach work.

Any suggestions would be helpful..

-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: How to display error messages to the user?

2009-07-17 Thread Naveen Krishna Ch
2009/7/17 Pamplemousse Mk2 

>
> Hello,
>
> I'm looking for a way to display error messages.
>
> When I go to the settings of the emulator, Call Settings\Network
> Operators, and I click on "Search network" or "Select automatically",
> the emulator displays the message "Error while searching for
> networks." in a sort of bubble which fades itself after a certain
> time. Is it a custom draw or control, or is it a native control of
> Android? If yes, which is it?

That was a Toast widget, go through the ApiDemos, Before starting an
application

>
>
> I have used an Alert Dialog but the display is not the same, and the
> dialog does close itself after a certain time.
>
> Bye.
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: What are the concepts are need to develop an application

2009-07-01 Thread Naveen Krishna Ch
2009/7/2 Siva 

>
> Hi
>  im new for this , pls help me what are concepts must  needed to
> developing of an android application. It may be client-server
> applications or any please help me.

Go through the ApiDemos, PlatformLibrary apks in the sdk.
Look for detailed documentation on application framework at

http://developer.android.com/guide/topics/fundamentals.html

Note: Do little bit of Googling  before posting a query..

>
>
>
> Thanks
> siva
>
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: how to create AndroidManifest.xml

2009-07-01 Thread Naveen Krishna Ch
2009/7/1 subram 

>
> Hi there
>
>  I have an doubt  regarding creating new androidmanifest.xml
> file,since i need to create an android project from an existing path
> that is my .so,

What is this .so ???

> when i give like this it shows androidmnifest.xml not
> found,kindly suggest how to create this xml for my own project,i
> referred the android developer site there it is given each elemnet of
> the xml file only

Use PlatforLibrary's Manifest file as reference.
or
create new file named as AndroidManifest.xml in ur project head folder and
Eclipse helps u to write AndroidManifest.xml with some facilities in
Application tab

>
>
> Thanks in advance
> subram
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Invoking shared libraries

2009-06-21 Thread Naveen Krishna Ch
2009/6/22 subram 

>
> Hi there
>I am trying to invoke a c project in android for that i installed
> android source code in ubuntu and generated an shared library of my c
> project using the android source code,
> Now i have to invoke my shared library inside android SDK and make it
> to run my c project in that shared library,kindly suggest what to do
> next.

Have a javaclass,

U need to have a JNI layer in between so that java can call ur  c functions.

So wrape ur c fiels with a jni layer, build another shared library.
use System.loadLibrary("libraryname");
to load that,
and then in java u can call these methods.

>
>
> On Jun 16, 9:20 pm, Roman  wrote:
> > Hi Subram,
> >
> > I would try to spend some time in understand JNI. JNI calls are very
> > costly also if your native code might be pretty fast. If you use JNI
> > in the wrong way you program might run very flaky.
> >
> > Find information about JNI on
> >
> > http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni
> >
> > You have to know that you have to write JAVA and C/C++ code to be able
> > to use JNI functionality.
> > On the Java level you are calling the wrapper methods which you have
> > defined on the native level. The method signature format might be a
> > little bit confusing but the usage is straight forward.
> >
> > Furthermore check out the following Android code which uses JNI
> >
> > /external/webkit/perf
> >
> > You find in the
> >
> >  main.cpp how to setup JNI on Java level
> >
> > and in MyJavaVM.cpp how to write some wrapper methods which are
> > calling the native code. Make sure that you do on the native level
> > type checks on whatever you are passing down.
> >
> > Furthermore try to think about garbage collection and we it should
> > take place!
> >
> > --
> > Roman Baumgaertner
> > Sr. SW Engineer-OSDC
> > ·T· · ·Mobile· stick together
> > The views, opinions and statements in this email are those of the
> > author solely in their individual capacity, and do not necessarily
> > represent those of T-Mobile USA, Inc.
> >
> > On Jun 15, 10:18 pm, subram  wrote:
> >
> > > Hi There
> > > How to write a simple JNI that will print a message in the android
> > > screen/do the operation specified in the shared library
> >
> > > Thanks in advance
> > > Subram
> > > On Jun 15, 3:42 pm, arunjith g  wrote:
> >
> > > > you will have to use JNI methods to invoke a call in shared library
> > > > what u do is
> >
> > > > 1. Create a java class includes myfunC()
> > > > 2. Create a jni header file from this class
> > > > 3. It will have a jni_blahblah_myfunc call
> > > > 4. create a c/c++ file giving implementation to this function by
> calling ur
> > > > required shared library function
> >
> > > > On Mon, Jun 15, 2009 at 4:08 PM, subram  wrote:
> >
> > > > > Hi there
> > > > > I am having an shared library named librecord.so, i have to
> > > > > invoke this library inside the android project and make it to call
> by
> > > > > the sdk,if any one came across with thisinvokingkindly suggest me
> >
> > > > > Thanks in advance
> > > > > Subram
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Can I access the object of activity in a view?

2009-06-21 Thread Naveen Krishna Ch
2009/6/20 Mark Murphy 

>
> > Sorry, still dont know how to get that object in activity. do you have
> > an example? Thanks.
>
Try using intents (putExtras) betwen activities,, but may not be able to
pass objects as arguments

>
>
> I recommend that developers learn Java outside of Android before
> attempting to tackle Android development.
>
> >> > I defined an object in activity, and defined two views in this
> >> > activity, can I access this object in the views?
>
> A View can call getContext() on itself. That will return the View's
> Activity. Cast it to the specific Activity class (e.g., YourOwnActivity).
> Then call methods on that activity. On the activity, make the object
> accessible via a method. Now your Views can access relevant objects inside
> YourOwnActivity.
>
> --
>  Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
>
>
> >
>


-- 
Shine bright,
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Looking for Android Developers

2009-06-09 Thread Sujay Krishna Suresh
Hi,
 i'm interested... but is the work online?? n is it full-time or
pass-time???
'm a  student so cant be a fulltime employee... N i study @
Coimbatore,TamilNadu...
If u hv any requirement for me jus lemme no... 'll send in my resume...

On Tue, Jun 9, 2009 at 12:38 PM, Nithin  wrote:

>
> Hi,
>
> Developers who are looking for android jobs can send their profile to
> cont...@androidindians.com We will get back to you immediately.
>
> Thanks
> Nithin
> www.androidindians.com
> >
>


-- 
Regards,
Sujay
Steven Wright
- "It's a small world, but I wouldn't want to have to paint it."

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



[android-beginners] Re: communication between two computers

2009-06-04 Thread Naveen Krishna Ch
http://www.cs.cmu.edu/~srini/15-446/S09/lectures/04-android.pdf
Flow, this might help

2009/6/3 shwetha.pu...@gmail.com 

>
> Hi,
>
> Can anyone help with the following:
>
> I want to establish communication between two emulators each in
> separate computer(between two computers).I need a step by step
> procedure for executing server and client as well as the code .Please
> help.It is very urgent
>
> Thanks and Regards,
> Shpuan
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Suggestion required for displaying a table

2009-06-04 Thread Naveen Krishna Ch
2009/6/4 Vignesh 

> Hi,
>
> I have a requirement to display a table on the screen after reading them
> from a database.
>
> The layout must have scrollbars (both vertical and horizontal, because
> there can be plenty number of rows and columns).   Can someone suggest the
> widgets/layouts/views that I have to use?

If u have ApiDemos apk, run it on emulator, go into
view-> layouts-> TableLayout
There the various examples of table layouts are given.
U can find the sources of the same in the apidemo in samples..
Hope it helps

>
>
> I tried using TableLayout, but it doesn't come with scrollbars.  Using
> Textview for each column gets complicated.
>
> From the document I infer adapters and TableLayout can be of help, but not
> sure how.
>
> Kindly help.
>
> -vignesh
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Help with Services

2009-05-29 Thread Sujay Krishna Suresh
Hi hamy,
thnx a lot for ur reply... i'm actually workin with SDK 1.0
r2...
since it does not contain the picasa api, i downloaded Google's picasa
uploader app from the market.
it actually integrates itself with the camera app & pictures app in the
share option...
i got the name of the activity from logcat o/p... so no docs... but i'm
having a very bad solution...
this is all i could come up with by researching with the service using the
logcat o/p...
plz chk this n temme if there's a shortcut...
 new Thread() {
  @Override
  public void run() {
  ActivityManager a = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
  boolean flag = true;
  boolean uploading = false;
  while (flag) {
  flag = false;
  List servicesInfo = a.getRunningServices(15);
  for (RunningServiceInfo ele : servicesInfo) {
  if (ele.process.equals("com.google.android.apps.uploader")) {
  if(ele.started){
  uploading = true;
  flag = true;
  } else{
  uploading = false;
  }
  }
  }
  }
  if(uploading){
   // upload successful
  }else{
   // upload failed
}
  }
  }.start();



On Fri, May 29, 2009 at 6:10 PM, Hamy  wrote:

>
> Sujay,
> It sounds like you have your own activity starting the UploadActivity?
> If so, and if startActivityForResult() always returns the same value,
> regardless of whether the upload was successful or not, then I think
> you will have to do the upload on your own. AFAIK, you cannot make a
> service that you do not own talk to an activity that you do own. IPC
> is (again, only as far as I know) a two way street, both parties have
> to be interested in setting up the binding or it does not occur.
>
> However, that being said - how about you link us to where you found
> this UploadActivity? The docs on it might have some insight. Also,
> have you been testing what it returns when you do not successfully
> upload? It may just be returning the same value because it always
> succeeds, so be sure to make it fail and see what happens - perhaps
> kill the internet connection midway?
>
> Thanks,
> Hamy
>
> On May 29, 12:29 am, Sujay Krishna Suresh 
> wrote:
> > thanks for the reply mark... n sorry for posting in multiple lists...
> > but the problem is that neither the activity nor the service is mine...
> > the activity is
> >
> com.google.android.apps.uploader/com.google.android.apps.uploader.UploadActivity...
> > but i only no that the service is a "picasa" tagged UploadService...
> > onactivityresult i always get the RESULT_CANCELED as the resultcode
> > but i need to no if the upload was complete or not...
> >
> > On Fri, May 29, 2009 at 10:51 AM, Mark Murphy  >wrote:
> >
> >
> >
> >
> >
> > > Please do not cross-post to multiple lists.
> >
> > > >   i'm starting an activity that inturn calls a
> service i
> > > > wanna get notified when the service competes...
> > > > can anyone temme how i can do this???
> >
> > > You can:
> >
> > > 1. Use a callback or listener object, passed from activity to the
> service,
> > > which the service calls a method upon
> >
> > > 2. Broadcast an intent, receiving it in your activity
> >
> > > Please remember that your activity may not be there -- Android and the
> > > user have the right to close up your activity while the service is
> still
> > > running. So you might:
> >
> > > 3. Use a Notification, so you let the user know of completed work,
> rather
> > > than telling a possibly non-existent activity.
> >
> > > --
> > > Mark Murphy (a Commons Guy)
> > >http://commonsware.com
> > > _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
> >
> > --
> > Regards,
> > Sujay
> > W. C. Fields <
> http://www.brainyquote.com/quotes/authors/w/w_c_fields.html>
> > - "I am free of all prejudices. I hate every one equally."
> >
>


-- 
Regards,
Sujay
W. C. Fields <http://www.brainyquote.com/quotes/authors/w/w_c_fields.html>
- "I am free of all prejudices. I hate every one equally."

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



[android-beginners] Re: socket (server and client)_

2009-05-29 Thread Naveen Krishna Ch
2009/5/29 Shwetha S 

> Please can you tell me how to open up emulator shell and how to put the
> server to background running and how to run the client plase reply

cd to ur tools folder in the sdk and run
./emulator -avd AVD_name -shell
do an adb push of ur binary to /data or some where
and cd to /data or somewhere in the emulator shell.
do a ./server-binary &
then run client on top of it.
I could do it with native binaries.

>
>
> 2009/5/29 Naveen Krishna Ch 
>
>>
>>
>> 2009/5/28 shwetha.pu...@gmail.com 
>>
>>>
>>> Hi,
>>>
>>>   can anyone please mail me the step by step procedure of running
>>> client and server in android.Please i need it as soon as
>>> possible.Please help
>>
>> client and server are binaries
>> if they r binaries , open up a  emulator shell
>> there put ther server to background and run client.
>> this is much similar to that we do in linux.
>> If they r not native 
>>
>>>
>>>
>>> Thanks and Regards,
>>> Shpuan
>>>
>>>
>>>
>>
>>
>> --
>> Cheers
>> (: Naveen Krishna Ch :)
>>
>>
>>
>>
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Help with Services

2009-05-28 Thread Sujay Krishna Suresh
hi mark... plz help me out... ur reply 'd be of gr8 help to me...

On Fri, May 29, 2009 at 10:59 AM, Sujay Krishna Suresh <
sujay.coold...@gmail.com> wrote:

> thanks for the reply mark... n sorry for posting in multiple lists...
> but the problem is that neither the activity nor the service is mine...
> the activity is
> com.google.android.apps.uploader/com.google.android.apps.uploader.UploadActivity...
> but i only no that the service is a "picasa" tagged UploadService...
> onactivityresult i always get the RESULT_CANCELED as the resultcode
> but i need to no if the upload was complete or not...
>
> On Fri, May 29, 2009 at 10:51 AM, Mark Murphy wrote:
>
>>
>> Please do not cross-post to multiple lists.
>>
>> >   i'm starting an activity that inturn calls a service i
>> > wanna get notified when the service competes...
>> > can anyone temme how i can do this???
>>
>> You can:
>>
>> 1. Use a callback or listener object, passed from activity to the service,
>> which the service calls a method upon
>>
>> 2. Broadcast an intent, receiving it in your activity
>>
>> Please remember that your activity may not be there -- Android and the
>> user have the right to close up your activity while the service is still
>> running. So you might:
>>
>> 3. Use a Notification, so you let the user know of completed work, rather
>> than telling a possibly non-existent activity.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com
>> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>>
>>
>>
>> >>
>>
>
>
> --
> Regards,
> Sujay
> W. C. Fields <http://www.brainyquote.com/quotes/authors/w/w_c_fields.html> - 
> "I am free of all prejudices. I hate every one equally."




-- 
Regards,
Sujay
Helen Rowland<http://www.brainyquote.com/quotes/authors/h/helen_rowland.html>
- "One man's folly is another man's wife."

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



[android-beginners] Re: Help with Services

2009-05-28 Thread Sujay Krishna Suresh
thanks for the reply mark... n sorry for posting in multiple lists...
but the problem is that neither the activity nor the service is mine...
the activity is
com.google.android.apps.uploader/com.google.android.apps.uploader.UploadActivity...
but i only no that the service is a "picasa" tagged UploadService...
onactivityresult i always get the RESULT_CANCELED as the resultcode
but i need to no if the upload was complete or not...

On Fri, May 29, 2009 at 10:51 AM, Mark Murphy wrote:

>
> Please do not cross-post to multiple lists.
>
> >   i'm starting an activity that inturn calls a service i
> > wanna get notified when the service competes...
> > can anyone temme how i can do this???
>
> You can:
>
> 1. Use a callback or listener object, passed from activity to the service,
> which the service calls a method upon
>
> 2. Broadcast an intent, receiving it in your activity
>
> Please remember that your activity may not be there -- Android and the
> user have the right to close up your activity while the service is still
> running. So you might:
>
> 3. Use a Notification, so you let the user know of completed work, rather
> than telling a possibly non-existent activity.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
>
>
> >
>


-- 
Regards,
Sujay
W. C. Fields 
- "I am free of all prejudices. I hate every one equally."

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



[android-beginners] Help with Services

2009-05-28 Thread Sujay Krishna Suresh
Hi all,
  i'm starting an activity that inturn calls a service i
wanna get notified when the service competes...
can anyone temme how i can do this???

-- 
Regards,
Sujay
Bette Davis 
- "Brought up to respect the conventions, love had to end in marriage.
I'm
afraid it did."

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



[android-beginners] Re: Button ID

2009-05-28 Thread Naveen Krishna Ch
2009/5/27 Stienoo 

>
> I want to make UI Events but Eclipse underlines something in red:
>
> Button button = (Button)findViewById([b]R.id[/b].corky);
>
> I have a button whit the name "Ok"
> what I'm doing wrong?

Ok may be a UI. what is corky is this thename of button
check in R.java

>
>
> Full class:
>
> package stijn.test;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.view.View;
> import android.view.View.OnClickListener;
> import android.widget.Button;
>
> public class Test extends Activity implements OnClickListener {
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>Button button = (Button)findViewById(R.id.corky);
>button.setOnClickListener(this);
>}
>
>public void onClick(View v) {
>// do something when the button is clicked
>  }
> }
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: socket (server and client)_

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> Hi,
>
>   can anyone please mail me the step by step procedure of running
> client and server in android.Please i need it as soon as
> possible.Please help

client and server are binaries
if they r binaries , open up a  emulator shell
there put ther server to background and run client.
this is much similar to that we do in linux.
If they r not native 

>
>
> Thanks and Regards,
> Shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: how to create a new emulator instance

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> hi,
>   As to the above mentioned problem can any one help me how to create
> a new emulator instance.
> I have only one instance of emulator I want two instances plz help me
> with this.

if u r using eclipse u may go to the window -> android avd manager
and create another avd, u can create 2 instances

>
>
>
> Thanks
> shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: how to go to command prompt of emulator(very very urgently needed)

2009-05-28 Thread Naveen Krishna Ch
2009/5/28 shwetha.pu...@gmail.com 

>
> hi,
>   can anyone help me related to the following:
>   1)how to go the command prompt of android emulator

from the sdk's tools folder u may try ./emulator -shell -avd=avdname
this will give u a shell prompt.

>
>
>   2)how to work on it(cmd prompt)
>
>   3)If I have server and client code,then I want to know that should
> i create two projects(one for client and another for server)or should
> i keep both client and server in one project?Please reply as soon as
> possible

Server and client or service and activity.
a background service and activity can be on a same apk..

>
>
> Thanks,
> Shpuan
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: Getting Android Error - Unknown URI: content://media/external/images/media

2009-05-28 Thread Sujay Krishna Suresh
hv u mounted an sdcard image??? if not the external uri wont work...
u can do this by adding emulator option -sdcard  in ur
android preferences...
to make the sdcard image use the command mksdcard command in ur sdk tools...
mksdcard: create a blank FAT32 image to be used with the Android emulator
usage: mksdcard [-l label]  

  if  is a simple integer, it specifies a size in bytes
  if  is an integer followed by 'K', it specifies a size in KiB
  if  is an integer followed by 'M', it specifies a size in MiB

hope this works...

On Thu, May 28, 2009 at 5:21 PM, Prashant wrote:

>
> Hi All,
>
> I got following error on running emulator from eclipse
>  Unknown URI: content://media/external/images/media
>
> Let me know where I am wrong.
>
> my code snippets:
> /***/
> package com.android.examples;
>
> import android.app.Activity;
> import android.content.ContentValues;
> import android.database.Cursor;
> import android.net.Uri;
> import android.os.Bundle;
> import android.widget.Toast;
> import android.provider.*;
> import android.provider.MediaStore.Images.Media;
> import android.util.Log;
> import java.io.OutputStream;
> import android.graphics.Bitmap;
> import android.graphics.BitmapFactory;
>
> public class DatabaseProviderActivity extends Activity {
>/** Called when the activity is first created. */
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>/*Delete all the entries from the table
>To delete a particular entry from table, in content uri,
> specify id
>(content://com.android.examples.CDatabaseProvider/books/2) */
>getContentResolver().delete(
>  Uri.parse(
>  "content://com.android.examples.CDatabaseProvider/
> books"),
>  null, null);
>
>Uri uri;
>  //---add a book--- Put the appropriate values and insert it into
> table.
>ContentValues values = new ContentValues();
>values.put(Media.DISPLAY_NAME, "media_image_1");
>values.put(Media.DESCRIPTION, "lot of media images");
>values.put(Media.MIME_TYPE, "image/png");
>
>try {
>uri =
> getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
> values);
>
>Bitmap sourceBitmap = BitmapFactory.decodeResource
> (getResources(), R.drawable.icon);
>
>  OutputStream outStream = getContentResolver
> ().openOutputStream(uri);
>  sourceBitmap.compress(Bitmap.CompressFormat.PNG, 50,
> outStream);
> outStream.close();
>}
>
>catch (Exception e) {
>Log.i("Exception", "exception while inserting image: " +
> e.getMessage());
>}
>
>try
>{
>Cursor c =
>Media.query(getContentResolver(),
>Media.EXTERNAL_CONTENT_URI,
>new String[] {Media.DATA} );
>if (c.moveToFirst())
>Log.i("IMAGE", "TEST QUERY NOT EMPTY!");
>else
>Log.i("IMAGE", "Test query empty :(");
>
>}
>catch(Exception e)
>{
>Log.i("Exception", "exception while fetching image: " +
> e.getMessage());
>}
> }
>
> /***/
>
> Regards
> Prashant
>
> >
>


-- 
Regards,
Sujay
Helen Rowland
- "One man's folly is another man's wife."

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



[android-beginners] help with intent for uploader

2009-05-28 Thread Sujay Krishna Suresh
Hi everyone,
  i'm trying to build an application that captures an image & shares it...
 'm calling the inbuilt camera application with the following code

  Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
  startActivityForResult(i, 0);
 
N my on activity result is

 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (requestCode == 0 && resultCode == Activity.RESULT_OK) {

  Intent i = new Intent(Intent.ACTION_SEND);
  i.setType("image/jpeg");
  i.putExtras(data);
  startActivity(i);
  }
  finish();
}

whenever i select the upload button i get a toast sayin
 couldn't send photo data not available...
anyone can temme wats goin wrong??
i'm using SDK 1.0 r2
-- 
Regards,
Sujay


-- 
Regards,
Sujay
Frank Lloyd 
Wright
- "TV is chewing gum for the eyes."

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



[android-beginners] Re: HELP - I NEED A KIND PERSON TO HELP CREATE A BASIC APP

2009-05-25 Thread Sujay Krishna Suresh
send me ur design... 'll think abt it

On Sat, May 23, 2009 at 6:51 AM, chrisclay...@googlemail.com <
chrisclay...@googlemail.com> wrote:

>
> Help,
>
> Back in February I created a website called www.EmailALittleSecret.co.uk
> for people to share their Secrets completely anonymously with the
> world (It's currently down pending an update tomorrow afternoon; 23
> May 2009). I did this so people had somewhere to release the pressure
> that is built up by not being able to get things off their chest.
> There is a group on Facebook slowly gathering pace.
>
> I created it in MS Publisher so no real programming knowledge is
> required but I am slowly learning. I'm needing someone to help make a
> free app for the Android phones. I have the design but have no
> understanding of how to put it together.
>
> I know I am asking a lot but if anyone can spare some time to help me
> with this project please contact me, I would be very grateful.
>
> Many thanks,
>
> Chris - chrisclay...@googlemail.com
> http://www.EmailALittleSecret.co.uk
>
> >
>


-- 
Regards,
Sujay
Walt Disney 
- "I love Mickey Mouse more than any woman I have ever known."

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



[android-beginners] Re: Start a new activity on a click on an Expandable List Child Node

2009-05-22 Thread Naveen Krishna Ch
2009/5/22 Neha 

>
> Hi,
>
> I need to start a new activity when the user clicks on a child node of
> an Expandable List.
>
> This is the code I am using but am getting a null context.
>
> context = getContext();
> Intent intent = new Intent(context, activityclassname.class);
> startActivity(intent);

Intent fileViewActivity = new Intent(this, FileView.class);
FileViewActivity.putExtra("file",mFileName);
Try this kindaa approach
and mentioning in activity should work

>
>
> The class in which this code is implemented extends
> ExpandableListActivity.
>
> How do I go about it? This is very urgent.
> Can anyone please help me out with this?
>
> Regards,
> Neha
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Help with photo upload api

2009-05-20 Thread Sujay Krishna

Hi everyone,
  i'm in the process of developing an android
application that helps the user sync his local(camera) pics with his
web album(picasa or flickr or watever's feasible)

   i already tried gdata api  for java & was fed
up with the VerifyErrors & moved on to flickr's java api which was
highly complicated & since it too was for java & not for android i
doubt whether it'd work in the android platform... i'm ready to jus
use a built-in application with the help of intents... (if any)...

  plz post ur suggestions & also example code
snippets if possible...
  it'd be of gr8 help
  thanks in advance

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



[android-beginners] Re: ADT Plugin

2009-05-15 Thread Naveen Krishna Ch
There is ADT 0.9.1.zip available on net, its hase some more features than
0.9.0
use it with SDK 1.5...
0.8.0 does not support SDK 1.5..
if this 2 things are met its fine


2009/5/15 medelin 

>
> Hi,
>
> I coudn't fetch the ADT Eclipse plugin using the address provided by
> doc: https://dl-ssl.google.com/android/eclipse/
>
> Someone confirm this?
>
> Regards
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: shared variables between activity and service

2009-05-15 Thread Naveen Krishna Ch
Intent FileViewActivity = new Intent(this, FileView.class);
FileViewActivity.putExtra("file",file.mFileName);

This code in activity is an intent to the FileView  class may be ur service
Intent recievedIntent = getIntent();
opendFileName = recievedIntent.getStringExtra("file");
This code in ur service which recieves the intent...
This worked for me, might help u too.


2009/5/15 abdelkarim bezi 

> hi everybody, i'm an a beginner in android
> i have developed a service which get GPS location , it works good (it works
> in its own process)
> i have another activity in my application who need the value of this
> location but i can't read this value from the class service
> my question is how to share variable between activity and service? and how
> how to communicate them?
> i need an example.
> thanks to all.
>
>
> >
>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: How to start Android emulator 1.5?

2009-05-13 Thread Naveen Krishna Ch
If u were using eclipse
go to the window-> Android AVD Manager
there a UI comes where u can enter any name, size of sdcard and resolutions
of  the screen..
This should create an AVD for u with the given name

2009/5/14 Dhananjay Joshi 

>
>
> On Wed, May 13, 2009 at 9:07 AM, linuxemacs  wrote:
>
>>
>> Straja wrote:
>> > Hi,
>> > I'm absolute begginer. I did the all things that the tutorial said.
>> > And when I start  the eumulator in the command prompt i've got an
>> > error that I didn't provide name of AVD. I know that the command is
>> > "emulator -avd ", and what that name should be?
>> >
>> > Thanks :)
>> >
>> > >
>> >
>> >
>> Plz refer to following documentation for creating your own emulator device
>> http://developer.android.com/guide/developing/tools/avd.html
>>
>> BR!
>> Linuxemacs
>>
>> Hi
>> By default AVD may not be created in your directory,you need to create
>> it by using
>> emulatot avd create command.otherwise give the input of  system.img
>> ramdisk.img and userdata.img to emulator and also path of skin dir then it
>> will start.
>>
>> Regards
>> DJ
>>
>> >>
>>


-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Can a service talk to other service

2009-04-15 Thread Naveen Krishna Ch
Hi androids,

In the Android app frame work there are 4 basic blocks,
activities and services, broadcast recievers and content providers.

Now i have done some work on activity talkting to service.
Now i would like to know,

Is it possible for a service to talk to other service.
If possible Can any one show me where to start.

-- 
Cheers
(: Naveen Krishna Ch :)

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



[android-beginners] Re: A little help?

2008-10-25 Thread krishna devarapalli
Hi,

I am new to android platform.
I would like to contribute to the android platform in the boot code and
linux kernel.
Request pointers for the same.

Thanks in advance.

Cheers,
Krishna

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Android specific property

2008-06-23 Thread arvind krishna

Hi,

I have the following requirement: based on the platform (Linux, Windows etc) I 
need to set some properties which in turn affects software behavior. I was 
looking at querying "os.name" property which is set to "Linux" "Windows*" etc. 
However, when I run the software on the Android Emulator os.name is Linux as 
well. 

My question: Does Android set any property (that tells me that I am on Android) 
by default that I can query and use? 

Thanks in Advance,
Arvind


  __
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---