Re: [android-developers] Augmented Reality - Tutorial

2011-10-03 Thread Robin Talwar
use qualcomm sdk

On Mon, Oct 3, 2011 at 4:46 PM, EdwardComb dzn.aie...@gmail.com wrote:

 Hey Folks,

 I am currently interested to create an Augmented Reality application
 for Android.
 I have no problem to create normal Android application and I am
 familiar with IDE, SDK and etc.
 But I just have no idea where to start for this Augmented Reality (AR)
 stuff.

 My intention is actually to make the drawing in the paper come alive
 in 3D when using
 the Android camera. But most of the tutorial in the web describing
 about the GPS and etc.

 I really need your help to point me any references I can use to create
 the application mentioned above.

 Thank's..

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-28 Thread Robin Talwar
i guess u r asking for auth token frequently u should store it somewhere or
else google imposes captcha

and u cant handle that in code atleast thats where m stuck

On Wed, Sep 28, 2011 at 4:30 PM, Sapna Srivastav sapna.ari...@gmail.comwrote:

 Hi
 I am using urban airship for sending push messages to android device.
 But I am getting this message, when I push message from urban airship
 website.
 C2DM push to apid c16b4d97-9073-4d3d-9fca-b80e0aab 58b7 failed due to
 invalid auth token 

 Kindly help me.


 Thanks
 Sapna Srivastav

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-26 Thread Robin Talwar
which college?? i have the code... i will add ur college id and u can use
the code

On Thu, Sep 22, 2011 at 11:30 PM, karthick MA karthickk...@gmail.comwrote:

 i need attandance application source for college with
 database..



 regards
 M.A.Karthick

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-20 Thread Robin Talwar
try not to get auth token everytime

better you cache it or the google server will add captcha in process and u
cant get to captcha through the code. You would have to do some python stuff
for that i am not really clear about it. Hence better u save the
authentication token

On Tue, Sep 20, 2011 at 6:33 PM, Jens dunkingbikk...@gmail.com wrote:

 Each device has its own registration ID so you can push messages to a
 specific device.

 On Sep 19, 9:24 am, Joshua Partogi joshua.part...@gmail.com wrote:
  hi there,
 
  I am interested to use C2DM for my application. Is it possible to send
 push
  messages to selected devices only? Or will it send to all devices that
 has
  my application?
 
  Thank you in advance for your help.
 
  --
  @jpartogi

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-19 Thread Robin Talwar
Sir

Would you like a glass of beer along with this also??

On Sat, Sep 17, 2011 at 2:16 AM, david davidg...@googlemail.com wrote:

 Hello,
 I am looking for a Android GUI for cheap, rapid solution for
 disasters.  What I need is a very simple GUI with code to run on an
 Android table phone to do the following:

 To get device ID, get x, y, Z from GPS Signal, a picture, a recorded
 sound file, and then send this by email to s specified email address.

 Keep it as simple as possible for the time being.

 Regards.

 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




-- 
Regards
Abhishek Talwar
9953395712

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

Re: [android-developers] Need Help Regarding Development of an Android Application...

2011-09-12 Thread Robin Talwar
What kind of help do u need??
Where are you stuck specify your problem..

On Sat, Sep 10, 2011 at 5:59 PM, abhishek srivastava 
abhishek.sr...@gmail.com wrote:

 HI,

 I am Abhishek Srivastava, an Mtech student at CDAC Noida. I am developing a
 project based on DTH on Mobile using the Android Platform. Therefore i
 need some help regarding my project. If any one could please give any views
 or suggestions. It would be really really helpful.

 Thanks,

 Abhishek

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-12 Thread Robin Talwar
android:configChanges=keyboardHidden|orientation


add above in ur manifest for that particular activity

On Mon, Sep 12, 2011 at 9:10 PM, ragupathi ragupathi ragumm...@gmail.comwrote:

 Hi every one,
 im new one for android. im developing one application that
 application getting videos from sd card and display thumbnail view.
 after user click any one video it will be play its working fine to me.
 but if that video file is taken from landscape means it will be play
 landscape, or that video file taken from portrait means it will play
 portrait view.so i search this long time but i could not find
 anything. so any one knows any idea share with me.




 Thanks  Regards
 MMRPs

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-09 Thread Robin Talwar
Lets assume u wanna put exit button in menu and you have a baseActivity
which extends Activity so that its easy to implement on all the activities.
In your application instead of extending all your activities with
Acitivity(Android) you must extend it with your own BaseActivity.

Then place the followin code on menu button click

public boolean onMenuItemClick(MenuItem item) {

  // TODO Auto-generated method stub

  Intent broadcastIntent = new Intent();

  broadcastIntent.setAction(exit);

  sendBroadcast(broadcastIntent);

  return false;

 }

In BaseActivity you can have the following code


protected void onStart() {

 // TODO Auto-generated method stub

 super.onStart();

  receiver = new BroadcastReceiver() {

 public void onReceive(Context context, Intent intent) {

  // TODO Auto-generated method stub

  finish();

 }

 };

  IntentFilter intentFilter = new IntentFilter();

 intentFilter.addAction(exit);

 try{

 registerReceiver(receiver, intentFilter);

 }catch (Exception e) {

 // TODO: handle exception

 Log.d(BASE SCREEN INTENT RECEIVER, +++);

 e.printStackTrace();

 }

}


The idea is simple create a broadcast receiver in base class which extends
all activities so that if user clicks on any activity in your application
your intent is caught by Base Class and it renders it well


njoi


On Fri, Sep 9, 2011 at 4:53 PM, sandy sandeepsaga...@gmail.com wrote:

 how t exit application on a single click of a button.

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




-- 
Regards
Abhishek Talwar
9953395712

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

Re: [android-developers] Re: how to learn Andoird

2011-09-06 Thread Robin Talwar
Best way is to first pick up a project either on freelancer.com or
elance.com

When u get encouragement of money then u urself will do effort

Appress books are available both for beginners level and pro level

plus u can go for lynda tutorials for android they are out now get a torrent
and download it for free.


On Tue, Sep 6, 2011 at 1:54 PM, 卓卿 lizhuoqing...@gmail.com wrote:

 buy a book.

 Br,
 Lawrence

 Don't put off what can be done today until tomorrow!



 On Tue, Sep 6, 2011 at 4:18 PM, sparky spar...@google.com wrote:

 http://developer.android.com/resources/browser.html?tag=tutorial
 http://www.youtube.com/results?search_query=google+i%2Fo+androidaq=f

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-05 Thread Robin Talwar
I am not integrating map overlays though you could find the exact code in
appress EBook beginners guide or may be pro android development.

Instead i am calling the browser for following intent

http://maps.google.com/maps?f=dsaddr=+fromLat+%20+fromLong+daddr=+
toLat+%20+toLong+hl=en

This opens up browser or if the user has google maps application installed
then he will be given choice to choose from

On Mon, Sep 5, 2011 at 4:27 PM, Logesh rajendren loges...@gmail.com wrote:

 Hi Abishek , i m doing similar kind of project for my final year project .
 Can u please help me with Map Overlays in googlemaps ? :)


 On Mon, Sep 5, 2011 at 3:40 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys

 I have launched my first android application.
 It is a geolocation application , users login using facebook sdk and
 in people section will be shown facebook users nearby.
 In Places section initially latest places are shown in a list and you
 can also search the places using searchbar which gets you dropdown
 suggestions.

 Link to the promo video :-
 http://vimeo.com/28581522

 Link to the application in market place :-

 https://market.android.com/details?id=org.neighbourhoodfeature=search_result

 I would also like to thank this group for showing support to the
 beginners.
 The knowledge shared by you guys is always usefull and there is always
 something new in it if i check in.


 Regards
 Abhishek Talwar

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-09-05 Thread Robin Talwar
Thanks leela i just added u on skype

On Mon, Sep 5, 2011 at 4:34 PM, Lela Mose lelam...@gmail.com wrote:

 Hi Abhishek!

 First of all congratulations with launching the app! I will check it out
 right away. Secondly I am fishing here for new application developers to
 interview them for my PhD dissertation. Its an informal talk (for about 20
 minutes) through Skype of Google talk where I will pose questions like which
 platform do you prefer, or how you developed your first app, etc. As you
 have just published your first app, you will be a perfect candidate for
 interviews.

 As a nice incentive back, I will distribute summary of findings to
 participants (before it gets published) so you too will benefit from this
 research.
 Hope to talk to you soon
 Feel free to contact me on skype (username lelamose)

 best wishes and good luck with your App!

 Lela

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-08-17 Thread Robin Talwar
Ok but whats your query?? have you done any research over it?? where are you
stuck??

On Wed, Aug 17, 2011 at 5:41 PM, longuard pier...@hotmail.com wrote:

 I need to use local datadase for app, these is one for now can be
 install on android device?
 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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-08-17 Thread Robin Talwar
The database that android uses is sqlLite3

you can search for notepad tutorial in android its a bit tricky but on
developers site the notepad example is available which makes things easy for
beginner.

There are special methods to insert , delete , create , drop the database

http://developer.android.com/resources/tutorials/notepad/index.html

On Wed, Aug 17, 2011 at 6:39 PM, Pier Gagné pier...@hotmail.com wrote:

 **
 The first trouble i have its the app we be use where there is no connection
 available.
 i have done some reseach on google but a did'nt find anything.

 Pier



  *From:* Robin Talwar r.o.b.i.n.abhis...@gmail.com
 *Sent:* Wednesday, August 17, 2011 8:25 AM
 *To:* android-developers@googlegroups.com
 *Subject:* Re: [android-developers] Datadase

 Ok but whats your query?? have you done any research over it?? where are
 you stuck??

 On Wed, Aug 17, 2011 at 5:41 PM, longuard pier...@hotmail.com wrote:

 I need to use local datadase for app, these is one for now can be
 install on android device?
 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




 --
 Regards
 Abhishek Talwar
 9953395712

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




-- 
Regards
Abhishek Talwar
9953395712

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

Re: [android-developers] Help Me!!!!!

2011-08-09 Thread Robin Talwar
dude there are lots of videos out on youtube and other websites also just
google it

books from appress are good both beginning and pro android development

download them from torrent

On Sat, Aug 6, 2011 at 8:52 PM, RAJU V kathiriraj...@gmail.com wrote:

 Hi Am RAJU
   Am New to this android development so please help me by giving
 some android e-books to develop the apps in beginner manner please am
 begging you to send some e-books to develop android application

 ~~RAJU~~
 ~~www.itdoall.co.cc~~

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-08-06 Thread Robin Talwar
Check logcat wots d error

On 6 Aug 2011 11:32, jagadeesh mjagadeeshb...@gmail.com wrote:
 Hi

 See this code even this also getting like force close wait



 Intent myintent=new Intent(Intent.ACTION_VIEW,Uri.parse(www.google.com
));

 startActivity(myintent);

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

2011-08-01 Thread Robin Talwar
Did u import onclicklistener library and wots d error line ?

On 1 Aug 2011 11:59, mark2011 androidmark2...@gmail.com wrote:
Dear All :

 I install eclipse  Android SDK under the Windows/XP successful. If
I test a program using onClick that I want to click a button, it
displays an error. But the code is ok on an another pc. Can anyone
help me?

my code is that :

btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
   {
   @Override
   public void onClick(View v) { =error line

Thanks.

BR,
mark

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

2011-08-01 Thread Robin Talwar
btnNumberOne.setOnClickListener(newOnClickListener()
   {
   @Override
   public void onClick(View v) {
Put your on click implementation here
}
});

btnNumberOne must be refering to some id in xml with findview


On Mon, Aug 1, 2011 at 1:41 PM, wu mark androidmark2...@gmail.com wrote:

 Dear Robin :

I import import android.view.View.OnClickListener;

 The result is the same. The error is istill existed.

 BTW, on another pc, I don't import it. It works.

 Thanks.

 BR,
 Mark


 2011/8/1 Robin Talwar r.o.b.i.n.abhis...@gmail.com

 Did u import onclicklistener library and wots d error line ?

 On 1 Aug 2011 11:59, mark2011 androidmark2...@gmail.com wrote:
 Dear All :

  I install eclipse  Android SDK under the Windows/XP successful. If
 I test a program using onClick that I want to click a button, it
 displays an error. But the code is ok on an another pc. Can anyone
 help me?

 my code is that :

 btnNumberOne.setOnClickListener(new ImageButton.OnClickListener()
{
@Override
public void onClick(View v) { =error line

 Thanks.

 BR,
 mark

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

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


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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-07-11 Thread Robin Talwar
All keystores are file just check the path again and type carefully.
this could be irritating for beginners

On Mon, Jul 11, 2011 at 7:49 PM, Raghav Sood raghavs...@gmail.com wrote:

 It is a file. I got the finger print fine. Try running the command again.
 Maybe you made a typing error.


 On Sat, Jul 9, 2011 at 9:59 AM, karthik kartmu...@gmail.com wrote:

 Hello everyone!

 I am a starting developer in android apps. I ve started my project in
 GPS.

 So,I need to get a Google Map API Key.

 I followed the instructions in the developers website.

 I located the debug.keystore file in C:/Users/Karthik/.android/
 debug.keystore

 But my debug.keystore is a file and not a folder.So,I couldn't execute
 the keytool to get the fingerprint

 Pls provide me  a solution.

 Regards,
 Karthik.

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




 --
 Raghav Sood
 http://www.raghavsood.com/
 http://wiki.androidappcheck.com/
 http://www.telstop.tel/
 https://market.android.com/developer?pub=Raghav+Sood

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-07-01 Thread Robin Talwar
use arrayList of some getter/setter class
create start element and end element methods in your parser class which
extends default handler

On Fri, Jul 1, 2011 at 1:55 PM, NaveenShrivastva 
kumarnaveen.si...@gmail.com wrote:



 On Fri, Jul 1, 2011 at 12:54 PM, naveen kumar kumarnaveen.si...@gmail.com
  wrote:

 Hi All Android developer,


 Till now i am not getting perfect solution for

 ===

 i am getting large server response in XML format.i am not able to save
 that all response in String for parser.

 getting Outofmemory exception, so i am taking line line by line
 response that works .


 but i want to handle bulk of response fastly , now it's take 10
 minutes.

 Please help me how to handle bulk of XML-response from server.

 very urgent need for me..


 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


 try {

 inStream = new DataInputStream ( conn.getInputStream() );

 String str;

 while (( str = inStream.readLine()) != null)

 {
  Log.e(Debug,Server Response +str);

 }
 inStream.close();

   }

   catch (IOException ioex){
Log.e(Debug, error:  + ioex.getMessage(), ioex);

   }


 This code prints line by line response but not printing bulk of response help 
 me


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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-06-18 Thread Robin Talwar
Blender
jmonkeyrunner
unity3D

there are so many out there you just need patience and time

Best of luck

On Sat, Jun 18, 2011 at 1:41 PM, kaushik p kaushiks...@gmail.com wrote:

 Hi all,

 Can anyone suggest the best gaming  engines for android ??

 --
 ThanksRegards
 Kaushik Pendurthi

 http://kaushikpendurthi.blogspot.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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-06-06 Thread Robin Talwar
Ya the breif summary about the facebook connection and SSO is

Following points to keep in mind :-

   - Create an application on developers.facebook.com
   - In settings make it accessible for Mobile
   - You will get app id save it
   - download the facebook for android sdk
   - create a new android application in your IDE
   - copy paste the package com.facebook.android
   - refresh your project by right clicking in project explorer and now you
   can see the facebook package in your project
   - implement your activity with DialogListenrer
   - you will be asked to add unimplemented methods just do as they say
   - create a new Facebook variable like Facebook facebook = new
   Facebook(APP_ID)
   - Create another method and write this peice of code in it -
*facebook.authorize(this, new String[]{ publish_stream,
   read_stream, offline_access }, 0, this);*
   - The above line of code is necessary for letting the user authorize the
   facebook application and you have to choose the authorize method which
   accepts 4 constructors I spend hours to get it working for SSO
   - Now in your oncreate method call the above created method and thats it
   :)

Following is the code :-

public class myFacebook extends Activity implements DialogListener{
/** Called when the activity is first created. */
 Facebook facebook = new Facebook(YOUR_APP_ID);


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(
savedInstanceState);
setContentView(R.layout.main);
ImageView iv = (ImageView)findViewById(R.id.img);

onfbLogin();  *Calling the method*

}

public void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);

facebook.authorizeCallback(requestCode, resultCode, data);
}

@Override
public void onCancel() {
// TODO Auto-generated method stub


}

@Override
public void onComplete(Bundle values) {
// TODO Auto-generated method stub


}

@Override
public void onError(DialogError e) {
// TODO Auto-generated method stub

}

@Override
public void onFacebookError(FacebookError e) {
// TODO Auto-generated method stub

}

public void onfbLogin(){
facebook.authorize(this, new String[]{ publish_stream,
// *Necessary peice of code for SSO*
read_stream, offline_access }, 0, this);

Plus u need to get the hash key of your android application keystore which
you will place in your
facebook application settings under android


On Tue, Jun 7, 2011 at 9:45 AM, Sourav Howlader
sourav.howla...@gmail.comwrote:

 Hi Goutom,

 Check this link.
 http://developers.facebook.com/docs/guides/mobile/#android

 Regards,
 Sourav

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




-- 
Regards
Abhishek Talwar
9953395712

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

2011-06-04 Thread Robin Talwar
nice...

On Fri, Jun 3, 2011 at 4:42 PM, Munish Kapoor manish...@gmail.com wrote:

 HI
 Here is the Example of android tab at bottom.

 http://kandroid.wordpress.com/2011/05/31/tabview-part-5-tab-control-at-bottom-of-app/
 Thanks
 Munish Kapoor

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

2011-05-30 Thread Robin Talwar
Following points to keep in mind :-

   - Create an application on developers.facebook.com
   - In settings make it accessible for Mobile
   - You will get app id save it
   - download the facebook for android sdk
   - create a new android application in your IDE
   - copy paste the package com.facebook.android
   - refresh your project by right clicking in project explorer and now you
   can see the facebook package in your project
   - implement your activity with DialogListenrer
   - you will be asked to add unimplemented methods just do as they say
   - create a new Facebook variable like Facebook facebook = new
   Facebook(APP_ID)
   - Create another method and write this peice of code in it -
*facebook.authorize(this, new String[]{ publish_stream,
   read_stream, offline_access }, 0, this);*
   - The above line of code is necessary for letting the user authorize the
   facebook application and you have to choose the authorize method which
   accepts 4 constructors I spend hours to get it working for SSO
   - Now in your oncreate method call the above created method and thats it
   :)

Following is the code :-

public class myFacebook extends Activity implements DialogListener{
/** Called when the activity is first created. */
 Facebook facebook = new Facebook(YOUR_APP_ID);

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(
savedInstanceState);
setContentView(R.layout.main);
ImageView iv = (ImageView)findViewById(R.id.img);

onfbLogin();  *Calling the method*
}

public void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);

facebook.authorizeCallback(requestCode, resultCode, data);
}

@Override
public void onCancel() {
// TODO Auto-generated method stub

}

@Override
public void onComplete(Bundle values) {
// TODO Auto-generated method stub

}

@Override
public void onError(DialogError e) {
// TODO Auto-generated method stub

}

@Override
public void onFacebookError(FacebookError e) {
// TODO Auto-generated method stub

}

public void onfbLogin(){
facebook.authorize(this, new String[]{ publish_stream,
// *Necessary peice of code for SSO*
read_stream, offline_access }, 0, this);


On Mon, May 30, 2011 at 12:34 PM, Ali Chousein ali.chous...@gmail.comwrote:

 What???  The official Facebook app has nothing to do with the app you
 develop, which integrates Facebook API. Of course you need to retrieve
 your app secret from Facebook and put it in the code of your
 application. The official Facebook app and your app are two completely
 different things.

 And Bob, if you are not sure whether you should use the API key or the
 app secret, try both and see which one works. It won't take you more
 than 5 mins.


 On May 30, 6:31 am, warenix ware...@gmail.com wrote:
  no, you don't need to put app secret.
 
  authorization of your app will be done by official app installed.
  a pop up browser window will be shown.

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

2011-05-30 Thread Robin Talwar
could your provide the code

the xml file along with java

On Fri, May 27, 2011 at 11:41 AM, jesb budiat...@gmail.com wrote:

 I'm very new in developing android.

 I'm basically following a book example from Android Development for
 dummies. It's just a simple hello world. I didn't even write any code
 at all. I just did this from eclipse:
 file, new, project, android project, specify android 1.5 target, and
 api level 3.

 That's it. NO EXTRA CODE!

 When i set my app to run in AVD created using Android 2.2, it runs
 perfectly.

 However, if i create an avd using android 1.5, it won't run at all.
 the avd keep on saying

 The application hello world(process com.example.android.hello) has
 stopped unexpectedly. Please try again.

 This is the first warning and 2 error in log cat:
 w  988  dalvikvm  threadid=3: thread exiting with uncaught exception

 E  988  AndroidRuntime  Uncaught handler: thread main exiting due to
 uncaught exception

 E 988 AndroidRuntime  java.lang.RuntimeException: Unable to start
 activity ComponentInfo{com.example.android.hello/
 com.example.android.hello.MainActivity}:
 android.view.InflateException: Binary XML file line #7: Error
 inflating class java.lang.reflect.Con

 E  988  AndroidRuntime  at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2268)


 Is this because of the java version i installed? I'm running JDK SE
 Update 25 - 32 bit version.
 I'm running windows 7 -64 bit.

 I tried installing 64 bit and removed the 32 bit version, it's still
 the same.

 Any help would be greatly appreciated. hello world app isn't supposed
 to take 2 days to figure out.

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

2011-05-30 Thread Robin Talwar
set the layout_width and layout_height and then

android:scaleType=fit_xy

all this in xml your image will be scaled to the width and height you
mention

On Sun, May 29, 2011 at 8:09 AM, Marcos Roriz marcosroriz...@gmail.comwrote:

 Hi, I have a ImageView that has a drawable (128x128). How can I scale
 it to other size, ex: 64x64?

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

2011-05-30 Thread Robin Talwar
Best way to learn stuff is first get a project and then start digging in it
cause we humans are so much influenced with money that we then actually
hardwork to learn stuff and complete the project

On Mon, May 30, 2011 at 1:02 PM, Rocky rkjhaw1...@gmail.com wrote:


 Training process have in market, you can enroll to any training institute
 or personally to any individual tutors, but there is no any certification of
 Android as of now.



 On Sat, May 28, 2011 at 7:40 AM, Bishop flavio.tob...@gmail.com wrote:

 I would like to know if there is some kind of training and/or
 certification process for Android developers.

 Thanks
 Flavio

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




 --
 Thanks  Regards

 Rakesh Kumar Jha
 Software Developer
 Symphony Services Corp (India) Pvt Ltd
 Bangalore
 (O) +918030274295
 (R) +919886336619


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

2011-05-30 Thread Robin Talwar
ubuntu 11.04  :)

open source OS for open source development

On Mon, May 30, 2011 at 1:16 PM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Fri, May 27, 2011 at 11:39 PM, Méher Khiari keikun2...@gmail.com
 wrote:
  I'll go for a PC also, but I'm having problems with debugging
  applications on windows on my samsung devices, so I installed a Linux
  system on a visrtual box and connected it via virtual USB and it
  works. Thus with a PC you can get affordable 8GB or more of memory and
  a 2 cores that can handle VMs. With a Mac the debugging doesn't need
  any extra steps, but with the same price of the Mac you can get a more
  powerful PC.
 

 PC != Windows machine. If you are not doing Windows development,
 just don't buy Windows and use Linux.

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


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

Re: [android-developers] Need HELP PLS How to make a Splash Screen

2011-05-30 Thread Robin Talwar
This code will show one activity which has only one image view for 3 seconds
and then the intent will call new activity


protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
splash=(ImageView)findViewById(R.id.fb_login_splash);
/*splash.setOnClickListener(new OnClickListener() {


public void onClick(View v) {*/
// TODO Auto-generated method stub
 tt = new TimerTask() {*
// create a timer task*

@Override
public void run() {
// TODO Auto-generated method stub
Intent intent = new Intent(Splash.this,
newActivity.class);* // Mention your new activity in here *
Splash.this.startActivity(intent);
finish();
}
};

   Timer timer = new
Timer(); *call
the timer task*
timer.schedule(this.tt, 3000);
}

On Sat, May 28, 2011 at 7:45 PM, Joseph Blythe joeblyth2...@gmail.comwrote:

 Greetings:
 I am a newbee I am using Eclipse and i need some serious help making a
 splash screen i have the jpg. file in my res/layout ect...
 I created the Project and Activity and so on can anyone please give me
 a walk through for making a splash screen?
 I have tried You tube video and many other website posting and nothing
 works Please help me and feel free to e-mail me at
 joeblyth2...@gmail.com
 Also I tried to to put a new activity in AndroidManfest.Xml and that
 is not working
 Please help thanks
 Joseph

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

2011-05-30 Thread Robin Talwar
Abey kyu kar raha hai bhai ye sab???
Aise hi hoyengi images load

Bohat andar ghusna padega nahi to

On Mon, May 30, 2011 at 1:57 PM, gaurav gupta gaurav.gupta...@gmail.comwrote:

 Hi Guys,
 M using runonUiThread to set images in a Gridview. its working fine but its
 load images randomly, i want that images load in sequence order , not
 randomly.
 please Suggest how  can i do that.

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

2011-05-30 Thread Robin Talwar
Sorry i missed out about hash key

You have to create hash key which is clearly mentioned on the link

https://github.com/facebook/facebook-android-sdk

and den you can add this hash key in your facebook application settings edit
page under android section

This will create a separate session for your app

2011/5/30 warenix ware...@gmail.com

 Hi Ali,

 Quoted from https://github.com/facebook/facebook-android-sdk

 Testing

 Here are some tips to help test your application:

-

You will need to have the Facebook application in your test
environment. The SDK includes a developer release of the Facebook
application that can be side-loaded for testing purposes. On an actual
device, you can just download the latest version of the app from the 
 Android
Market, but on the emulator you will have to install it yourself:

adb install FBAndroid.apk
-

Use a signed build. You can sign with a debug key, but make sure that
the key you used to sign matches the *Key Hash* field in the Facebook
developer settings.
-

Make sure to test both with and without the Facebook application. The
SDK will fall back to a Webview if the Facebook app is not installed.
-

You can use this guide to developing on a 
 devicehttp://developer.android.com/guide/developing/device.html
.


 User authentication  authorization are performed by Facebook SDK for
 android. If you have official app installed, the process will be seamless.
 In you app, all you need is to provide the SDK your facebook APP_ID, no
 need to store the SECRET KEY.


 The only trick I found is the key hash, please follow this web page on how
 to get the hash.

 http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1

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

2011-05-27 Thread Robin Talwar
Following points to keep in mind :-

   - Create an application on developers.facebook.com
   - In settings make it accessible for Mobile
   - You will get app id save it
   - download the facebook for android sdk
   - create a new android application in your IDE
   - copy paste the package com.facebook.android
   - refresh your project by right clicking in project explorer and now you
   can see the facebook package in your project
   - implement your activity with DialogListenrer
   - you will be asked to add unimplemented methods just do as they say
   - create a new Facebook variable like Facebook facebook = new
   Facebook(APP_ID)
   - Create another method and write this peice of code in it -
*facebook.authorize(this, new String[]{ publish_stream,
   read_stream, offline_access }, 0, this);*
   - The above line of code is necessary for letting the user authorize the
   facebook application and you have to choose the authorize method which
   accepts 4 constructors I spend hours to get it working for SSO
   - Now in your oncreate method call the above created method and thats it
   :)

Following is the code :-

public class myFacebook extends Activity implements DialogListener{
/** Called when the activity is first created. */
 Facebook facebook = new Facebook(YOUR_APP_ID);

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView iv = (ImageView)findViewById(R.id.img);

onfbLogin();  *Calling the method*
}

public void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);

facebook.authorizeCallback(requestCode, resultCode, data);
}

@Override
public void onCancel() {
// TODO Auto-generated method stub

}

@Override
public void onComplete(Bundle values) {
// TODO Auto-generated method stub

}

@Override
public void onError(DialogError e) {
// TODO Auto-generated method stub

}

@Override
public void onFacebookError(FacebookError e) {
// TODO Auto-generated method stub

}

public void onfbLogin(){
facebook.authorize(this, new String[]{ publish_stream,
// *Necessary peice of code for SSO*
read_stream, offline_access }, 0, this);
}

}



On Fri, May 27, 2011 at 12:28 PM, Ali Chousein ali.chous...@gmail.comwrote:

 I don't know what that parameters is about, but in general you need to
 create an application at the Facebook site and you get back a key.
 Using that key in your application is enough to start communicating
 with Facebook.


 On May 27, 12:35 am, bob b...@coolgroups.com wrote:
  Can someone help me what to put for the FacebookApplicationSite
  parameter in the easy facebook android sdk library?
 
  Thanks.

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


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

Re: [android-developers] 3d game engine for android game development on ubuntu

2011-05-26 Thread Robin Talwar
Thanks

but i run ubuntu on my system... i am specifically finding one game engine
so that i can develop games on ubuntu

you find unity3d and shiva3d working on windows environment only

On Thu, May 26, 2011 at 4:47 PM, Mohammed Hossain Doula 
hossaindo...@gmail.com wrote:

 There are lots of in my knowledge... Like jMonkeyEngine, Shiva3D, Airplay,
 Untity3D...


 On Thu, May 26, 2011 at 5:04 PM, gaurav gupta 
 gaurav.gupta...@gmail.comwrote:

 :)
 Tell me too. if u got any solution.

 On Thu, May 26, 2011 at 2:11 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 hey guys
 Now after making a few android applications i want to step into 3d
 game development.
 I run ubuntu please let me know which game engines do i have as
 options since most of them are only for windows and mac like unity 3d

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




 --
 *--
 Mohammed Hossain Doula
 Software Engineer
 desme INC.*
 *www: http://www.hossaindoula.com
 @: ron...@desme.com*
 *facebook: http://www.facebook.com/ROnyWorld*
 *twitter: http://www.twitter.com/hossaindoula*
 *blogspot: hossaindoula.blogspot.com
 GSM: 00880-167-4347101*

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

2011-05-26 Thread Robin Talwar
ol ry
thanks for sharing the knowledge


On Thu, May 26, 2011 at 5:16 PM, Mohammed Hossain Doula 
hossaindo...@gmail.com wrote:

 jMonkeyEngine is written on java so you can try that...


 On Thu, May 26, 2011 at 5:43 PM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Thanks

 but i run ubuntu on my system... i am specifically finding one game engine
 so that i can develop games on ubuntu

 you find unity3d and shiva3d working on windows environment only

 On Thu, May 26, 2011 at 4:47 PM, Mohammed Hossain Doula 
 hossaindo...@gmail.com wrote:

  There are lots of in my knowledge... Like jMonkeyEngine, Shiva3D,
 Airplay, Untity3D...


 On Thu, May 26, 2011 at 5:04 PM, gaurav gupta gaurav.gupta...@gmail.com
  wrote:

 :)
 Tell me too. if u got any solution.

 On Thu, May 26, 2011 at 2:11 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 hey guys
 Now after making a few android applications i want to step into 3d
 game development.
 I run ubuntu please let me know which game engines do i have as
 options since most of them are only for windows and mac like unity 3d

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




 --
 *--
 Mohammed Hossain Doula
 Software Engineer
 desme INC.*
 *www: http://www.hossaindoula.com
 @: ron...@desme.com*
 *facebook: http://www.facebook.com/ROnyWorld*
 *twitter: http://www.twitter.com/hossaindoula*
 *blogspot: hossaindoula.blogspot.com
 GSM: 00880-167-4347101*

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




 --
 *--
 Mohammed Hossain Doula
 Software Engineer
 desme INC.*
 *www: http://www.hossaindoula.com
 @: ron...@desme.com*
 *facebook: http://www.facebook.com/ROnyWorld*
 *twitter: http://www.twitter.com/hossaindoula*
 *blogspot: hossaindoula.blogspot.com
 GSM: 00880-167-4347101*

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

2011-05-24 Thread Robin Talwar
sure :) do you want that in 3D??

On Tue, May 24, 2011 at 1:47 PM, khanh_qhi™ khanhqh20...@gmail.com wrote:

 Hi all,
 Could anyone give me full source code of this game in Android?

 --
 Regards,
 Khanh.

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

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

Re: [android-developers] Need to create Android toggle button in Iphone style

2011-05-21 Thread Robin Talwar
Going out for an interview at vinsol???
they expect you to make a custom button so do some RND on how to entend the
view and create a custom view :)

On Sat, May 21, 2011 at 2:27 PM, gaurav gupta gaurav.gupta...@gmail.comwrote:

 u can use two images like Iphone Ul.
 interchane them on its onclick.



 On Fri, May 20, 2011 at 12:28 AM, Balraj Singh 
 balrajbalraj...@gmail.comwrote:

 Hi,

 I have a requirement to create a toggle button in Android but in
 Iphone style something as shown in link below:-


 http://fc03.deviantart.net/fs71/f/2010/215/2/0/iPhone_Toggle_Button_by_mitchjinfo.png

 Can anyone tell me how to implement this or if provide the code for
 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 at
 http://groups.google.com/group/android-developers?hl=en


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

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

Re: [android-developers] urgent help

2011-05-20 Thread Robin Talwar
Hey treking why dont you send the same code to her the one you send me when
i was stuck in same trouble
but somehow i dont have that now :)

On Fri, May 20, 2011 at 10:38 PM, TreKing treking...@gmail.com wrote:

 On Fri, May 20, 2011 at 4:20 AM, neha neha.05...@gmail.com wrote:

 hi
 Is there are anyone who worked on SIP server.
 I want to get registered with server and make call.


 This is an Android Development group, not a SIP server group.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

Re: [android-developers] Newbie question: What is this in the code?

2011-05-16 Thread Robin Talwar
this means that very instance use this particular instance of object

For ex

SomeClas{
String placeText;

void SomeClas(String placeText){
// In constructor
// if you want to add the value in parameter of the constructor to the
String member of class then :-

this.placeText = placeText;
}


}

On Sun, May 15, 2011 at 4:03 PM, tyliong tyli...@gmail.com wrote:

 Hi,

 I am a newbie developer and have done iphone coding. I just don't
 understand how some code works as it is not explained in my book.

 Toast.makeText(this, Please enter a valid
 number,Toast.LENGTH_LONG).show()

 what is this in the brackets
 makeText(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 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] Trade my Android Open Accessory Developer Kit (ADK) trade for your new Sprint Nexus S 4G?

2011-05-13 Thread Robin Talwar
I am ready for it .
I want one of those so badly.
You can contact me at this mail id
or on skype : abhishek.talwar1
even m a mobile app developer but i wanna tweak into hardware for now

On Wed, May 11, 2011 at 11:56 AM, Ben ben.metca...@gmail.com wrote:

 I have one of the first official ADK (Android Open Accessory Developer
 Kit) Arduino kits distributed by Google during IO today and I'm
 looking to trade it for the brand new Sprint Nexus S 4G phone.  I hope
 it is not inappropriate to put this out to android-developers mailing
 list.

 I happened to be in the room at IO when they gave out the ADK kits to
 those attending the session, however I'm not a hardware hacker and I
 doubt I will make much use of it.  I am building Android apps however,
 and I'd really like to experiment with NFC which is on the Sprint
 Nexus S device.

 I'm not into price-gouging and won't put this on eBay for the highest
 bidder (others will, I'm sure). Instead I just want to trade it for a
 device more suited to my development.  For reference, a link on the
 official Google pages to purchase this kit points to a Japanese online
 retailer who are selling these for 31,500円, ~US$390 (http://www.rt-
 shop.sakura.ne.jp/rt-shop/index.php) although they are currently out
 of stock.

 Accounting for shipping, customs fees and the fact this is out of
 stock I think this equates to a fair trade for the phone.

 If you are interested please send me an email.  I will also be at Day
 2 of Google IO if you are interested in trading in person.

 Thanks,
 Ben

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

2011-05-08 Thread Robin Talwar
It is always better to create an application on version 2.1 that will
support above api levels and works fine
for almost all android phones in market.

http://developer.android.com/resources/dashboard/platform-versions.html



On Sun, May 8, 2011 at 12:21 PM, Jumana jumanamaj...@gmail.com wrote:

 On which version is it best recommended for an android app to be
 worked upon?

 If I develop an app, say on 2.3 and i have say, the checklistdemo
 (from Busy coder's guide ...) on the app market, people with devices
 having versions less than 2.3 will not be able to view my app, is that
 correct?

 If I have a list with multipleChoice mode in my app,  it doesn't seem
 to work correctly on virtual devices with lesser versions, say 1.5.
 why is that?

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

2011-04-15 Thread Robin Talwar
There is Layar API available and wikitude api is also good

But if you are using any of the above mentioned api's then the device must
have the Layar or Wikitude application
installed respectively.

considering the complexity of AR if you wanna develop a stand alone
application then its HARD

On Fri, Apr 15, 2011 at 10:52 AM, vix vikas.dh...@gmail.com wrote:

 Hi ,

 I am trying to work on Augmented Reality.

 Can you please help with some :

 Tools or

 some material or

 links etc.

 Please Help .

 Thanks
 Vikas Dhar


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread Robin Talwar
First create a class file not an activity and extend it with linearlayout
This will create your custom view .

Now lets suppose the package of your custom view is org.customView and class
is mylayoutfile.class

Then in the main.xml you can add this layout file just as you add a button,
textview or any widget but the important thing is how to write the name of
the widget.
Name of the widget will be the complete name of your custom view java file
like :-

org.customView.mylayoutfile android:id=
android:layout_width=...  /

instantiate this id in your main class

Dont forget to add constructors like :-

public NavigationBar(Context context, AttributeSet attrs) {
super(context, attrs);
}

public NavigationBar(Activity context) {
super(context);
}

This will be it now you just need to know how to iniflate it in your custom
view class :)

On Wed, Apr 13, 2011 at 10:27 PM, usher usher...@gmail.com wrote:

 So I have created this activity, and setContentView() with mail.xml
 layout file.
 Now I want to add some textView dynamically into this screen. I
 already have these text view defined in a seperate xml file named
 view.xml.

 How can I instantiate these textview components and add them into
 screen?

 I know we have inflate method, but once we call inflate, this view.xml
 will be added to screen automaticallyhow can we achieve this?

 Thanks.

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

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

Re: [android-developers] Re: Converting Blackberry Apps

2011-04-05 Thread Robin Talwar
ya well i do have the source code n i wont mind converting it into
android...


On Tue, Apr 5, 2011 at 2:12 PM, j.s. mammen mamm...@gmail.com wrote:

 Do you have the source code to the blackberry apps?

 On Mar 31, 6:27 pm, usafrmajor usafrma...@gmail.com wrote:
  Is there a utility that will facilitate the conversion of Blackberry
  apps to android apps?  I understand if it is not perfect, but it would
  be great to have something that could do some/most of it.  thanks

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


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

Re: [android-developers] Media Scanner failing on

2011-04-04 Thread Robin Talwar
http://stackoverflow.com/questions/5250515/how-to-update-the-android-media-database

the link says about media scanning so you can relate to your problem also,
its almost the same

On Sun, Apr 3, 2011 at 9:56 AM, Chinmay S cvs...@gmail.com wrote:

 Hi Paul,

 As you suspect, the gallery depends on the mediascanner to update the list
 of files.

 The samsung MyFiles app will rescan/refresh the contents of a directory
 every time you re-open the app.

 To force a mediascanner update on a directory, you might want to use *
 scanFile*.


 http://developer.android.com/reference/android/media/MediaScannerConnection.html
 public static void *scanFile* (Context *context*, String[] *paths*,
 String[] *mimeTypes*,
 MediaScannerConnection.OnScanCompletedListener *callback*) Alternately u
 can use a broadcast intent for the same purpose:

 http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_SCANNER_SCAN_FILE

 Also note that by default, internal data of any app is considered
 private,
 and mediascanner won't scan the app's private directory for media files:

 http://developer.android.com/guide/topics/data/data-storage.html#filesInternal


 regards
 CVS

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

2011-03-31 Thread Robin Talwar
if you need to xml parse data then u need to learn xml parsing
if you need to json parse data then u need to learn json parsing

connecting websites or latest feeds to mobile are through parsers only

On Thu, Mar 31, 2011 at 5:20 PM, ccalvo cca...@crazychars.com wrote:

 Come on!, cheer up!

 I'm just publishing my first app and I'm very happy. It' a great
 experience!
 I've used developer guide, it isn't the best, but it has some examples
 and interesting info to start
 http://developer.android.com/guide/index.html

 Good Luck!

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


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

Re: [android-developers] Need Help to Develope my first Android Project.

2011-03-30 Thread Robin Talwar
read the notepad tutorial

and start digging into database. If you want user to keep track then u shud
be having firm hand ova sqlLite3

On Thu, Mar 31, 2011 at 2:43 AM, Miguel Morales therevolti...@gmail.comwrote:

 Why don't you just do it yourself?  I thought college was a place to learn
 to do things in the real world.
 You won't get help like this in the real world.


 On Wed, Mar 30, 2011 at 1:44 AM, Kirti Joshi joshikirti...@gmail.comwrote:

 Hi! everyone,

 i need help to develop my first android project.

 i have just 1 month of expriance in android,   but i want to develop
 this project for my collage submition.
 ==
 --
 Defination of Project
 --
 Project Name :   Personal Mobile Assistant

 Description :

Design and develop software that can provide
 facility to user to plan the timetable and schedule for a day, week
 and month.  It should maintain the different appointments like
 personal meeting, discussions, get-together, official meeting,
 cultural event, celebration, functions, etc...,  This personal
 assistant can be integrated with the mobile number and through
 internet can provide reminder SMS service about the task, with, a
 message and some musical tones. Give the facility to the user to set
 different priority levels, according to the priority levels different
 reminder messages and tones should appear.

 ==


 Anybudy help me to develop this above defined application with android.
 please guide me,  how to start it to develop ?


 Help me please..


 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




 --
 ~ Jeremiah:9:23-24
 Android 2D MMORPG: http://solrpg.com/
 http://www.youtube.com/user/revoltingx

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

2011-03-28 Thread Robin Talwar
hey thanks but

there are two socket factories

   - javax.net
   - org.apache.http

same goes for SSLSocketFactory

   - javax.net
   - org.apache.http

and if i use any permutation and combination :) i get an error on *
getdefault* method that it doesnt exist

On Mon, Mar 28, 2011 at 1:48 PM, Josh Long starbux...@gmail.com wrote:


 If it's anything like Java SE, then this (untested) will get you SSL (j.n.*
 classes don't automatically do the right thing with https, btw):

 static public Bitmap fromUrl(String urlStr) throws Exception {
 Bitmap bitmap = null;
InputStream in = null;
try {
 SocketFactory socketFactory =
 SSLSocketFactory.getDefault();
Socket socket = socketFactory.createSocket(urlStr, 80);
in = socket.getInputStream();
bitmap = BitmapFactory.decodeStream(in);
} finally {
if (in != null)
in.close();
}
return bitmap;
 }


 HTH

 Thanks,
 Josh
 - Original Message -
 From: Robin Talwar r.o.b.i.n.abhis...@gmail.com
 To: android-developers@googlegroups.com
 Cc: Oscar oscar...@gmail.com
 Sent: Sunday, March 27, 2011 10:52:42 PM
 Subject: Re: [android-developers] Re: display image from net

 i dont think so i am just trying to show the user's facebook dp on my
 application when he logs into facebook using dialog interface.

 I have read the facebook sdk for android and i am able to fetch all data
 from user profile

 To get the image from the net i have to get the image from following link
 :-
 https://graph.facebook.com/ USERID /picture?

 and this is where i am stuck

 i dont think so that i require any username or password it is just
 something in coding .



 On Mon, Mar 28, 2011 at 9:57 AM, Oscar  oscar...@gmail.com  wrote:


 that's fine, Does the ssl use user/password?


 On Mar 26, 3:49 am, Robin Talwar  r.o.b.i.n.abhis...@gmail.com  wrote:
  welll i have solved dis one now i am using following code
 
  Bitmap bitmap = null;
  InputStream in = null;
  try {
 
  URL url = new URL(URL);
  URLConnection conn = url.openConnection();
  /* HttpsURLConnection cone = url.*/
  conn.connect();
  in = conn.getInputStream();
  bitmap = BitmapFactory.decodeStream(in);
  in.close();
  } catch (IOException e1) {
  // TODO Auto-generated catch block
  e1.printStackTrace();
  }
  return bitmap;
 
  But the problem occuring is dat my url is https and it is giving me an
 ssl
  error
 
  On Sat, Mar 26, 2011 at 2:06 PM, Abhishek Talwar 
 
 
 
 
 
 
 



  r.o.b.i.n.abhis...@gmail.com  wrote:
   this may be more like a java question
 
   I just want to display an image placed on server onto my imageView
 
   The following is the code which m using :--
 
   ImageView iv;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
   iv=(ImageView)findViewById(R.id.iv);
   String stringURL =  https://graph.facebook.com/618306968/
   picture?access_token +
   =103931556876|6ad1235e03c6472b20430aad-618306968|
   cDUe563_MNfHUeUiTpqqh8mB0o8;
 
   InputStream is = null;
   BufferedInputStream bis = null;
   Bitmap bmp = null;
 
   try {
   URL url = new URL(stringURL);
   URLConnection conn = url.openConnection();
   conn.connect();
   is = conn.getInputStream();
   bis = new BufferedInputStream(is);
   bmp = BitmapFactory.decodeStream(bis);
 
   } catch (MalformedURLException e) {
 
   } catch (IOException e) {
 
   }catch (Exception e) {
 
   } finally {
   try {
   if( is != null )
   is.close();
   if( bis != null )
   bis.close();
   } catch (IOException e) {
 
   }
   }
   iv.setImageBitmap(bmp);
 
   }
 
   I am not getting any error but also my imageview is empty and is not
   showing anything
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

 --



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


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

 --
 You

Re: [android-developers] Re: display image from net

2011-03-28 Thread Robin Talwar
Ok now i got this thing without any compile error  :-

 SocketFactory socketFactory = SSLCertificateSocketFactory.getDefault();
Socket socket = socketFactory.createSocket(urlStr,
80);   // *runtime System Error occurs at this line*
in = socket.getInputStream();
bitmap = BitmapFactory.decodeStream(in);

but i have a runtime system error :-

03-28 14:11:46.062: WARN/System.err(3142): java.net.UnknownHostException:
https://graph.facebook.com/618306968/picture?
03-28 14:11:46.062: WARN/System.err(3142): at
java.net.InetAddress.lookupHostByName(InetAddress.java:513)
03-28 14:11:46.072: WARN/System.err(3142): at
java.net.InetAddress.getAllByNameImpl(InetAddress.java:278)
03-28 14:11:46.072: WARN/System.err(3142): at
java.net.InetAddress.getAllByName(InetAddress.java:242)
03-28 14:11:46.072: WARN/System.err(3142): at
java.net.Socket.tryAllAddresses(Socket.java:169)
03-28 14:11:46.072: WARN/System.err(3142): at
java.net.Socket.init(Socket.java:258)
03-28 14:11:46.072: WARN/System.err(3142): at
java.net.Socket.init(Socket.java:222)
03-28 14:11:46.072: WARN/System.err(3142): at
javax.net.ssl.SSLSocket.init(SSLSocket.java:56)
03-28 14:11:46.072: WARN/System.err(3142): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.init(OpenSSLSocketImpl.java:174)
03-28 14:11:46.072: WARN/System.err(3142): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl.createSocket(OpenSSLSocketFactoryImpl.java:65)
03-28 14:11:46.072: WARN/System.err(3142): at
org.imagefromNet.imagefromNet.fromUrl(imagefromNet.java:50)
03-28 14:11:46.072: WARN/System.err(3142): at
org.imagefromNet.imagefromNet.onCreate(imagefromNet.java:33)
03-28 14:11:46.072: WARN/System.err(3142): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1069)
03-28 14:11:46.072: WARN/System.err(3142): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2751)
03-28 14:11:46.072: WARN/System.err(3142): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
03-28 14:11:46.072: WARN/System.err(3142): at
android.app.ActivityThread.access$2300(ActivityThread.java:135)
03-28 14:11:46.072: WARN/System.err(3142): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
03-28 14:11:46.072: WARN/System.err(3142): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-28 14:11:46.082: WARN/System.err(3142): at
android.os.Looper.loop(Looper.java:144)
03-28 14:11:46.082: WARN/System.err(3142): at
android.app.ActivityThread.main(ActivityThread.java:4937)
03-28 14:11:46.082: WARN/System.err(3142): at
java.lang.reflect.Method.invokeNative(Native Method)
03-28 14:11:46.082: WARN/System.err(3142): at
java.lang.reflect.Method.invoke(Method.java:521)
03-28 14:11:46.082: WARN/System.err(3142): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-28 14:11:46.082: WARN/System.err(3142): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-28 14:11:46.082: WARN/System.err(3142): at
dalvik.system.NativeStart.main(Native Method)


On Mon, Mar 28, 2011 at 2:02 PM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 hey thanks but

 there are two socket factories

- javax.net
- org.apache.http

 same goes for SSLSocketFactory

- javax.net
- org.apache.http

 and if i use any permutation and combination :) i get an error on *
 getdefault* method that it doesnt exist


 On Mon, Mar 28, 2011 at 1:48 PM, Josh Long starbux...@gmail.com wrote:


 If it's anything like Java SE, then this (untested) will get you SSL
 (j.n.* classes don't automatically do the right thing with https, btw):

 static public Bitmap fromUrl(String urlStr) throws Exception {
 Bitmap bitmap = null;
InputStream in = null;
try {
 SocketFactory socketFactory =
 SSLSocketFactory.getDefault();
Socket socket = socketFactory.createSocket(urlStr, 80);
in = socket.getInputStream();
bitmap = BitmapFactory.decodeStream(in);
} finally {
if (in != null)
in.close();
}
return bitmap;
 }


 HTH

 Thanks,
 Josh
 - Original Message -
 From: Robin Talwar r.o.b.i.n.abhis...@gmail.com
 To: android-developers@googlegroups.com
 Cc: Oscar oscar...@gmail.com
 Sent: Sunday, March 27, 2011 10:52:42 PM
 Subject: Re: [android-developers] Re: display image from net

 i dont think so i am just trying to show the user's facebook dp on my
 application when he logs into facebook using dialog interface.

 I have read the facebook sdk for android and i am able to fetch all data
 from user profile

 To get the image from the net i have to get the image from following link
 :-
 https://graph.facebook.com/ USERID /picture?

 and this is where i am stuck

 i dont think so that i require any username

Re: [android-developers] Layar Framewrok

2011-03-28 Thread Robin Talwar
well there are some api's available if you wish to play around with them you
can check out the wikitude api

On Mon, Mar 28, 2011 at 2:23 PM, parekh krupa kdparekh...@gmail.com wrote:

 Hello,

 i am developing an application using augmented reality in android.i am
 not abo to understand that how do i start to work with the
 application.
 can u pls guide me?

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

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

Re: [android-developers] Re: display image from net

2011-03-27 Thread Robin Talwar
i dont think so i am just trying to show the user's facebook dp on my
application when he logs into facebook using dialog interface.

I have read the facebook sdk for android and i am able to fetch all data
from user profile

To get the image from the net i have to get the image from following link :-
https://graph.facebook.com/*USERID*/picture?

and this is where i am stuck

i dont think so that i require any username or password it is just something
in coding .


On Mon, Mar 28, 2011 at 9:57 AM, Oscar oscar...@gmail.com wrote:

 that's fine, Does the ssl use user/password?

 On Mar 26, 3:49 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  welll i have solved dis one now i am using following code
 
  Bitmap bitmap = null;
  InputStream in = null;
  try {
 
URL url = new URL(URL);
URLConnection conn = url.openConnection();
   /* HttpsURLConnection cone = url.*/
conn.connect();
in = conn.getInputStream();
  bitmap = BitmapFactory.decodeStream(in);
  in.close();
  } catch (IOException e1) {
  // TODO Auto-generated catch block
  e1.printStackTrace();
  }
  return bitmap;
 
  But the problem occuring is dat my url is https and it is giving me an
 ssl
  error
 
  On Sat, Mar 26, 2011 at 2:06 PM, Abhishek Talwar 
 
 
 
 
 
 
 
  r.o.b.i.n.abhis...@gmail.com wrote:
   this may be more like a java question
 
   I just want to display an image placed on server onto my imageView
 
   The following is the code which m using :--
 
  ImageView iv;
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.main);
  iv=(ImageView)findViewById(R.id.iv);
  String stringURL = https://graph.facebook.com/618306968/
   picture?access_token +
  =103931556876|6ad1235e03c6472b20430aad-618306968|
   cDUe563_MNfHUeUiTpqqh8mB0o8;
 
  InputStream is = null;
  BufferedInputStream bis = null;
  Bitmap bmp = null;
 
   try {
   URL url = new URL(stringURL);
   URLConnection conn = url.openConnection();
   conn.connect();
   is = conn.getInputStream();
   bis = new BufferedInputStream(is);
   bmp = BitmapFactory.decodeStream(bis);
 
} catch (MalformedURLException e) {
 
  } catch (IOException e) {
 
}catch (Exception e) {
 
   } finally {
  try {
  if( is != null )
  is.close();
  if( bis != null )
  bis.close();
  } catch (IOException e) {
 
  }
   }
   iv.setImageBitmap(bmp);
 
  }
 
   I am not getting any error but also my imageview is empty and is not
   showing anything
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

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


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

Re: [android-developers] display image from net

2011-03-26 Thread Robin Talwar
welll i have solved dis one now i am using following code


Bitmap bitmap = null;
InputStream in = null;
try {

  URL url = new URL(URL);
  URLConnection conn = url.openConnection();
 /* HttpsURLConnection cone = url.*/
  conn.connect();
  in = conn.getInputStream();
bitmap = BitmapFactory.decodeStream(in);
in.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
return bitmap;


But the problem occuring is dat my url is https and it is giving me an ssl
error


On Sat, Mar 26, 2011 at 2:06 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 this may be more like a java question

 I just want to display an image placed on server onto my imageView

 The following is the code which m using :--


ImageView iv;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
iv=(ImageView)findViewById(R.id.iv);
String stringURL = https://graph.facebook.com/618306968/
 picture?access_token +
=103931556876|6ad1235e03c6472b20430aad-618306968|
 cDUe563_MNfHUeUiTpqqh8mB0o8;

InputStream is = null;
BufferedInputStream bis = null;
Bitmap bmp = null;

 try {
 URL url = new URL(stringURL);
 URLConnection conn = url.openConnection();
 conn.connect();
 is = conn.getInputStream();
 bis = new BufferedInputStream(is);
 bmp = BitmapFactory.decodeStream(bis);

  } catch (MalformedURLException e) {

} catch (IOException e) {

  }catch (Exception e) {

 } finally {
try {
if( is != null )
is.close();
if( bis != null )
bis.close();
} catch (IOException e) {

}
 }
 iv.setImageBitmap(bmp);

}


 I am not getting any error but also my imageview is empty and is not
 showing anything

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Fetch user facebook information (Facebook integration application)

2011-03-24 Thread Robin Talwar
my query was related to how to use facebook for android sdk and
fbconnect.jar file
now how in this world isnt it related to android.

anyways i got my solution i had to check log in onComplete

On Thu, Mar 24, 2011 at 9:30 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 23, 2011 at 7:26 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 My application uses fbConnect.jar.


 This group is for the Android SDK.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


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

Re: [android-developers] Suugest any tutorial for database

2011-03-21 Thread Robin Talwar
check notepad tutorial from developer site

On Tue, Mar 22, 2011 at 12:29 AM, rishabh agrawal android.rish...@gmail.com
 wrote:

 Whould u please suggest any great tutorial for android database.i am a
 begginer  no knowledge about 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 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] Endless scrolling in GridView

2011-03-19 Thread Robin Talwar
Yes exactly that is what i need.
How to find that the user has reached the end of the scroll in grid view??

On Sat, Mar 19, 2011 at 3:10 AM, Shane Isbell shane.isb...@gmail.comwrote:

 You don't need to customize the view. Implement pagination of the xml doc
 on the server. When the user reaches the end of the data in your app, have
 android pull down another page of data and then add the respective images to
 your adapter.

 Shane


 On Fri, Mar 18, 2011 at 2:20 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I am performing xml parsing in my grid view.
 The xml has 10 images which are displayed in 4 rows and the last row
 having 1 image.
 I want when the user scrolls down and when the scroll reaches bottom i
 should be able to parse more images.
 So that it goes like an endless grid view whenever the scroll reaches
 bottom more images are loaded.

 Should i make a custom gridView or custom ImageAdapter??

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

2011-03-19 Thread Robin Talwar
Ok
now i am able to get the log printed when the scroll has reached end.
I have used a custom adapter and in getView i have this code :-

if(p==(getCount()-1)){
Log.d(TAG++, REACHED
BOTTOM);
if(scs!=null){
scs.onPageChanged();
Log.d(TAG++, WILL WORK);
}

}

so far so forth both the logss are being printed and the onPageChanged
method is also working .

*Present Situtation :-*
10 images come and then after 3 seconds these 10 images are replaced by new
10 images due to the parser running in onPageChanged.  The Adapter is being
set again and again. I want the new adapter to append the images to the
existing adapter.


On Sat, Mar 19, 2011 at 11:32 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

 Yes exactly that is what i need.
 How to find that the user has reached the end of the scroll in grid view??


 On Sat, Mar 19, 2011 at 3:10 AM, Shane Isbell shane.isb...@gmail.comwrote:

 You don't need to customize the view. Implement pagination of the xml doc
 on the server. When the user reaches the end of the data in your app, have
 android pull down another page of data and then add the respective images to
 your adapter.

 Shane


 On Fri, Mar 18, 2011 at 2:20 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I am performing xml parsing in my grid view.
 The xml has 10 images which are displayed in 4 rows and the last row
 having 1 image.
 I want when the user scrolls down and when the scroll reaches bottom i
 should be able to parse more images.
 So that it goes like an endless grid view whenever the scroll reaches
 bottom more images are loaded.

 Should i make a custom gridView or custom ImageAdapter??

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

2011-03-18 Thread Robin Talwar
I am using commonsHttp client and twitter 4J for sharing and authentication


On Fri, Mar 18, 2011 at 8:49 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I have a button in my application which posts on twitter the song the
 user is listening to.
 While creating this application i created a demo twitter application
 and it was working fine.
 But now i changed the consumer key and consumer secret key to the ones
 given by the client and now i get
 the following error :-

 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665): 401:Authentication
 credentials were missing or incorrect.
 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665): ?xml
 version=1.0 encoding=UTF-8?
 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665): hash
 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665):   request/oauth/
 request_token/request
 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665):   errorDesktop
 applications only support the oauth_callback value 'oob'/error
 03-18 20:43:57.190: ERROR/in Main.OAuthLogin(7665): /hash


 Does this means that the consumer key or consumer secret key provided
 by client are wrong
 or that the application that they have made on the twitter is not
 meant for sharing through android?? or any other mobile platform?

 thanks

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

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

Re: [android-developers] Re: Convert a J2ME project to Android project

2011-03-15 Thread Robin Talwar
What is maven ?

On 15 Mar 2011 22:23, Adrian Vintu adrianvi...@gmail.com wrote:
 You can try

http://microemu.blogspot.com/2009/08/converting-javame-applications-to.html

 It's free and works pretty good.

 BR,
 Adrian Vintu
 http://adrianvintu.com


 On Tue, Mar 15, 2011 at 3:37 PM, michal.g...@gmail.com 
 michal.g...@gmail.com wrote:

 Converting J2ME to Android is not a trivial task.
 UpOnTek spent months to develop a service that converts J2ME to
 Android - in addtion to the automatic conversion our engineers
 provide optimization tops.
 Take a look at our website for more information.

 Thanks,
 Michal

 On Mar 15, 6:43 am, Huynh Ngoc Bang hnbang1...@gmail.com wrote:
  Hii all Developers
  I would like to ask you. How to convert a J2ME project to Android
  project.
  Please help me show step by step I can convert them.
  Thanks so 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


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

2011-03-15 Thread Robin Talwar
I think you want to convert your TextView to bitmap.
you can follow this link :-

http://www.techjini.com/blog/2010/02/10/quicktip-how-to-convert-a-view-to-an-image-android/

On Wed, Mar 16, 2011 at 2:22 AM, TreKing treking...@gmail.com wrote:

 On Tue, Mar 15, 2011 at 1:53 AM, Rahul Garg rahul.lnm...@gmail.comwrote:

 I want to convert any String value as image. Actually I want to set text
 in the statusbar. but I cant set it untill it is Image. So can you tell me
 how can I do it ? I am using Gingerbread source code.


 What?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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


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

2011-03-14 Thread Robin Talwar
or you could use logger.
I used to toast in beginning to find the flow
and as far as the project stuff is related; android gives many API demo :)

On Tue, Mar 15, 2011 at 9:41 AM, Mahavir Jain vir.j...@gmail.com wrote:

 You can do this in following way:

 1) Open command prompt.
 2) navigate to the android-sdk-path/platform-tools
 3) run adb logcat command
 4) In eclipse, run the application in debug mode.

 Regards,
 Mahavir


 On Tue, Mar 15, 2011 at 9:26 AM, kajal patil patil.kaja...@gmail.comwrote:

 Hi all,.
   I am developing an android application.I used
 system.out.println(message) to display message in logcat.But i did not get
 in logcat.I don't knw  that whether system.out.println(message) is correct
 way.I need it for my project.Please kindly suggest solution.
 Thank you.

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


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


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

Re: [android-developers] Re: Any idea for Augmented Reality??

2011-03-13 Thread Robin Talwar
Thanks for that bro
but apparently i think u dint check out all the google results and my
android post comes first in it since there are not good related posts.
Anyways i was asking some experienced guy for help and not the one who needs
to Get a Life so kindly ignore

On Mon, Mar 14, 2011 at 2:32 AM, Hari Edo hari@gmail.com wrote:


 On Mar 13, 3:59 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:
  can anyone guide me to the path of augmented reality some nice
  tutorials, books ,special tips, platforms/sdk
  video links which can do the magic,..

 Here you go:  http://tinyurl.com/663pdl2

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

2011-03-10 Thread Robin Talwar
On Thu, Mar 10, 2011 at 2:49 PM, a a harvey.a...@gmail.com wrote:

 HI guys,

  would you share with me where can i get some android game souce code
 like angrybirds...?


Nobody has that and the owner will not do that. Even if someone provides
you, u wont be able to understand that complex code


  i want to develop the game, but i don't know how start?


Have you ever done game development? start making a simple game first . Its
not a CMS u are working on its android.


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

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

2011-03-10 Thread Robin Talwar
Yes i am sure it must be by some way or other

On Thu, Mar 10, 2011 at 2:40 PM, Jayanthi jaia...@gmail.com wrote:

 Hi,
can anyine tell me  Whether voice chat and video conference is
 possible in android

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

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

2011-03-10 Thread Robin Talwar
Ya sure... just wait i will provide you the complete source code

On Thu, Mar 10, 2011 at 5:30 PM, Jayanthi jaia...@gmail.com wrote:

 Fine, Do google provide any Library for video conference

 On Mar 10, 4:18 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  Yes i am sure it must be by some way or other
 
  On Thu, Mar 10, 2011 at 2:40 PM, Jayanthi jaia...@gmail.com wrote:
   Hi,
  can anyine tell me  Whether voice chat and video conference is
   possible in android
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
 

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

2011-03-10 Thread Robin Talwar
i had the same problem

In my parser i replaced the qName with localName parameter and boom i got it
working.
Hope that works :)

On Fri, Mar 11, 2011 at 1:02 AM, Adam Ashton adamash...@gmail.com wrote:

 It's the xpath that wasn't put in until level 8.


 On 10 March 2011 18:51, TreKing treking...@gmail.com wrote:

 On Thu, Mar 10, 2011 at 12:32 PM, Adam adamash...@gmail.com wrote:

 I can't use the in-built java API as I am trying to develop my app on
 Andoid on 1.5 so I'm using JDOM.


 What does 1.5 have to do with it? All the XML stuff, AFAICT, has been
 available since the beginning.


 Anyone know how I can parse the XML for m android app?


 Check the docs, there are plenty of options.


 http://developer.android.com/reference/javax/xml/parsers/package-summary.html
 http://developer.android.com/reference/javax/xml/parsers/package-summary.html
 http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
 http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
 http://developer.android.com/reference/org/xml/sax/package-summary.html
  http://developer.android.com/reference/org/xml/sax/package-summary.html
 http://developer.android.com/reference/org/w3c/dom/package-summary.html


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


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

2011-03-10 Thread Robin Talwar
Ok following is the peice of code how it should be.
qName and localName are the arguments which you place in startElement and
endElement.

Code :-

public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException {
// reset
tempVal = ;
if (qName.equals(track)) {
track = new Track();
} else if (qName.equals(musicalbum)) {
album = new Album();
}
}

public void characters(char[] ch, int start, int length)
throws SAXException {
tempVal = new String(ch, start, length);
}

public void endElement(String uri, String localName, String qName)
throws SAXException {

if (qName.equals(track)) {
tracks.add(track);
} else if (qName.equals(title)) {
track.setTitle(tempVal);
} else if (qName.equals(image)) {
track.setImageUrl(tempVal);
} else if (qName.equals(content_id)) {
track.setContentId(tempVal);
} else if (qName.equals(musictitle)) {
album.setAlbumName(tempVal);
} else if (qName.equals(musicimage)) {
album.setImageUrl(tempVal);
} else if (qName.equals(preview)){
track.setTrackPreviewUrl(tempVal);
}
}

I dont exactly know the reason but m pretty sure you just have to exchange
the variables qName and localName bla bla
hit and trial

Plus i googled and i also found that you have to remove some overrides as
well to get it working

On Fri, Mar 11, 2011 at 5:29 AM, Adam adamash...@gmail.com wrote:

 Thanks for your reply.

 qName? local name?? How would I go about doing this with the SAXBuilder? I
 can't see any documentation on changing my URL to use qualified names and
 such.

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

2011-03-09 Thread Robin Talwar
the code that i am using right now is
File f = new File(PathToFile);
f.delete();

and when i switch off the phone and switch on again then the database is
updated and i am shown the correct list.
But i want to update the list the time the user clicks the Delete button.
Any help will be much appreciated

On Wed, Mar 9, 2011 at 10:52 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Can we update the database??
 Since i am deleting the songs from sdcard so i would like to show the
 updated list when delete button is clicked

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

2011-03-09 Thread Robin Talwar
Thanks trekking

I am able to update the music list now but to see the updated list now i
dont have to restart my phone but restart the application.
Well somewhat close but not enough :)

On Thu, Mar 10, 2011 at 2:17 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
  wrote:

 But i want to update the list the time the user clicks the Delete
 button.


 See if this helps:

 http://developer.android.com/reference/android/media/MediaScannerConnection.html


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


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

2011-03-09 Thread Robin Talwar
I needed to add the following code :-
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(file:// +
Environment.getExternalStorageDirectory(;
in my class file and following in manifest :-

intent-filter
  action android:name=android.intent.action.MEDIA_MOUNTED /
  data android:scheme=file /
/intent-filter


But i can not get the updated list at that very instant

On Thu, Mar 10, 2011 at 3:03 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Thanks trekking

 I am able to update the music list now but to see the updated list now i
 dont have to restart my phone but restart the application.
 Well somewhat close but not enough :)


 On Thu, Mar 10, 2011 at 2:17 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 But i want to update the list the time the user clicks the Delete
 button.


 See if this helps:

 http://developer.android.com/reference/android/media/MediaScannerConnection.html


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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




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

2011-03-09 Thread Robin Talwar
Well this is what i got when i checked my logcat

03-10 03:17:27.732: ERROR/MediaScannerService(401): Failed to delete file
/data/data/com.android.providers.media/pause_scan

when i start the intent again to check the list of tracks then i get this
error while if i restart the application then i don't see this
and see the updated list

On Thu, Mar 10, 2011 at 3:05 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 I needed to add the following code :-
 sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(file:// +
 Environment.getExternalStorageDirectory(;
 in my class file and following in manifest :-

 intent-filter
   action android:name=android.intent.action.MEDIA_MOUNTED /

   data android:scheme=file /
 /intent-filter


 But i can not get the updated list at that very instant


 On Thu, Mar 10, 2011 at 3:03 AM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Thanks trekking

 I am able to update the music list now but to see the updated list now i
 dont have to restart my phone but restart the application.
 Well somewhat close but not enough :)


 On Thu, Mar 10, 2011 at 2:17 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 But i want to update the list the time the user clicks the Delete
 button.


 See if this helps:

 http://developer.android.com/reference/android/media/MediaScannerConnection.html


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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





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

2011-03-09 Thread Robin Talwar
I think i have to call finish() and then somehow run the activity in order
to show the updated list

On Thu, Mar 10, 2011 at 3:19 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Well this is what i got when i checked my logcat

 03-10 03:17:27.732: ERROR/MediaScannerService(401): Failed to delete file
 /data/data/com.android.providers.media/pause_scan

 when i start the intent again to check the list of tracks then i get this
 error while if i restart the application then i don't see this
 and see the updated list


 On Thu, Mar 10, 2011 at 3:05 AM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 I needed to add the following code :-
 sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(file://
 + Environment.getExternalStorageDirectory(;
 in my class file and following in manifest :-

 intent-filter
   action android:name=android.intent.action.MEDIA_MOUNTED /


   data android:scheme=file /
 /intent-filter


 But i can not get the updated list at that very instant


 On Thu, Mar 10, 2011 at 3:03 AM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Thanks trekking

 I am able to update the music list now but to see the updated list now i
 dont have to restart my phone but restart the application.
 Well somewhat close but not enough :)


 On Thu, Mar 10, 2011 at 2:17 AM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 But i want to update the list the time the user clicks the Delete
 button.


 See if this helps:

 http://developer.android.com/reference/android/media/MediaScannerConnection.html


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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






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

2011-03-04 Thread Robin Talwar
Ok now i really dont understand what has the logcat to do with my emulator
configuration.

The above logcat was pasted when i started the 2.1 emulator with wvga800 and
screen size (in) = 5

The following is the logcat which i get when i start the same emulator with
screen size (in) = 6  Monitor (dpi) be 17' in both the cases.

03-05 12:32:13.553: WARN/dalvikvm(232): threadid=3: thread exiting with
uncaught exception (group=0x4001b188)
03-05 12:32:13.563: ERROR/AndroidRuntime(232): Uncaught handler: thread main
exiting due to uncaught exception
03-05 12:32:13.623: ERROR/AndroidRuntime(232):
java.lang.NullPointerException
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:161)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:1)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.os.AsyncTask.finish(AsyncTask.java:417)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.os.AsyncTask.access$300(AsyncTask.java:127)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.os.Looper.loop(Looper.java:123)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
android.app.ActivityThread.main(ActivityThread.java:4363)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
java.lang.reflect.Method.invokeNative(Native Method)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
java.lang.reflect.Method.invoke(Method.java:521)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
dalvik.system.NativeStart.main(Native Method)


And i get this message after the splash screen.
Music Screen has async task which is calling various classes in various
packages for parsing the xml content.
Is this a problem in xml parser??

On Sat, Mar 5, 2011 at 12:24 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I know i have posted the same problem earlier but this time it is
 giving some other errors.
 I simply want to downgrade my api level 8 to 7 so that i can run the
 application both on 2.2 and 2.1 devices.
 The application is running perfectly fine on 2.2 and is having problem
 working on 2.1

 I have done changes in manifest.xml and project - properties

 My application basically uses sax parser , facebook sdk , twitter
 connect

 The following is the logcat which i get :-

 03-05 12:14:47.014: INFO/ActivityManager(58): Starting activity:
 Intent { act=android.intent.action.MAIN
 cat=[android.intent.category.LAUNCHER] flg=0x1000
 cmp=com.hungama.myplay.activity/.Splash }
 03-05 12:14:47.174: DEBUG/AndroidRuntime(245): Shutting down VM
 03-05 12:14:47.174: DEBUG/dalvikvm(245): DestroyJavaVM waiting for non-
 daemon threads to exit
 03-05 12:14:47.194: DEBUG/dalvikvm(245): DestroyJavaVM shutting VM
 down
 03-05 12:14:47.194: DEBUG/dalvikvm(245): HeapWorker thread shutting
 down
 03-05 12:14:47.204: DEBUG/dalvikvm(245): HeapWorker thread has shut
 down
 03-05 12:14:47.204: DEBUG/jdwp(245): JDWP shutting down net...
 03-05 12:14:47.204: INFO/dalvikvm(245): Debugger has detached; object
 registry had 1 entries
 03-05 12:14:47.214: DEBUG/dalvikvm(245): VM cleaning up
 03-05 12:14:47.275: ERROR/AndroidRuntime(245): ERROR: thread attach
 failed// ERROR
 03-05 12:14:47.475: DEBUG/dalvikvm(245): LinearAlloc 0x0 used 639500
 of 5242880 (12%)
 03-05 12:14:48.615: INFO/ActivityManager(58): Displayed activity
 com.hungama.myplay.activity/.Splash: 1461 ms (total 1461 ms)
 03-05 12:14:53.914: DEBUG/dalvikvm(106): GC freed 170 objects / 7112
 bytes in 261ms
 03-05 12:14:56.144: WARN/InputManagerService(58): Window already
 focused, ignoring focus gain of:
 com.android.internal.view.IInputMethodClient$Stub$Proxy@43c5eee0
 03-05 12:15:05.355: DEBUG/dalvikvm(224): GC freed 1620 objects /
 115968 bytes in 245ms
 03-05 12:15:05.395: ERROR/webcoreglue(224): The real object has been
 deleted
 03-05 12:15:05.415: DEBUG/webviewglue(224): nativeDestroy view:
 0x2eb310

 Thanks

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to 

Re: [android-developers] Downgrade from api level 8 to 7 gives weird logcat.... HELP

2011-03-04 Thread Robin Talwar
The line 161 is :-
for (int i = 0; i  tracks.size(); i++)

Where tracks is an arrayList and all this code is* working fine in 2.2*

On Sat, Mar 5, 2011 at 12:36 PM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Ok now i really dont understand what has the logcat to do with my emulator
 configuration.

 The above logcat was pasted when i started the 2.1 emulator with wvga800
 and screen size (in) = 5

 The following is the logcat which i get when i start the same emulator with
 screen size (in) = 6  Monitor (dpi) be 17' in both the cases.

 03-05 12:32:13.553: WARN/dalvikvm(232): threadid=3: thread exiting with
 uncaught exception (group=0x4001b188)
 03-05 12:32:13.563: ERROR/AndroidRuntime(232): Uncaught handler: thread
 main exiting due to uncaught exception
 03-05 12:32:13.623: ERROR/AndroidRuntime(232):
 java.lang.NullPointerException
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:161)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 com.hungama.myplay.activity.MusicScreen$FetchTopMusic.onPostExecute(MusicScreen.java:1)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.os.AsyncTask.finish(AsyncTask.java:417)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.os.AsyncTask.access$300(AsyncTask.java:127)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.os.Looper.loop(Looper.java:123)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 java.lang.reflect.Method.invoke(Method.java:521)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 03-05 12:32:13.623: ERROR/AndroidRuntime(232): at
 dalvik.system.NativeStart.main(Native Method)


 And i get this message after the splash screen.
 Music Screen has async task which is calling various classes in various
 packages for parsing the xml content.
 Is this a problem in xml parser??


 On Sat, Mar 5, 2011 at 12:24 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I know i have posted the same problem earlier but this time it is
 giving some other errors.
 I simply want to downgrade my api level 8 to 7 so that i can run the
 application both on 2.2 and 2.1 devices.
 The application is running perfectly fine on 2.2 and is having problem
 working on 2.1

 I have done changes in manifest.xml and project - properties

 My application basically uses sax parser , facebook sdk , twitter
 connect

 The following is the logcat which i get :-

 03-05 12:14:47.014: INFO/ActivityManager(58): Starting activity:
 Intent { act=android.intent.action.MAIN
 cat=[android.intent.category.LAUNCHER] flg=0x1000
 cmp=com.hungama.myplay.activity/.Splash }
 03-05 12:14:47.174: DEBUG/AndroidRuntime(245): Shutting down VM
 03-05 12:14:47.174: DEBUG/dalvikvm(245): DestroyJavaVM waiting for non-
 daemon threads to exit
 03-05 12:14:47.194: DEBUG/dalvikvm(245): DestroyJavaVM shutting VM
 down
 03-05 12:14:47.194: DEBUG/dalvikvm(245): HeapWorker thread shutting
 down
 03-05 12:14:47.204: DEBUG/dalvikvm(245): HeapWorker thread has shut
 down
 03-05 12:14:47.204: DEBUG/jdwp(245): JDWP shutting down net...
 03-05 12:14:47.204: INFO/dalvikvm(245): Debugger has detached; object
 registry had 1 entries
 03-05 12:14:47.214: DEBUG/dalvikvm(245): VM cleaning up
 03-05 12:14:47.275: ERROR/AndroidRuntime(245): ERROR: thread attach
 failed// ERROR
 03-05 12:14:47.475: DEBUG/dalvikvm(245): LinearAlloc 0x0 used 639500
 of 5242880 (12%)
 03-05 12:14:48.615: INFO/ActivityManager(58): Displayed activity
 com.hungama.myplay.activity/.Splash: 1461 ms (total 1461 ms)
 03-05 12:14:53.914: DEBUG/dalvikvm(106): GC freed 170 objects / 7112
 bytes in 261ms
 03-05 12:14:56.144: WARN/InputManagerService(58): Window already
 focused, ignoring focus gain of:
 com.android.internal.view.IInputMethodClient$Stub$Proxy@43c5eee0
 03-05 12:15:05.355: DEBUG/dalvikvm(224): GC freed 1620 objects /
 115968 bytes in 245ms
 03-05 12:15:05.395: ERROR/webcoreglue(224): The real object has been
 deleted
 03-05 12:15:05.415: DEBUG/webviewglue(224): nativeDestroy view:
 0x2eb310

 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

Re: [android-developers] Lazy Loading in custom View

2011-03-01 Thread Robin Talwar
Sorry couldnt manage to get the screenshot some problem in my sdk i guess.

Though i can share the code of my list item

package com.hungama.myplay.utils;

import java.io.IOException;
import java.net.URL;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.hungama.myplay.activity.R;
import com.hungama.myplay.model.Album;
import com.hungama.myplay.model.Category;
import com.hungama.myplay.model.DownloadPlan;
import com.hungama.myplay.model.SearchElement;
import com.hungama.myplay.model.Track;
import com.hungama.myplay.model.VideoElement;

public class ListItemView extends LinearLayout {
private Activity activity;
private Track track;
private Album album;
private Category category;
private int resId;
private ImageView iv_thumb;
private VideoElement video;
private int bgColor = -1;
private SearchElement searchElement;
private byte searchType;
private boolean isPlaylistItem;
private DownloadPlan plan;

public ListItemView(Activity context, AttributeSet attrs) {
super(context, attrs);
activity = context;
}

public ListItemView(Activity context, int resId, Track track) {
super(context);
activity = context;
this.track = track;
this.resId = resId;

addView(getListElementView());
}

public ListItemView(Activity context, int resId, Track track,
boolean isPlaylistItem) {
super(context);
activity = context;
this.track = track;
this.resId = resId;
this.isPlaylistItem = isPlaylistItem;

addView(getListElementView());
}

public ListItemView(Activity context, int resId,
SearchElement searchElement, byte searchType) {
super(context);
this.searchType = searchType;
activity = context;
this.searchElement = searchElement;
this.resId = resId;

addView(getListElementView());
}

public ListItemView(Activity context, int resId, Album album) {
super(context);
activity = context;
this.album = album;
this.resId = resId;

addView(getListElementView());
}

public ListItemView(Activity context, int resId, VideoElement video) {
super(context);
activity = context;
this.video = video;
this.resId = resId;

addView(getListElementView());
}

public ListItemView(Activity context, int resId, DownloadPlan plan) {
super(context);
activity = context;
this.plan = plan;
this.resId = resId;

addView(getListElementView());
}

public ListItemView(Activity activity2, int listElementView, int grey,
Category category2) {
super(activity2);
activity = activity2;
this.category = category2;
this.resId = listElementView;
bgColor = grey;

addView(getListElementView());
}

private View getListElementView() {
LayoutInflater inflater = activity.getLayoutInflater();
View ConvertView = inflater.inflate(resId, null);
LinearLayout linearLayout = (LinearLayout) ConvertView
.findViewById(R.id.l_list_element_super_view);
if (plan == null) {
iv_thumb = (ImageView)
ConvertView.findViewById(R.id.iv_thumbnail);
ImageButton imageButton = (ImageButton) ConvertView
.findViewById(R.id.imb_download);
if (!isPlaylistItem) {
FetchImage fetchImage = new FetchImage();
fetchImage.execute();
} else {
iv_thumb.setImageResource(R.drawable.music);
imageButton.setVisibility(View.GONE);
}
TextView tv_title = (TextView) ConvertView
.findViewById(R.id.tv_list_element_title);
TextView tvSecondLine = (TextView) ConvertView
.findViewById(R.id.tv_list_element_album);
if (this.track != null) {
TextView tv_albumName = (TextView) ConvertView
.findViewById(R.id.tv_list_element_album);
tv_albumName.setText(track.getAlbum());
if (track.getTitle() != null) {
tv_title.setText(track.getTitle());
}
if (track.getAlbum() != null) {
tvSecondLine.setText(track.getAlbum());
}
} else if (this.album != null) {

imageButton.setVisibility(View.GONE);
if (album.getAlbumName() != null) {
tv_title.setText(album.getAlbumName());
}
   

Re: [android-developers] LIST

2011-02-22 Thread Robin Talwar
you can check your api demos which are present in your SDK folder - samples


Import it and play

On Fri, Feb 18, 2011 at 6:21 AM, The Guy abdul.pan...@gmail.com wrote:

 Am a beginner at android programming and am trying to create a list
 view that has several options and within those options there are more
 options and when selected information about the selected item appears.

 For Example, A list of cars: BMW, TOYOTA, Ferrari and so on. When one
 of these is selected, for instance, BMW, a list of the various models
 under the BMW make appear. SO, when the user selects the model he
 wants it opens a screen that has all the data about that particular
 model.

 Any suggestions on the way the coding should be ? a brief coding
 sample would be appreciated, ive tried doing some but have failed
 numerously. Maybe its the fact that i have just started.

 Thank you

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

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

Re: [android-developers] Re: How can i control room lights with my android phone :)

2011-02-22 Thread Robin Talwar
Thanks man
I appreciate it


On Mon, Feb 21, 2011 at 11:44 PM, Raivis raivu...@gmail.com wrote:

 I suggest You to start almost from scratch, buy an arduino, build your
 own circuit. Connect it to computer, then connect your android app
 with computer which will control your lights.
 Then you can make something more complicated, add bluetooth to
 arduino.


 This way it is more FUN, than just buying a circuit which controls the
 lights! After the hard work developing hardware makes me proud XD
 Personally, I'm not using arduino, but for beginners that board is
 easy to learn, and has internet full of tutorials and schematics. Try
 googling this arduino relay driver

 On Feb 21, 12:07 am, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:
  I know there are some i-phone apps for this.
  So here goes my question how can i control my room lights or may be
  for a start my lamp light with my android phone. I dont wanna buy an
  application for that i wanna code it and may be do some wiring stuff
  or anything else which is required for the purpopse.
 
  I am not expecting the exact answer, but still any help will be
  appreciated .

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


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

Re: [android-developers] Re: How can i control room lights with my android phone :)

2011-02-20 Thread Robin Talwar
i beleive this is what you mean
http://en.wikipedia.org/wiki/X10_%28industry_standard%29

On Mon, Feb 21, 2011 at 3:49 AM, Spiral123 cumis...@gmail.com wrote:

 X10

 On Feb 20, 5:07 pm, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:
  I know there are some i-phone apps for this.
  So here goes my question how can i control my room lights or may be
  for a start my lamp light with my android phone. I dont wanna buy an
  application for that i wanna code it and may be do some wiring stuff
  or anything else which is required for the purpopse.
 
  I am not expecting the exact answer, but still any help will be
  appreciated .

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


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

Re: [android-developers] Re: How can i control room lights with my android phone :)

2011-02-20 Thread Robin Talwar
Well ya i think i shud first try my hands on hooking the light to internet
and then delve into doing this with mobile phone.

I can see some resource available for that still go ahead if anyone wants to
share a link.


On Mon, Feb 21, 2011 at 8:01 AM, metal mikey coref...@gmail.com wrote:

 Here's one idea:

 1) Install a lighting system that responds to hand claps.
 2) Write an App that makes a loud hand-clap sound when you press a
 button.

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

2011-02-18 Thread Robin Talwar
I just want to know how to fetch the album art of the downloaded song.
I am downloading songs from my application which is running on emulator.
All i have searched over net and only solution till now i have got is amazon
webservice solution but i want the album art to be showing even if the user
doesnt has net access.
Any help on this issue will be appreciated

On Wed, Feb 2, 2011 at 1:55 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 In my application i am using video view to play songs from sd card
 But apparently i get the blank screen as this is a video and the media
 controller is set at the bottom which appears to be visible only for 3
 seconds so the whole screen is blank.
 I was wondering if the easy way out to this problem is of adding the
 albumart in the layout so that the screen has atleast something to
 show.
 Plus can we add an Image in Video View and i can set it to a single
 drawable image which will appear all the time when any song is
 played.
 Whatever is possible please let me know
 Beginners request a simple way out to the problem :) thanks in advance

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

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

Re: [android-developers] Canvas or Gesture??

2011-02-16 Thread Robin Talwar
On Tue, Feb 15, 2011 at 6:35 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 15 February 2011 13:10, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

  Saving this bitmap and

 String path = Environment.getExternalStorageDirectory().toString();
 OutputStream fOut = new FileOutputStream( new File(path, filename.jpg) );
 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, fOut);
 fOut.flush();
 fOut.close();

  Erase button to clear all the canvas so that user can again make
 signature
  on clear screen.


 http://developer.android.com/reference/android/graphics/Canvas.html#drawRGB%28int,%20int,%20int%29

 but again: do RTFM first as there are other options you may want to
 utilse (i.e. you may want to save as PNG instead of lossy JPEG) or
 simply to know whene you will be trying to reinvent the wheel.

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

2011-02-16 Thread Robin Talwar
 + mY)/2);
mX = x;
mY = y;
}
}
private void touch_up() {
mPath.lineTo(mX, mY);
// commit the path to our offscreen
mCanvas.drawPath(mPath, mPaint);
// kill this so we don't double draw
mPath.reset();
}

@Override
public boolean onTouchEvent(MotionEvent event) {
float x = event.getX();
float y = event.getY();

switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
touch_start(x, y);
invalidate();
break;
case MotionEvent.ACTION_MOVE:
touch_move(x, y);
invalidate();
break;
case MotionEvent.ACTION_UP:
touch_up();
invalidate();
break;
}
return true;
}

}


On Tue, Feb 15, 2011 at 6:35 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 15 February 2011 13:10, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

  Saving this bitmap and

 String path = Environment.getExternalStorageDirectory().toString();
 OutputStream fOut = new FileOutputStream( new File(path, filename.jpg) );
 bitmap.compress(Bitmap.CompressFormat.JPEG, 85, fOut);
 fOut.flush();
 fOut.close();

  Erase button to clear all the canvas so that user can again make
 signature
  on clear screen.


 http://developer.android.com/reference/android/graphics/Canvas.html#drawRGB%28int,%20int,%20int%29

 but again: do RTFM first as there are other options you may want to
 utilse (i.e. you may want to save as PNG instead of lossy JPEG) or
 simply to know whene you will be trying to reinvent the wheel.

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

2011-02-15 Thread Robin Talwar
Ya this is not my first application , i have done some media streaming ,
played with database , web services so if guided will not
take much time to make this application.
I am now looking into api demo's FingerPaint application.
I can now give the touch paint facility so that user can touch the screen
and drag the finger in whicheva shape and create whatever. Basically user
can now make a signature but two things which are lacking are :-

Saving this bitmap and
Erase button to clear all the canvas so that user can again make signature
on clear screen.



On Tue, Feb 15, 2011 at 5:09 PM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

 On 14 February 2011 21:40, Robin Talwar r.o.b.i.n.abhis...@gmail.com
 wrote:

  Is that all possible? can i convert a gesture into an image?

 No. But you can paint on your canvase based on user gestures or touches.
 I'd suggest you read some basics on what canvas, paint, bitmap is and what
 they do offer and then read on GestureDetector and motionEvents your
 listener will get. Then you (assuming it's not goint to be your first app
 ever)
 shall get the picture on what you get as input and how you can use it.

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

2011-02-14 Thread Robin Talwar
Ok lemme refine the question.

How to use canvas to sensetize the touch event and then save the image
created by the user through touch and mail it as an attachment

On Mon, Feb 14, 2011 at 7:13 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Hi guys
 I have to make an application in which the user can sign on the
 touchscreen and that signature
 of his gets saved in the device and then if he clicks on the mail
 button a mail is send with that sign image as an
 attachment.

 I spend some time doing this with gesture but now since i have googled
 much i think canvas can also do this.
 But my problem is that both of these are new to me so kindly suggest
 what should be my pick and how should i plan my quest over this
 particular 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.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] Canvas or Gesture??

2011-02-14 Thread Robin Talwar
but i also need to save it and then convert the gesture to image and then
mail it as an attachment.
Is that all possible? can i convert a gesture into an image?

On Tue, Feb 15, 2011 at 2:06 AM, Marcin Orlowski
webnet.andr...@gmail.comwrote:

  How to use canvas to sensetize the touch event and then save the image
  created by the user through touch and mail it as an attachment

 You do not use canvas to sense anything. Canvas is, as name indicates,
 a way of drawing. And that's mainly it. If you want to react on user
 gestures or touches, use GestureDetector process motionEvents your
 listener get and paint them on your canvas.

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

2011-02-09 Thread Robin Talwar
Ok finally today i got my first post on twitter :) and then haywards 5000 to
celebrate ahe

so i have found the best solution for the beginner to integrate twitter
since it has only one library which does authentication and even updates the
status . Follow the link :-

http://thetechnib.blogspot.com/2011/01/android-sign-in-with-twitter.html

Now obviously you will be embedding it in some applications on which posting
to twitter is not the first activity.
In that case you will have to add
android:launchmode = singleInstance in your activity tag in manifest file

Also it is better to use jtwitter 2.1.7 or latest since the code has
jtwitter 2.1.0 and i got stuck for 4 hours for that reason
*
Note: Be careful in mentioning the Callback Url*

On Mon, Feb 7, 2011 at 3:16 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Ok i got it
 i organized all my jar files in lib folder and made necessary changes in
 import statements.
 Now i can login to the twitter account and authorize the app.
 But i still can not update the status :(


 On Mon, Feb 7, 2011 at 2:42 AM, Lance Nanek lna...@gmail.com wrote:

 Those classes are in the Twitter4J core JAR. So that isn't getting
 properly included in your Java build path as a library if you can't
 import them. So double check that.

 One problematic thing I see you doing earlier is keeping your library
 JARs in the assets folder. The assets folder is a special folder used
 for things like HTML files that you want included with your
 application and accessible at runtime just as they are. You shouldn't
 keep library JARs in there. Those have to be converted from Java byte
 code to Dalvik code anyway. You should use a different directory, like
 a lib directory under your project directory. The fact that they are
 referenced as libraries will make sure they are converted and the
 converted output included in your APK. See this link:

 http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary

 And the sidebar here:

 http://developer.android.com/guide/topics/resources/accessing-resources.html

 On Feb 6, 1:51 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  hey
  thanks for sharing the link i have added all the three jars and made one
  class file copied the code.
  Everything is fine i have removed many errors by importing specific
 classes
  and setting up the context.
  But still there are two class files which eclipse is not able to import
 and
  these are :-
 
 -
 
 import twitter4j.http.AccessToken;
 
 -
 
 import twitter4j.TwitterFactory;
 
  and hence there are errors in my file so please guide me where did i go
  wrong.
 
  On Sun, Feb 6, 2011 at 7:42 PM, Lance Nanek lna...@gmail.com wrote:
   I use:http://twitter4j.org/
 
   There are various examples out there:
 
  http://code.google.com/p/agirardello/source/browse/trunk/OAuthExample.
 ..
 
   On Feb 6, 3:49 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
Ya i got you. May be i got you wrong plus there are not much android
experienced developers who like to encourage beginners
out there. Anyways treking i have done some google search and i have
   reached
a safe stage where i am directing my app to OAUTH login page and
 when the
user logs in he is directed back to my application but now i dont
 know
   how
to update its twitter status?
Should i do that in onResume?
The following are the steps i followed :-
 
   - I added signpost core and signpost commonshttp4 jar files in
 assets
   folder
   - then i added them in build path
   - Then in my main java file i declare following constants before
   oncreate
 
private static final String CONSUMER_KEY = EuMduRyU4fJcaVgPuN9vA;
private static final String CONSUMER_SECRET =
JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU;
 
private static String ACCESS_KEY = null;
private static String ACCESS_SECRET = null;
 
private static final String REQUEST_URL = 
  http://twitter.com/oauth/request_token;;
private static final String ACCESS_TOKEN_URL = 
  http://twitter.com/oauth/access_token;;
private static final String AUTH_URL = 
  http://twitter.com/oauth/authorize;;
private static final String CALLBACK_URL = myTweet://twitt;
private static final String PREFERENCE_FILE =
 twitter_oauth.prefs;
 
private static CommonsHttpOAuthConsumer consumer = new
CommonsHttpOAuthConsumer(
CONSUMER_KEY, CONSUMER_SECRET);
private static CommonsHttpOAuthProvider provider = new
CommonsHttpOAuthProvider(
REQUEST_URL, ACCESS_TOKEN_URL, AUTH_URL);
 
   - In oncreate i created an onclick listener with the following
 code :-
 
try {
 String authURL = provider.retrieveRequestToken(
consumer, CALLBACK_URL);
 
Log.d(OAuthTwitter, authURL);
startActivity(new Intent(Intent.ACTION_VIEW, Uri
.parse

Re: [android-developers] Android emulator can't find internet connection

2011-02-07 Thread Robin Talwar
Do u have this in manifest file :-
uses-permission
android:name=android.permission.INTERNET/uses-permission

You have to set permission in manifest file for emulator to access internet

On Mon, Feb 7, 2011 at 9:55 PM, Lidia G lidyp...@yahoo.com wrote:

 Hello guys,


 Please help me solve this unpleasure problem, i do not know what to do
 else.

 First i used android-sdk-r07-windows and installed from ADT plugin only AVD
 Google 2.1 APi 7

 Then i updated the rest of AVD and any other updated resources available
 from https://dl-ssl.google.com/android/eclipse/

 After this update my Android emulators are not recognising the internet
 connection at all.

 I have a simple LAN internet connection, with a DHCP configuration that
 provides an dynamic IP.

 Then i installed android-sdk_r09-windows , and installed the ADT plugin
 with all available resources. and i got the same problem.

 How can i manually set the internet connection for an android emulator??
 or Where can i see the reason of the internet connection failure?

 I found that if i start an emulator from command line like
 emulator  -verbose -avd emulator_name  this may tell the possible
 reason of internet connection failure, but i don't understand its details:


 //

 C:\android\android-sdk_r09-windows\toolsemulator -verbose -avd google_8

 emulator: found SDK root at C:\android\android-sdk_r09-windows

 emulator: root virtual device file at C:\Documents and
 Settings\lidia.gutu\.andr

 oid/avd/google_8.ini

 emulator: virtual device content at C:\Documents and
 Settings\lidia.gutu\.androi

 d\avd\google_8.avd

 emulator: virtual device config file: C:\Documents and
 Settings\lidia.gutu\.andr

 oid\avd\google_8.avd/config.ini

 emulator: locking user data image at C:\Documents and
 Settings\lidia.gutu\.a

 ndroid\avd\google_8.avd/userdata-qemu.img

 emulator: locking cache image at C:\Documents and
 Settings\lidia.gutu\.andro

 id\avd\google_8.avd/cache.img

 emulator: locking SD Card image at C:\Documents and
 Settings\lidia.gutu\.and

 roid\avd\google_8.avd/sdcard.img

 emulator: ignoring non-existing snapshots at C:\Documents and
 Settings\lidia.gut

 u\.android\avd\google_8.avd/snapshots.img: No such file or directory

 emulator: found skin 'WVGA800' in directory:
 C:\android\android-sdk_r09-windows/

 platforms\android-8\skins

 emulator: autoconfig: -skin WVGA800

 emulator: autoconfig: -skindir
 C:\android\android-sdk_r09-windows/platforms\andr

 oid-8\skins

 emulator: keyset loaded from: C:\Documents and
 Settings\lidia.gutu\.android\defa

 ult.keyset

 emulator: trying to load skin file
 'C:\android\android-sdk_r09-windows/platforms

 \android-8\skins/WVGA800/layout'

 emulator: skin network speed: 'full'

 emulator: skin network delay: 'none'

 emulator: argv[00] = emulator

 emulator: argv[01] = -kernel

 emulator: argv[02] =
 C:\android\android-sdk_r09-windows/platforms\android-8\ima

 ges\/kernel-qemu

 emulator: argv[03] = -netspeed

 emulator: argv[04] = full

 emulator: argv[05] = -netdelay

 emulator: argv[06] = none

 emulator: argv[07] = -initrd

 emulator: argv[08] =
 C:\android\android-sdk_r09-windows/add-ons\addon_google_ap

 is_google_inc_8\images\/ramdisk.img

 emulator: argv[09] = -nand

 emulator: argv[10] =
 system,size=0x540,initfile=C:\android\android-sdk_r09-

 windows/add-ons\addon_google_apis_google_inc_8\images\/system.img

 emulator: argv[11] = -nand

 emulator: argv[12] = userdata,size=0x420,file=C:\Documents and
 Settings\lid

 ia.gutu\.android\avd\google_8.avd/userdata-qemu.img

 emulator: argv[13] = -nand

 emulator: argv[14] = cache,size=0x420,file=C:\Documents and
 Settings\lidia.

 gutu\.android\avd\google_8.avd/cache.img

 emulator: argv[15] = -hda

 emulator: argv[16] = C:\Documents and
 Settings\lidia.gutu\.android\avd\google_8

 .avd/sdcard.img

 emulator: argv[17] = -loadvm

 emulator: argv[18] = default-boot

 emulator: argv[19] = -savevm-on-exit

 emulator: argv[20] = default-boot

 emulator: argv[21] = -serial

 emulator: argv[22] = android-kmsg

 emulator: argv[23] = -serial

 emulator: argv[24] = android-qemud

 emulator: argv[25] = -lcd-density

 emulator: argv[26] = 240

 emulator: argv[27] = -append

 emulator: argv[28] = qemu=1 console=ttyS0 android.checkjni=1
 android.qemud=ttyS

 1

 emulator: argv[29] = -m

 emulator: argv[30] = 96

 emulator: registered 'boot-properties' qemud service

 emulator: mapping 'system' NAND image to
 C:\DOCUME~1\LIDIA~1.GUT\LOCALS~1\Temp\\

 AndroidEmulator\TMP1B89.tmp

 emulator: rounding devsize up to a full eraseunit, now 540c000



 emulator: registered 'boot-properties' qemud service

 emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m'

 emulator: Adding boot property: 'qemu.sf.lcd_density' = '240'

 emulator: Trace file name is not set



 emulator: emulator window was out of view and was recentred



 emulator: control console 

Re: [android-developers] Any twitter updates??

2011-02-06 Thread Robin Talwar
Ya i got you. May be i got you wrong plus there are not much android
experienced developers who like to encourage beginners
out there. Anyways treking i have done some google search and i have reached
a safe stage where i am directing my app to OAUTH login page and when the
user logs in he is directed back to my application but now i dont know how
to update its twitter status?
Should i do that in onResume?
The following are the steps i followed :-


   - I added signpost core and signpost commonshttp4 jar files in assets
   folder
   - then i added them in build path
   - Then in my main java file i declare following constants before
   oncreate

private static final String CONSUMER_KEY = EuMduRyU4fJcaVgPuN9vA;
private static final String CONSUMER_SECRET =
JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU;

private static String ACCESS_KEY = null;
private static String ACCESS_SECRET = null;


private static final String REQUEST_URL = 
http://twitter.com/oauth/request_token;;
private static final String ACCESS_TOKEN_URL = 
http://twitter.com/oauth/access_token;;
private static final String AUTH_URL = 
http://twitter.com/oauth/authorize;;
private static final String CALLBACK_URL = myTweet://twitt;
private static final String PREFERENCE_FILE = twitter_oauth.prefs;

private static CommonsHttpOAuthConsumer consumer = new
CommonsHttpOAuthConsumer(
CONSUMER_KEY, CONSUMER_SECRET);
private static CommonsHttpOAuthProvider provider = new
CommonsHttpOAuthProvider(
REQUEST_URL, ACCESS_TOKEN_URL, AUTH_URL);

   - In oncreate i created an onclick listener with the following code :-

try {
 String authURL = provider.retrieveRequestToken(
consumer, CALLBACK_URL);

Log.d(OAuthTwitter, authURL);
startActivity(new Intent(Intent.ACTION_VIEW, Uri
.parse(authURL)));
} catch (OAuthMessageSignerException e) {
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
e.printStackTrace();
} catch (OAuthCommunicationException e) {
e.printStackTrace();
}
}

   - Till now the code is going all well and now i create onResume with the
   following code


super.onResume();
Uri uri = this.getIntent().getData();

if (uri != null  uri.toString().startsWith(CALLBACK_URL)) {
Log.d(OAuthTwitter, uri.toString());
String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER);
Log.d(OAuthTwitter, verifier);
try {

provider.retrieveAccessToken(consumer, verifier);
ACCESS_KEY = consumer.getToken();
ACCESS_SECRET = consumer.getTokenSecret();

Log.d(OAuthTwitter, ACCESS_KEY);
Log.d(OAuthTwitter, ACCESS_SECRET);

} catch (OAuthMessageSignerException e) {
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
e.printStackTrace();
} catch (OAuthCommunicationException e) {
e.printStackTrace();
}
}

Please tell me where and what should i write now to update the status. I am
updating the status through code and not asking it from user . I think there
is some token involved so may be i would have to store it also. Anyways
please revert back if you have any solution for me i hope i made everything
clear this time :)

On Sat, Feb 5, 2011 at 10:27 PM, TreKing treking...@gmail.com wrote:

 On Sat, Feb 5, 2011 at 1:34 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
  wrote:

 Sorry i have read your other posts also
 you keep replying in the same tone anyways


 It is very difficult to convey tone in emails / posts. Tone is usually
 inferred by the reader. This perceived tone is often wrong.


 my bad i dint mention my post like :-

 For Treking  :  *Do you have any reference twitter sharing android
 tutorial??*


 There you go, that's more like it. See how clear and to that point that is?
 But there is no reason to reserve that kind of detail specifically for me -
 everyone would benefit.


 For rest of the world  :


 The rest of the world would still have no idea that you're looking for
 tutorials because, for the fourth time now, *you did not specify that in
 your original post*.

 I am simply trying to express to you the fact that when posting in this
 forum or any forum you need to be clear if you expect to get a good answer.
 I want to share via twitter, I have facebook, now I need the same for
 twitter in NO WAY implies that your problem is that you couldn't find a
 good tutorial on the subject.

 Your perception of my tone aside, do you understand what I'm trying to tell
 you?


 -
 TreKing http

Re: [android-developers] Re: Any twitter updates??

2011-02-06 Thread Robin Talwar
hey
thanks for sharing the link i have added all the three jars and made one
class file copied the code.
Everything is fine i have removed many errors by importing specific classes
and setting up the context.
But still there are two class files which eclipse is not able to import and
these are :-


   -

   import twitter4j.http.AccessToken;

   -

   import twitter4j.TwitterFactory;



and hence there are errors in my file so please guide me where did i go
wrong.

On Sun, Feb 6, 2011 at 7:42 PM, Lance Nanek lna...@gmail.com wrote:

 I use: http://twitter4j.org/

 There are various examples out there:

 http://code.google.com/p/agirardello/source/browse/trunk/OAuthExample/src/ch/ethz/oauth/OAuth.java#115

 On Feb 6, 3:49 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  Ya i got you. May be i got you wrong plus there are not much android
  experienced developers who like to encourage beginners
  out there. Anyways treking i have done some google search and i have
 reached
  a safe stage where i am directing my app to OAUTH login page and when the
  user logs in he is directed back to my application but now i dont know
 how
  to update its twitter status?
  Should i do that in onResume?
  The following are the steps i followed :-
 
 - I added signpost core and signpost commonshttp4 jar files in assets
 folder
 - then i added them in build path
 - Then in my main java file i declare following constants before
 oncreate
 
  private static final String CONSUMER_KEY = EuMduRyU4fJcaVgPuN9vA;
  private static final String CONSUMER_SECRET =
  JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU;
 
  private static String ACCESS_KEY = null;
  private static String ACCESS_SECRET = null;
 
  private static final String REQUEST_URL = 
 http://twitter.com/oauth/request_token;;
  private static final String ACCESS_TOKEN_URL = 
 http://twitter.com/oauth/access_token;;
  private static final String AUTH_URL = 
 http://twitter.com/oauth/authorize;;
  private static final String CALLBACK_URL = myTweet://twitt;
  private static final String PREFERENCE_FILE = twitter_oauth.prefs;
 
  private static CommonsHttpOAuthConsumer consumer = new
  CommonsHttpOAuthConsumer(
  CONSUMER_KEY, CONSUMER_SECRET);
  private static CommonsHttpOAuthProvider provider = new
  CommonsHttpOAuthProvider(
  REQUEST_URL, ACCESS_TOKEN_URL, AUTH_URL);
 
 - In oncreate i created an onclick listener with the following code :-
 
  try {
   String authURL = provider.retrieveRequestToken(
  consumer, CALLBACK_URL);
 
  Log.d(OAuthTwitter, authURL);
  startActivity(new Intent(Intent.ACTION_VIEW, Uri
  .parse(authURL)));
  } catch (OAuthMessageSignerException e) {
  e.printStackTrace();
  } catch (OAuthNotAuthorizedException e) {
  e.printStackTrace();
  } catch (OAuthExpectationFailedException e) {
  e.printStackTrace();
  } catch (OAuthCommunicationException e) {
  e.printStackTrace();
  }
  }
 
 - Till now the code is going all well and now i create onResume with
 the
 following code
 
  super.onResume();
  Uri uri = this.getIntent().getData();
 
  if (uri != null  uri.toString().startsWith(CALLBACK_URL)) {
  Log.d(OAuthTwitter, uri.toString());
  String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER);
  Log.d(OAuthTwitter, verifier);
  try {
 
  provider.retrieveAccessToken(consumer, verifier);
  ACCESS_KEY = consumer.getToken();
  ACCESS_SECRET = consumer.getTokenSecret();
 
  Log.d(OAuthTwitter, ACCESS_KEY);
  Log.d(OAuthTwitter, ACCESS_SECRET);
 
  } catch (OAuthMessageSignerException e) {
  e.printStackTrace();
  } catch (OAuthNotAuthorizedException e) {
  e.printStackTrace();
  } catch (OAuthExpectationFailedException e) {
  e.printStackTrace();
  } catch (OAuthCommunicationException e) {
  e.printStackTrace();
  }
  }
 
  Please tell me where and what should i write now to update the status. I
 am
  updating the status through code and not asking it from user . I think
 there
  is some token involved so may be i would have to store it also. Anyways
  please revert back if you have any solution for me i hope i made
 everything
  clear this time :)
 
  On Sat, Feb 5, 2011 at 10:27 PM, TreKing treking...@gmail.com wrote:
   On Sat, Feb 5, 2011 at 1:34 AM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com
wrote:
 
   Sorry i have read your other posts also
   you keep replying in the same tone anyways
 
   It is very difficult to convey tone in emails / posts. Tone is usually
   inferred by the reader. This perceived tone is often wrong.
 
   my bad i dint mention my post like

Re: [android-developers] Any twitter updates??

2011-02-06 Thread Robin Talwar
:) thanks

On Mon, Feb 7, 2011 at 1:57 AM, TreKing treking...@gmail.com wrote:

 On Sun, Feb 6, 2011 at 2:49 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
  wrote:

 Ya i got you. May be i got you wrong plus there are not much android
 experienced developers who like to encourage beginners
 out there.


 It's not that experience developers don't want to encourage beginners, it's
 that a lot of beginners come here with posts like I'm new, I don't know
 Java, I want to make an Android App that can pilot a Space Shuttle. Plz give
 me d codes. It's better not to encourage this. People that are clear, show
 they doing their own work, and just need some nudging in the right
 direction, usually get good responses.

 Sorry, I tend to go off on tangents - anyways, as for you actual problem, I
 don't know - I can't really help you. I haven't used Twitter, or Facebook,
 or OAuth. Questions on those topics usually go unanswered around here so you
 may have trouble getting a good response. My only suggestion would be
 looking for demo projects or samples on Twitter's own site or using their
 APIs.

 Good luck.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


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

Re: [android-developers] Re: Any twitter updates??

2011-02-06 Thread Robin Talwar
Ok i got it
i organized all my jar files in lib folder and made necessary changes in
import statements.
Now i can login to the twitter account and authorize the app.
But i still can not update the status :(

On Mon, Feb 7, 2011 at 2:42 AM, Lance Nanek lna...@gmail.com wrote:

 Those classes are in the Twitter4J core JAR. So that isn't getting
 properly included in your Java build path as a library if you can't
 import them. So double check that.

 One problematic thing I see you doing earlier is keeping your library
 JARs in the assets folder. The assets folder is a special folder used
 for things like HTML files that you want included with your
 application and accessible at runtime just as they are. You shouldn't
 keep library JARs in there. Those have to be converted from Java byte
 code to Dalvik code anyway. You should use a different directory, like
 a lib directory under your project directory. The fact that they are
 referenced as libraries will make sure they are converted and the
 converted output included in your APK. See this link:

 http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary

 And the sidebar here:

 http://developer.android.com/guide/topics/resources/accessing-resources.html

 On Feb 6, 1:51 pm, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
  hey
  thanks for sharing the link i have added all the three jars and made one
  class file copied the code.
  Everything is fine i have removed many errors by importing specific
 classes
  and setting up the context.
  But still there are two class files which eclipse is not able to import
 and
  these are :-
 
 -
 
 import twitter4j.http.AccessToken;
 
 -
 
 import twitter4j.TwitterFactory;
 
  and hence there are errors in my file so please guide me where did i go
  wrong.
 
  On Sun, Feb 6, 2011 at 7:42 PM, Lance Nanek lna...@gmail.com wrote:
   I use:http://twitter4j.org/
 
   There are various examples out there:
 
  http://code.google.com/p/agirardello/source/browse/trunk/OAuthExample.
 ..
 
   On Feb 6, 3:49 am, Robin Talwar r.o.b.i.n.abhis...@gmail.com wrote:
Ya i got you. May be i got you wrong plus there are not much android
experienced developers who like to encourage beginners
out there. Anyways treking i have done some google search and i have
   reached
a safe stage where i am directing my app to OAUTH login page and when
 the
user logs in he is directed back to my application but now i dont
 know
   how
to update its twitter status?
Should i do that in onResume?
The following are the steps i followed :-
 
   - I added signpost core and signpost commonshttp4 jar files in
 assets
   folder
   - then i added them in build path
   - Then in my main java file i declare following constants before
   oncreate
 
private static final String CONSUMER_KEY = EuMduRyU4fJcaVgPuN9vA;
private static final String CONSUMER_SECRET =
JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU;
 
private static String ACCESS_KEY = null;
private static String ACCESS_SECRET = null;
 
private static final String REQUEST_URL = 
  http://twitter.com/oauth/request_token;;
private static final String ACCESS_TOKEN_URL = 
  http://twitter.com/oauth/access_token;;
private static final String AUTH_URL = 
  http://twitter.com/oauth/authorize;;
private static final String CALLBACK_URL = myTweet://twitt;
private static final String PREFERENCE_FILE =
 twitter_oauth.prefs;
 
private static CommonsHttpOAuthConsumer consumer = new
CommonsHttpOAuthConsumer(
CONSUMER_KEY, CONSUMER_SECRET);
private static CommonsHttpOAuthProvider provider = new
CommonsHttpOAuthProvider(
REQUEST_URL, ACCESS_TOKEN_URL, AUTH_URL);
 
   - In oncreate i created an onclick listener with the following
 code :-
 
try {
 String authURL = provider.retrieveRequestToken(
consumer, CALLBACK_URL);
 
Log.d(OAuthTwitter, authURL);
startActivity(new Intent(Intent.ACTION_VIEW, Uri
.parse(authURL)));
} catch (OAuthMessageSignerException e) {
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
e.printStackTrace();
} catch (OAuthCommunicationException e) {
e.printStackTrace();
}
}
 
   - Till now the code is going all well and now i create onResume
 with
   the
   following code
 
super.onResume();
Uri uri = this.getIntent().getData();
 
if (uri != null  uri.toString().startsWith(CALLBACK_URL)) {
Log.d(OAuthTwitter, uri.toString());
String verifier =
 uri.getQueryParameter(OAuth.OAUTH_VERIFIER

Re: [android-developers] Post on Facebook wall post for beginner

2011-02-04 Thread Robin Talwar
ok i got it i think there is a problem with the facebook application whose
api key i am using.
It should be mobile facebook application and the code which i am using now
is :-
  parameters.putString(attachment, {\name\:\My Test Image\,
+\href\:\+http://www.google.com+\,;
+\media\:[{\type\:\image\,\src\:\+
http://www.google.com/logos/mucha10-hp.jpg+\,\href\:\+;
http://www.google.com+\}];
+});

On Fri, Feb 4, 2011 at 11:55 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Thanks for the gr8 code but i am already running the application and i am
 able to login to the facebook account
 and add a status message but what i actually want is to also show a link
 option and an image.
 I think adding this peice of code should work :-
 parameters.putString(link, http://www.hungama.com;);

 But apparently it does on one application and not on another application.
 Plus i had to send the build to my friend but the build he got didnt have
 the library in it so should i export it and then mail the jar??

 On Wed, Feb 2, 2011 at 8:49 PM, Mozart Petter mozart.pet...@gmail.comwrote:

 There's a good example that comes with the Facebook SDK. The only thing
 that I've changed on that code, is to publish a message on the users wall
 without using the webview. Here's the code:

 https://gist.github.com/807825

 Regards

 Mozart Petter
 http://www.mozartpetter.com/



 On Wed, Feb 2, 2011 at 5:16 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 I am new to the world of sharing stuff on facebook.
 My target for today is to make a simple application which has a Post
 to FB button .
 When the user clicks on it then a hard coded String from java file is
 displayed on the user's profile ; after logint to the facebook account
 and creating a session.
 Is there any simple beginner tutorial for this cause what i find on
 net is quite complex.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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.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

Re: [android-developers] Facebook = Done ; Twitter = Pending ; Developers please guide

2011-02-04 Thread Robin Talwar
This is the code which i am using :-

package org.myTweet;

import oauth.signpost.OAuthProvider;
import oauth.signpost.basic.DefaultOAuthProvider;
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import oauth.signpost.exception.OAuthCommunicationException;
import oauth.signpost.exception.OAuthExpectationFailedException;
import oauth.signpost.exception.OAuthMessageSignerException;
import oauth.signpost.exception.OAuthNotAuthorizedException;

import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class myTweet extends Activity {
Button twtbtn;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
  /*  final CommonsHttpOAuthConsumer consumer = new
CommonsHttpOAuthConsumer(
EuMduRyU4fJcaVgPuN9vA,
JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU);

final OAuthProvider provider = new DefaultOAuthProvider(
http://twitter.com/oauth/request_token;, 
http://twitter.com/oauth/access_token;,
http://twitter.com/oauth/authorize;);
HttpClient client = new DefaultHttpClient();*/

twtbtn = (Button)findViewById(R.id.twtbtn);
twtbtn.setOnClickListener(new OnClickListener(){

@Override
public void onClick(View v) {
// TODO Auto-generated method stub
// Context ctx whichever way you passing it in
CommonsHttpOAuthConsumer consumer = new
CommonsHttpOAuthConsumer(
EuMduRyU4fJcaVgPuN9vA,
JsiDIvPTPhxcV7NgYkw5HVDO0HC41eI2A8ELVLwqqRU);
OAuthProvider provider = new DefaultOAuthProvider(
http://twitter.com/oauth/request_token;, 
http://twitter.com/oauth/access_token;,
http://twitter.com/oauth/authorize;);
 HttpClient client = new DefaultHttpClient();
String authUrl = null;
try {
   * authUrl = provider.retrieveRequestToken(consumer,
myTweet://twitt);
myTweet.this.startActivity(new
Intent(Intent.ACTION_VIEW, Uri.parse(authUrl)));*
} catch (OAuthMessageSignerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (OAuthNotAuthorizedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (OAuthExpectationFailedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (OAuthCommunicationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}



}

});

}
}

I think the 2 lines of code which are in try - catch statement are causing
the problem since everytime i run this
i get an OUTHCommunicationException . Right now i am not calling the
callback lets just first navigate the app to twitter login page.
I have added following in manifest also :-
 intent-filter
action android:name=android.intent.action.VIEW/action
category android:name=android.intent.category.DEFAULT/category
category android:name=android.intent.category.BROWSABLE/category
data android:scheme=myTweet android:host=twitt/data
/intent-filter

Let me know what is wrong in the application

On Fri, Feb 4, 2011 at 5:30 PM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Hey guys
 I have completed my quest over facebook to post a simple text ,
 image , link in facebook.
 Now i have to do the same for twitter, any word over this topic will
 be appreciated .
 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.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

Re: [android-developers] Back button not working

2011-02-04 Thread Robin Talwar
This is what i have found out for you :-

02-05 00:09:50.429: WARN/System.err(256): java.lang.NullPointerException
02-05 00:09:50.450: WARN/System.err(256): at
com.hungama.myplay.db.DBManager.scanAndSaveFiles(DBManager.java:125)
02-05 00:09:50.450: WARN/System.err(256): at
com.hungama.myplay.db.DBManager.scanAndSaveFiles(DBManager.java:127)
02-05 00:09:50.450: WARN/System.err(256): at
com.hungama.myplay.db.DBManager.setAllMusicTable(DBManager.java:105)
02-05 00:09:50.461: WARN/System.err(256): at
com.hungama.myplay.db.DBManager.getAllMusic(DBManager.java:175)
02-05 00:09:50.461: WARN/System.err(256): at
com.hungama.myplay.activity.PlaylistScreen.onClickAllMusicButton(PlaylistScreen.java:154)
02-05 00:09:50.461: WARN/System.err(256): at
java.lang.reflect.Method.invokeNative(Native Method)
02-05 00:09:50.461: WARN/System.err(256): at
java.lang.reflect.Method.invoke(Method.java:521)
02-05 00:09:50.461: WARN/System.err(256): at
android.view.View$1.onClick(View.java:2067)
02-05 00:09:50.461: WARN/System.err(256): at
android.view.View.performClick(View.java:2408)
02-05 00:09:50.461: WARN/System.err(256): at
android.view.View$PerformClick.run(View.java:8816)
02-05 00:09:50.469: WARN/System.err(256): at
android.os.Handler.handleCallback(Handler.java:587)
02-05 00:09:50.469: WARN/System.err(256): at
android.os.Handler.dispatchMessage(Handler.java:92)
02-05 00:09:50.469: WARN/System.err(256): at
android.os.Looper.loop(Looper.java:123)
02-05 00:09:50.469: WARN/System.err(256): at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-05 00:09:50.469: WARN/System.err(256): at
java.lang.reflect.Method.invokeNative(Native Method)
02-05 00:09:50.469: WARN/System.err(256): at
java.lang.reflect.Method.invoke(Method.java:521)
02-05 00:09:50.469: WARN/System.err(256): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-05 00:09:50.469: WARN/System.err(256): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-05 00:09:50.469: WARN/System.err(256): at
dalvik.system.NativeStart.main(Native Method)


But i have no idea what is it saying

On Sat, Feb 5, 2011 at 12:04 AM, TreKing treking...@gmail.com wrote:

 On Fri, Feb 4, 2011 at 12:29 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 as you can see i have even overide the onBackPressed() method but
 still it is not going to previous activity


 Are you certain your code is being called (from logging or debugging) and
 there are no exceptions being thrown?


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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

Re: [android-developers] Back button not working

2011-02-04 Thread Robin Talwar
h ok thanks man

On Sat, Feb 5, 2011 at 12:26 AM, TreKing treking...@gmail.com wrote:

 On Fri, Feb 4, 2011 at 12:41 PM, Robin Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 But i have no idea what is it saying


 Then you need to spend some time learning how to read stack traces, as it's
 a crucial part of development.

 02-05 00:09:50.429: WARN/System.err(256): java.lang.NullPointerException
 02-05 00:09:50.450: WARN/System.err(256): at
 com.hungama.myplay.db.DBManager.scanAndSaveFiles(DBManager.java:125)

 This tells you exactly what happened and where it happened. Now it's up to
 you to use your debugger, stop at that point, and figure out why something
 is null.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

Re: [android-developers] Any twitter updates??

2011-02-04 Thread Robin Talwar
If i am posting out here than that means that i am struggling finding some
tutorial.
If you have any link to share den plz...

On Sat, Feb 5, 2011 at 12:28 AM, TreKing treking...@gmail.com wrote:

 On Fri, Feb 4, 2011 at 12:35 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 somehow i managed to get hands on facebook sdk for android and got my
 application working for facebook.

 But now i want to do the same for twitter


 Then somehow manage to get your hands on twitter sdk for android and get
 your application working for twitter.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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

Re: [android-developers] Any twitter updates??

2011-02-04 Thread Robin Talwar
Why is it so hard for you to understand.
I was looking for a reference tutorial which anyone of you would have tried
and got it working.
Cause the stuff which i found is not working or may be i dont know how to
make it work thats why i dropped mine
approach and asked you guys

On Sat, Feb 5, 2011 at 1:09 AM, TreKing treking...@gmail.com wrote:

 On Fri, Feb 4, 2011 at 1:04 PM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
  wrote:

 If i am posting out here than that means that i am struggling finding some
 tutorial.


 No, posting on here does not mean that you're struggling finding some
 tutorial.
 Specifically stating that you're struggling to find some tutorial means
 that you're struggling to find some tutorial.

 You posted that you had FB working and you wanted to do the same for
 twitter - you mentioned nothing about looking for and not finding tutorials.
 We have no way of knowing what you're looking for unless you make it clear.


 If you have any link to share den plz...


 I don't, sorry. I would google Twitter Android API or something and go
 from there.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

Re: [android-developers] Any twitter updates??

2011-02-04 Thread Robin Talwar
Sorry i have read your other posts also
you keep replying in the same tone anyways my bad i dint mention my post
like :-

For Treking  :  *Do you have any reference twitter sharing android
tutorial??*

For rest of the world  :
Hey guys
i wish to share my app with twitter... even though i am always
facebooking but somehow i managed to get
hands on facebook sdk for android and got my application working for
facebook.
But now i want to do the same for twitter
any kind of help would be much appreciated
Thanks




On Sat, Feb 5, 2011 at 12:55 PM, TreKing treking...@gmail.com wrote:

 On Sat, Feb 5, 2011 at 1:04 AM, Robin Talwar r.o.b.i.n.abhis...@gmail.com
  wrote:

 Why is it so hard for you to understand.
 I was looking for a reference tutorial which anyone of you would have
 tried and got it working.


 Well why is it so hard for you to understand that you did not make this
 clear?

 Please show me where, in your original post, you explicitly stated that you
 were looking for a reference tutorial.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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

Re: [android-developers] Video View // Media Controller ?? Show(0) = Null Pointer Exception = Frustrated

2011-02-03 Thread Robin Talwar
Ok now can get the media controller visible but i have 2 problems :-

   1. User must tap once to make it visible
   2. Once it is visible then user is trapped in the activity unless the
   song ends since the back button is not functioning the way it should be


The code is :-

package com.hungama.myplay.activity;


import android.app.Activity;
import android.graphics.PixelFormat;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.MediaController;
import android.widget.VideoView;

public class AudioPlayerScreen extends Activity {
private String uri;
private MediaPlayer mp;
VideoView vv;
ImageView iv;
MediaController mediaController;
/** Called when the activity is first created. */

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.audio_player_2);


uri = this.getIntent().getExtras().getString(song_uri);
  Uri path = Uri.parse(uri);

//TextView tvDuration = (TextView)
findViewById(R.id.tv_song_duration);

// **mp = MediaPlayer.create(this, Uri.parse(uri));
// tvDuration.setText(mp.getDuration());

// **mp.start();
  vv=(VideoView)findViewById(R.id.vv);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
   // show(0);
mediaController = new MediaController(this);
//mediaController.show(5);

//MediaController mc;


vv.setMediaController(new MediaController(this)
{
public void hide()
{

System.out.println(HIDEEEHELLLOO);
mediaController.show();
}
});






   // vv.setMediaController(mediaController);
vv.setVideoURI(path);
vv.start();


}

//public void show(int timeout)
//{}
public void onClickPlayPauseButton(View v) {
// if (((ToggleButton) v).isChecked()) {
// mp.pause();
// } else {
// mp.start();
// }
if (mp.isPlaying()) {
mp.pause();
} else {
mp.start();

}
}


public void onBackPressed() {
try {
mp.stop();
mp = null;
} catch (Exception e) {
e.printStackTrace();
}
super.onBackPressed();
}
};



On Thu, Feb 3, 2011 at 2:36 AM, Robin Talwar
r.o.b.i.n.abhis...@gmail.comwrote:

 Do i need to make a custom Media Controller??
 Is there any Framelayout related in this stuff anywhere in layout file?


 On Thu, Feb 3, 2011 at 2:26 AM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 Guys i am playing an video with a video view .
 So far it is cool and video plays nice but the media Controller which
 comes at the bottom of the screen appears
 only on touch and i want that it should be there permanently.
 I googled and i thot the following code should be fine :-

  Uri path = Uri.parse(android.resource://com.vid1/ + R.raw.p1);
vv=(VideoView)findViewById(R.id.vv);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
MediaController mc = new MediaController(this);
mc.setAnchorView(vv);
mc.show(0);
mc.requestFocus();

vv.setMediaController(mc);

vv.setVideoURI(path);


 and this gives me a force close and a Null Pointer in log cat.
 i am sorry this may be a duplicate post but this one has detailed code
 and more clear understanding of situation.

 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.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

Re: [android-developers] Post on Facebook wall post for beginner

2011-02-03 Thread Robin Talwar
Thanks for the gr8 code but i am already running the application and i am
able to login to the facebook account
and add a status message but what i actually want is to also show a link
option and an image.
I think adding this peice of code should work :-
parameters.putString(link, http://www.hungama.com;);

But apparently it does on one application and not on another application.
Plus i had to send the build to my friend but the build he got didnt have
the library in it so should i export it and then mail the jar??

On Wed, Feb 2, 2011 at 8:49 PM, Mozart Petter mozart.pet...@gmail.comwrote:

 There's a good example that comes with the Facebook SDK. The only thing
 that I've changed on that code, is to publish a message on the users wall
 without using the webview. Here's the code:

 https://gist.github.com/807825

 Regards

 Mozart Petter
 http://www.mozartpetter.com/



 On Wed, Feb 2, 2011 at 5:16 PM, Abhishek Talwar 
 r.o.b.i.n.abhis...@gmail.com wrote:

 I am new to the world of sharing stuff on facebook.
 My target for today is to make a simple application which has a Post
 to FB button .
 When the user clicks on it then a hard coded String from java file is
 displayed on the user's profile ; after logint to the facebook account
 and creating a session.
 Is there any simple beginner tutorial for this cause what i find on
 net is quite complex.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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.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

Re: [android-developers] Re: Android beginner

2011-02-02 Thread Robin Talwar
the same kind of error is the one which i get when i downgrade my app from
2.2 to 2.1 and i am not using any specific library.
I have done all the changes like in manifest file and project properties
then cleaned the project and still it gives the error.
I dont knw  much how to debug but all i can give you the information is that
the splash screen comes up in 2.1 and when it disappears then i get force
close due to null pointer while all this work fine in 2.2

On Wed, Feb 2, 2011 at 1:25 PM, Thomas thomasjakw...@gmail.com wrote:

 You tried to access an object you haven't constructed yet, meaning
 you're using only a reference.
 The reference has to be constructed or point to an object somewhere,
 should look like this:

 Foo f = new Foo();
 f.func();

 if you just have:

 Foo f;
 f.func();

 You're trying to access memory that isn't there.
 The line:

 new Foo();

 Allocates memory and points the reference 'f' to it.  f can then be
 used to access that memory.

 Its called a nullpointerexception because currently your reference is
 pointing to a null memory address (invalid).

 On Feb 1, 9:16 pm, subhashini alaguchokku
 subhashini.andr...@gmail.com wrote:
  Hi,
 
  I get following compile time error, pls give any solutions
 
  [2011-02-02 10:37:46 - Mcatalog] Unknown error:
  java.lang.NullPointerException
 
  Thanks and regards,
  subha

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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

Re: [android-developers] Can't properly stop a thread

2011-02-02 Thread Robin Talwar
Hey Kostya can async task be the reason i can not properly play my
application in 2.1 while it works fine in 2.2??

On Wed, Feb 2, 2011 at 4:54 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Adam,

 interrupt() doesn't necessarily stop a thread right then and there. It sets
 an internal flag, which can be checked with isInterrupted(). If your thread
 happens to call wait() or sleep(), then this flag will be turned into an
 InterruptedException. Also this flag is reset after isInterrupted() returns
 true.

 Given this, it might be better to implement your own flag that tells the
 thread that it should stop what it's doing and exit.

 However, if the thread is inside a network call, it might not see the flag
 for a while. So one other fix is needed - add code to your thread (such as
 setting the handler to null) that tells it that the UI has gone away, and
 that it shouldn't try to update it.

 You could also use AsyncTask rather than rolling your own thread, which has
 a method to cancel. Note however that prior to 2.2., this method has a race
 condition, and may occasionally not work properly.

 -- Kostya

 02.02.2011 14:07, Serdel пишет:

  In my application I am connecting to a server and downloading some
 things. Not much but the connection it self takes a while. Off course
 this is done in a thread (class that implements runnable). If some
 error occurs, the thread sends a message to the UI using a Handler and
 the UI displays an dialog window.

 My problem is that I can't stop the thread in the UI properly. For
 example if during the connection I would press the 'home' button on
 the phone, after some seconds I get an error saying that my
 application couldn't create a dialog window (because it is not running
 anymore). That means that my thread was not stopped and kept on
 working until an error (i.e. timeout) occurred and tried to send a
 massege to the UI by a handler.

 to Stop the thread I have a function that I found:

  public synchronized Thread stopThread(Thread thr){
  if(thr != null){
Thread temp = thr;
  thr = null;
temp.interrupt();
  }
  return thr;
}

 And I use it like:

 @Override
 public void onDestroy()
{
super.onDestroy();
   senderTh= stopThread(senderTh);
   finish();
}

 Why this doesn't stop my Thread? How can I do it from the UI?



 --
 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.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

Re: [android-developers] Video View // Media Controller ?? Show(0) = Null Pointer Exception = Frustrated

2011-02-02 Thread Robin Talwar
Do i need to make a custom Media Controller??
Is there any Framelayout related in this stuff anywhere in layout file?

On Thu, Feb 3, 2011 at 2:26 AM, Abhishek Talwar 
r.o.b.i.n.abhis...@gmail.com wrote:

 Guys i am playing an video with a video view .
 So far it is cool and video plays nice but the media Controller which
 comes at the bottom of the screen appears
 only on touch and i want that it should be there permanently.
 I googled and i thot the following code should be fine :-

  Uri path = Uri.parse(android.resource://com.vid1/ + R.raw.p1);
vv=(VideoView)findViewById(R.id.vv);
getWindow().setFormat(PixelFormat.TRANSLUCENT);
MediaController mc = new MediaController(this);
mc.setAnchorView(vv);
mc.show(0);
mc.requestFocus();

vv.setMediaController(mc);

vv.setVideoURI(path);


 and this gives me a force close and a Null Pointer in log cat.
 i am sorry this may be a duplicate post but this one has detailed code
 and more clear understanding of situation.

 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.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

  1   2   >