Re: [android-developers] Can't compile after update to ADT 21

2012-11-15 Thread Kumar Bibek
Remove the imports for your projects's R file.  I guess, you are having
problems with R.

For example, if in any Java class which is in your base package, you don't
need to write the import statement for R. Removing those imports fixed my
problems.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Nov 16, 2012 at 12:00 PM, Patrick Boos patrickboo...@gmail.comwrote:

 Updated everything to the new ADT 21 and now I can't compile anymore.

 *Eclipse*
 It seems like some resources do not exist in R.java anymore. Some others
 do exist. Seems like all the library projects show up fine in there, just
 the project itself has only about half the resources show up in there. This
 applies to R.dimen, R.layout, R.drawable and R.id (and others too i guess).
 The errors showing up are all  cannot be resolved or is not a field
 Weird is, that if I just run ant debug in the shell, it compiles fine.

 *Jenkins*
 Updated to ADT 21 as well on the Jenkins build server and there the same
 problem occurs to some projects. Not to all. Only errors seem to be the
 symbol not found errors.

 [javac] /path.../.../ListAdapter.java:81: cannot find symbol
 [javac] symbol  : variable part_item_row
 [javac] location: class jp.cyberagent.android.base.R.layout
 [javac] view = 
 LayoutInflater.from(getContext()).inflate(R.layout.part_item_row, parent, 
 false);


 One side note. The projects where it does occur are projects that use
 libraries that depend on other libraries.

 Would be glad if anybody could point me in the right direction to solve
 this problem.

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

2012-09-17 Thread Kumar Bibek
And have some patience :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Sep 17, 2012 at 1:06 PM, TreKing treking...@gmail.com wrote:

 On Sun, Sep 16, 2012 at 2:30 AM, Johnl Smith gongz...@gmail.com wrote:

 hello,two days passed, my google play publishing status is still“ Your
 Registration to Google Play is still being processed.” AndI registed my
 checkout today .
 what is the problem? How should i do to solve it, thank you!


 Ask in the correct place:
 http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601


 -
 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] Problem in Emulator !

2012-09-16 Thread Kumar Bibek
You can increase the time out in Android-ADB from the Eclipse preferences..

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sun, Sep 16, 2012 at 5:59 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 Its depend on your processor ...In this situation you have to close your
 emulator and start it again ...

 On Sun, Sep 16, 2012 at 5:18 PM, Meena Rengarajan 
 meenasoft...@gmail.comwrote:

 [2012-09-16 17:45:51 - QuizeActivity] New emulator found: emulator-5554
 [2012-09-16 17:45:51 - QuizeActivity] Waiting for HOME
 ('android.process.acore') to be launched...
 [2012-09-16 17:47:02 - QuizeActivity] HOME is up on device 'emulator-5554'
 [2012-09-16 17:47:02 - QuizeActivity] Uploading QuizeActivity.apk onto
 device 'emulator-5554'
 [2012-09-16 17:47:13 - QuizeActivity] Failed to install QuizeActivity.apk
 on device 'emulator-5554': timeout
 [2012-09-16 17:47:13 - QuizeActivity] Launch canceled!

 My emulator is very slow and when i do run the apps , it is not running.
 Whats the problem here ?

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




 --
 *Sobia Awan*
 *  Bs(cs)*
 **


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

2012-09-16 Thread Kumar Bibek
Looks like...

Try restarting eclipse.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sun, Sep 16, 2012 at 6:11 PM, Meena Rengarajan meenasoft...@gmail.comwrote:

 Now, process is waiting for the Debugger to Attach, it is showing me .

 Sense, debugger runs on emulator but i guess slow performance !

 On Sun, Sep 16, 2012 at 6:04 PM, Meena Rengarajan 
 meenasoft...@gmail.comwrote:

 Yeah as you said, i have done. Now it is running . But i wanna debug step
 by step. I couldnt be able to do debug. Why so ?


 On Sun, Sep 16, 2012 at 6:00 PM, Kumar Bibek coomar@gmail.comwrote:

 You can increase the time out in Android-ADB from the Eclipse
 preferences..

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*




 On Sun, Sep 16, 2012 at 5:59 PM, Sobia Awan juwerian.so...@gmail.comwrote:

 Its depend on your processor ...In this situation you have to close
 your emulator and start it again ...

 On Sun, Sep 16, 2012 at 5:18 PM, Meena Rengarajan 
 meenasoft...@gmail.com wrote:

 [2012-09-16 17:45:51 - QuizeActivity] New emulator found: emulator-5554
 [2012-09-16 17:45:51 - QuizeActivity] Waiting for HOME
 ('android.process.acore') to be launched...
 [2012-09-16 17:47:02 - QuizeActivity] HOME is up on device
 'emulator-5554'
 [2012-09-16 17:47:02 - QuizeActivity] Uploading QuizeActivity.apk onto
 device 'emulator-5554'
 [2012-09-16 17:47:13 - QuizeActivity] Failed to install
 QuizeActivity.apk on device 'emulator-5554': timeout
 [2012-09-16 17:47:13 - QuizeActivity] Launch canceled!

 My emulator is very slow and when i do run the apps , it is not
 running. Whats the problem here ?

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




 --
 *Sobia Awan*
 *  Bs(cs)*
 **


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

2012-08-22 Thread Kumar Bibek
You are trying to write code in the layout xmls?

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Aug 22, 2012 at 10:35 PM, Lloyd Carroll lloyd.carr...@gmail.comwrote:

 Use == for starters in your conditional statement.
 On Aug 21, 2012 3:42 PM, Waheed Rafiq wra...@gmail.com wrote:

 Hi guys , I am new to android development

 for sometime I have try to resolve  the if statement issue within my code
 but can't seem to understand why it does not work

 here is my code that I was learning from online tutorial

 RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
 

 xmlns:tools=http://schemas.android.com/tools;

 android:layout_width=match_parent

 android:layout_height=match_parent 


 TextView

 android:id=@+id/textView1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_centerHorizontal=true

 android:layout_centerVertical=true

 android:padding=@dimen/padding_medium

 android:text=@string/hello_world

 tools:context=.MainActivity /


 Button

 android:id=@+id/button1

 android:layout_width=wrap_content

 android:layout_height=wrap_content

 android:layout_below=@+id/textView1

 android:layout_centerHorizontal=true

 android:layout_marginTop=59dp

 android:text=Edit me  // on this line I name the button Edit Me

 if(android.text=Hussian Waheed) android.text=Change Me; //
 on this line I am trying to say if the button is Edit Me then change this
 to Change Me


 all I get is a error stating my if statment requires a equal , I just
 don't understand it. really would like someone to give me a better example
 of how to change a button name to different button name.


 thanks






/





 /RelativeLayout

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

2012-07-27 Thread Kumar Bibek
This you would use if the list items are of different type, ie, one item
could have a simple textview, and another could have a textview with a
button, and provided you want to have a separate layout file for these two
kinds of views.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Jul 27, 2012 at 8:13 PM, bob b...@coolfone.comze.com wrote:

 I'm writing a class that implements ListAdapter.

 I'm looking at this method:


 ---
 public abstract int getViewTypeCount ()
 Since: API Level 1

 Returns the number of types of Views that will be created by getView(int,
 View, ViewGroup). Each type represents a set of views that can be converted
 in getView(int, View, ViewGroup). If the adapter always returns the same
 type of View for all items, this method should return 1.
 This method will only be called when when the adapter is set on the the
 AdapterView.

 Returns
 The number of types of Views that will be created by this adapter

 

 Can someone help me understand why I must implement this method?  It seems
 like it should not be necessary to do 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

[android-developers] [Chris] Playing vidoes and showing images from Playlist

2012-07-18 Thread Kumar Bibek
Hi Chris,

I think playing videos or showing images directly on the browser would be
the best solution that we can have right now. I tried modal dialogs, but
some devices played it, and other's failed. It was a 50-50 number. So, I
would say, showing the videos and images in a separate screen, full screen.
And for images also.

For images also, once you click on one image, you  would be taken to a
separate screen, which would allow you to zoom in and out.

For phones, we will, anyway, have a separate screen for everything.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*

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

[android-developers] Re: [Chris] Playing vidoes and showing images from Playlist

2012-07-18 Thread Kumar Bibek
Sorry. Wrong email ID.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Jul 18, 2012 at 12:00 PM, Kumar Bibek coomar@gmail.com wrote:

 Hi Chris,

 I think playing videos or showing images directly on the browser would be
 the best solution that we can have right now. I tried modal dialogs, but
 some devices played it, and other's failed. It was a 50-50 number. So, I
 would say, showing the videos and images in a separate screen, full screen.
 And for images also.

 For images also, once you click on one image, you  would be taken to a
 separate screen, which would allow you to zoom in and out.

 For phones, we will, anyway, have a separate screen for everything.

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



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

Re: [android-developers] In App Billing

2012-06-12 Thread Kumar Bibek
Nope. The receipt has to be sent by the device

Sent from my Nexus S
On Jun 13, 2012 12:13 AM, John jo-d...@hotmail.com wrote:

 We are going to use in app billing to set up a system where content is
 delivered from our server, once the user purchases an in app feature.

 Does anyone know if there is an official way, that our server can
 contact Google's server to get a receipt of purchase, rather than
 trusting the user's device?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
You might want to show more of your logs. There's probably some error while
creating your database.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jun 5, 2012 at 10:08 PM, shengJie b0091...@gmail.com wrote:

 Sorry guy
 my database table can't be set
 i can build my database but i can't set up my table!!!
 did i miss something?
 ==log
 I/haiyang:createDB(353): create table record(_id INTEGER PRIMARY KEY
 AUTOINCREMENT,careID string not null,name  string not null,sex string not
 null,person_id string not null,blood_type  string not null,smoke string,drunk
 string,Diagnosis_type string,Diagnosis_body string,care_Diagnosis string,
 whatcare string,whencare integer,whocare string,carewho string,
 care_locatation string,care_frequency string,singaltime string,
 care_Appraisal string);

 I/Database(353): sqlite returned: error code = 1, msg = no such table:
 record
 D/AndroidRuntime(353): Shutting down VM
 W/dalvikvm(353): threadid=1: thread exiting with uncaught exception
 (group=0x40015560)
 E/AndroidRuntime(353): FATAL EXCEPTION: main
 E/AndroidRuntime(353): java.lang.RuntimeException: Unable to start
 activity
 ComponentInfo{com.NursingcareSystem/com.NursingcareSystem.Care_ALL_intent}:
 android.database.sqlite.SQLiteException: no such table: record: , while
 compiling: SELECT name FROM record



 
 public static class DBConnection extends SQLiteOpenHelper{
 private static final String DATABASE_NAME=medical_records;
 private static final int DATABASE_VERSION=1;
 public DBConnection(Context context) {
  super(context, DATABASE_NAME, null, DATABASE_VERSION);
 // TODO Auto-generated constructor stub
  }

 @Override
 public void onCreate(SQLiteDatabase db) {
 // TODO Auto-generated method stub
 db.beginTransaction();
 try{
 String caredb =
 create table record(_id INTEGER PRIMARY KEY AUTOINCREMENT,
 +UserSchema.CARE_ID+   string not null,
 +UserSchema.NAME+string not null,
 +UserSchema.SEX+   string not null,
 +UserSchema.PERSON_ID+ string not null,
 +UserSchema.BLOOD_TYPE+string not null,
 +UserSchema.SMOKE+ string,
 +UserSchema.DRUNK+ string,
 +UserSchema.D_TYPE+string,
 +UserSchema.D_BODY+string,
 +UserSchema.CARE_D+string,
 +UserSchema.WHATCARE+  string,
 +UserSchema.WHENCARE+  integer,
 +UserSchema.WHOCARE+  string,
 +UserSchema.CAREWHO+   string,
 +UserSchema.CARE_LOCATION+ string,
 +UserSchema.CARE_F+string,
 +UserSchema.SINGAL+string,
 +UserSchema.CARE_APPRAISAL+string);  ;
  Log.i(haiyang:createDB, caredb);
 db.execSQL(caredb);
  }catch(Exception e){
 db.setTransactionSuccessful();}
 finally{
 db.endTransaction();
 }
 }
 @Override
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
 // TODO Auto-generated method stub
 db.execSQL(DROP TABLE IF EXISTS record);
 onCreate(db);
 }

 ---

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Try changing strings to text...

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jun 5, 2012 at 10:27 PM, shengJie b0091...@gmail.com wrote:

 i think the problem is my table can't be build that make my query
 compiling stop

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Uninstall your app. Run it again, and get the logs. 

On Tuesday, 5 June 2012 22:27:16 UTC+5:30, shengJie wrote:

 i think the problem is my table can't be build that make my query  
 compiling stop 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
care_IDtext not null,nametext not null,sextext not null,person_idtext not 
null,blood_typetext not null,smoketext,drunktext,
Diagnosis_typetext,Diagnosis_bodytext,care_Diagnosistext,
whatcaretext,whencareinteger,whocaretext,carewhotext,care_
locatationtext,care_frequencyte

Your create table query is not correct. There should be a space between 
name and text etc.

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

Re: [android-developers] I/Database(353): sqlite returned: error code = 1, msg = no such table: record

2012-06-05 Thread Kumar Bibek
Your logs suggest that the table itself is not there. So first try to
figure out why the table is not being created.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jun 5, 2012 at 11:03 PM, shengJie b0091...@gmail.com wrote:

 this is my query
 i want to load all user_name and
 put into a spinner
 --
 Cursor c = db.query(UserSchema.TABLE_NAME, new String[]{UserSchema.NAME},
 null, null, null, null, null);
 c.moveToFirst();
 CharSequence[] newlist = new CharSequence[c.getCount()];
 for(int i = 0;inewlist.length;i++){
 newlist[i] = c.getString(0);
 c.moveToNext();
 }
 c.close();

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

2012-06-01 Thread Kumar Bibek
There will always be some questions, which you would yourself have to find
answers, and may be someone would answer eventually, but don't know when.

Coming back to your problem, if you think it's a bug, then file a bug for
it. There are greater chances that your bug would be noticed by people from
google on their bug tracker.

Your question screams. And for a forum, I don't think that's good. At
times, it really might frustrate you, but, screaming is not a solution I
guess.

Anyway, I have no idea about your problem.

2 steps:
1. Try to search in the bug tracker if this bug is already logged.
2. If not, then please log a bug and wait for someone's response patiently
:)


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Jun 1, 2012 at 11:53 AM, Jim Morris jim.mor...@lecere.com wrote:

 There is nobody to talk to at Google

 I thought Google Android people are supposed to be watching this
 forum!

 Somebody in Poland responded to ask for code, I sent it and then 
 nothing1

 How are we supposed to develop software if we can't get some
 support??

 I have developed an Android app that communicates with a Blue Bamboo
 Bluetooth printer. I have no trouble communicating with the printer
 on
 a galaxy P-6210 (Android 3.2). I purchased a P-3113 (Android 4.0.3).
 When my app runs on the P-3113, I get the following problem.
 When the P-3113 is trying to pair with the Blue Bamboo printers, it
 asks me to type in the pin number for pairing, but the device was
 already paired before the app started up!!! Why does it ask me
 for
 a pin number again, when the devices are already paired?
 When I enter the pin number again, the device will still not connect.
 The problem occurs on the device running version 4.0.3 regardless of
 whether my software is targeted for version 4.0.3 or version 3.2.
 I can supply the manufacturer's demo software source code, which also
 exhibits the same problem.
 I believe this is a bug introduced into Android 4.0.3. The software
 works fine on Android 3.2 on a Galaxy P-6210.
 I have traced the problem to the statement
 mmSocket.connect();
 When this statement is executed, a dialog box pops up on the Galaxy
 P-3113. This dialog box asks for the user to input a pin code for
 pairing, BUT THE DEVICE IS ALREADY PAIRED. I type in the correct code
 and I get an invalid exchange exception. The code is correct!! The
 device is already paired!!
 How could this not be a bug? Hey Google,.
 how about some help here.

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

2012-04-15 Thread Kumar Bibek
No. It's not possible. Btw, how many layouts you have now? Just curious.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Apr 16, 2012 at 9:44 AM, Put_tiMe putt...@gmail.com wrote:

 The number of XML's in my layout folder is growing and is becoming
 difficult to manage.

 So I want to create sub folders, under layout, to better manage this.

 Is there any way the resource compiler can handle this?

 So instead of *R.layout.layout_a* I want to refer it as  *
 R.layout.folder_1.folder_x.layout_a*.

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

2012-04-11 Thread Kumar Bibek
Try sending this request through your browser, and see what happens. Or get
some server logs.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Apr 12, 2012 at 9:09 AM, Farhan Tariq farhan@gmail.com wrote:



 httpPost.setHeader(Content-Type, application/x-www-form-urlencoded);

 Did not have any effect...

 On Thu, Apr 12, 2012 at 8:28 AM, Farhan Tariq farhan@gmail.comwrote:

 I thought it had something to do with android's http classes. If I am
 wrong, I am sorry about that, but any help is welcome though.


 On Thu, Apr 12, 2012 at 8:19 AM, Nikolay Elenkov 
 nikolay.elen...@gmail.com wrote:

 On Thu, Apr 12, 2012 at 12:14 PM, Farhan Tariq farhan@gmail.com
 wrote:
  I get response code 200, response OK. But the html that gets generated
 has
  the form itself. I think I am making the correct post request, but
 can't
  figure out why it is not going through. Could it possibly have to do
 with
  the form page being in ASP ?
 

 First, this has nothing to do with Android.

 If you get an error, you will most probably be redirected to the same
 form.
 Make sure your input is correct, test with a browser first. Dump the
 response, look for errors, etc.

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

2012-03-27 Thread Kumar Bibek
Great!!! :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Mar 27, 2012 at 1:38 PM, rudraswamy mc
rudraswamy.17...@gmail.comwrote:

 i will give 1month salary to u

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Why are new apps not featured on Android market anymore?

2012-02-13 Thread Kumar Bibek
Perhaps a better way to get this fixed is to follow the iTunes store. Only
when an application gets rated a specific number of times, show the
ratings, else, say This have hasn't been reviewed by enough users. No
rating yet.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Feb 14, 2012 at 7:49 AM, Jim Graham spooky1...@gmail.com wrote:

 On Mon, Feb 13, 2012 at 05:33:56PM -0800, Simon Jackson wrote:
  it's not about helping little developers, but about helping users. If app
  gems are lost before they can be found, then why spend hundreds just to
  play the latest chicken licken rio?

 Exactly.  I was just coming back from working on something else to add
 that very point.  :-)

 I mean, how do you KNOW that the apps that don't show up in the Top
 whatever categories don't actually belong there?  There may in fact be
 some truly excellent apps.  But who is going to stroll through the new
 apps listings and find those that aren't listed?  Answers to that,
 anyone?  They get dumped on the floor and ignored.  They don't get any
 ratings because nobody sees them.  Those who do, see that they don't
 have any ratings and pass them by without a second glance.  Is this
 really considered by most here to be a good thing?  Seriously?

 Later,
   --jim

 --
 THE SCORE:  ME:  2  CANCER:  0
 73 DE N5IAL (/4)| Now what *you* need is a proper pint of
 spooky1...@gmail.com| porter poured in a proper pewter porter
  Running FreeBSD 7.0  | pot..
 ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
   30.44406N 86.59909W  |

 Android Apps Listing at http://www.jstrack.org/barcodes.html

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

2012-01-30 Thread Kumar Bibek
LOL ... Yes, seems so. I have been hit by this one at-least a few dozen
times.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Jan 30, 2012 at 3:04 PM, Simon Jackson jackokr...@gmail.com wrote:


 http://developer.android.com/guide/appendix/market-filters.html#manifest-filterslooks
  as though even if your app may work on a small screen, unless you add
 this attribute market will tell small screen user to take a running jump!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] background of list becomes black while scrolling among items, in my app.

2012-01-23 Thread Kumar Bibek
Set the cacheHint color of list view to a transparent color.
android:cacheColorHint=#

http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:cacheColorHint


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Jan 19, 2012 at 2:15 PM, yogesh yogesh.somani.2...@gmail.comwrote:

 Hello friends,
  I am new to android development. I have made an app.
 But while scrolling among items in this app., background of the list
 of items turns black. Items or text is visible though.
  Is there any solution to it
   Plz help.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.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] I Can't get DragShadow of Button widget.

2012-01-23 Thread Kumar Bibek
singleLine property is depricated, and thus, my guess is that you should
avoid using that.

http://developer.android.com/reference/android/R.attr.html#singleLine

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Jan 18, 2012 at 2:00 PM, Huricane Jo waists...@gmail.com wrote:

 Hello.

 I've tried to implement drag and drop UI by using Drag and Drop
 interface(http://developer.android.com/guide/topics/ui/drag-
 drop.html), but I couldn't because I couldn't get DragShadow when
 startDrag.

 I'm using a Button and it works well in normal case, but if the button
 is set as ' android:singleLine=true ', drag shadow of button isn't
 showing.

 I can't understand why the single line property affects to startDrag.

 Is this a native bug or am I missing something?



 P.S.
 I have an another question.
 Is there any way to change the position of drag shadow?

 Drag shadow is appear under the finger, so user is hard to see the
 drag shadow if the view is small.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] In ICS Media Store DB whts the file URI to fetch the text document?

2012-01-23 Thread Kumar Bibek
As far as I know, Media Store Content Provider only stores and gives you
info about media, and not files/documents.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Jan 23, 2012 at 2:45 PM, crajesh crajesh2...@gmail.com wrote:

 Hi All,

 In media store DB, we can fetch Video / Audio by using the
 corresponding URI,

 Audio URI = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI
 VideoURI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI

 like that any URI is available for fetching the text files/documents?


 Thanks
 C.Rajesh

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] When a user uninstall my app, will the content provider be gone with the uninstalling, how about the changes I made to built in content provider?

2012-01-23 Thread Kumar Bibek
Your content provider will be gone, because it's a part of your
application. The changes to other content providers won't be lost.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Jan 18, 2012 at 7:06 AM, sammiwei weist...@gmail.com wrote:

 When a user uninstall my app, will the content provider be gone with
 the uninstalling, how about the changes I made to built in content
 provider?

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

2012-01-23 Thread Kumar Bibek
A list view would also suffice as long as you don't need to expand or
collapse .

Sent from my Nexus S
On Jan 23, 2012 11:18 PM, James Black planiturth...@gmail.com wrote:

 How about making an expandable list then.
 On Jan 23, 2012 3:59 AM, Rachna Sharma designndeve...@gmail.com wrote:

 Hi Group,

 I have UI requirement shown below:

 |---|
 |Header-1  |
 | Checkbox1[]|
 | Checkbox2[]|
 | Checkbox3[]|
 |---|
 |Header-2  |
 | Checkbox1 []   |
 | Checkbox2 []   |
 | Checkbox3 []   |
 and so on clicking below button.
 BUTTON  - clicking on this button on bottom will create header and 3
 checkbox everytime. How can i achieve this? This is very urgent. I can
 not take these in XML laypout as these need to be added dynamically on
 runtime.

 If possible, Please provide any sample code and guide me.

 Thanks,
 Rachana

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Adding Four fragments on a layout cause crash during orientation change on Android honeycomb

2012-01-23 Thread Kumar Bibek
A little more stack trace would give more clues .

But seems like its complaining of the fourth view / fragment not having an
id where its not able to save the state after orientation change.

Sent from my Nexus S
On Jan 23, 2012 11:17 PM, kiriri mathieu.caro...@gmail.com wrote:

 When I add four fragments in a same container and I change the
 orientation the app crashes.
 When I test with only three fragments, no crash appears regardless of
 the three selected fragments from four.

 The error message is :
 java.lang.IllegalArgumentException: No view found for id ...  for
 fragment ...

 This error ever appears on the first added fragment regardless the
 order used to add the fragments.

 Is it a limit of the sdk ?

 Anyone have already managed four fragments on the same container ?

 Thank you in advance for your help

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

2012-01-23 Thread Kumar Bibek
You are probably setting/un-setting the listener somewhere else as well in
your code. May be in the on pause method.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jan 24, 2012 at 7:54 AM, James Black planiturth...@gmail.comwrote:

 In the onCreate method I define this:
 userNameSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
 @Override
  public void onItemSelected(AdapterView? parentView,
 View selectedItemView, int position, long id) {
  Log.i(TAG, position);
 }
 });

 In onResume and after calling a dialog where a new row can be added to my
 list I call this, and it displays the Spinner as I expect when I touch it,
 but, the OnItemSelectedListener doesn't appear to be working, as it never
 calls the Log method in onItemSelected.  I am curious what I did wrong, or
 if my order is wrong.
  userNameSpinner.setAdapter(new ArrayAdapterString(mContext,
 android.R.layout.simple_list_item_1, mylist
  .toArray(new String[0])) {
 @Override
 public View getDropDownView(int position, View convertView,
  android.view.ViewGroup parent) {
 View v = convertView;
 if (v == null) {
  Context mContext = this.getContext();
 LayoutInflater vi = (LayoutInflater) mContext
  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
 v = vi.inflate(R.layout.row, null);
  }
 TextView tv = (TextView) v.findViewById(R.id.spinnerTarget);
 tv.setText(mylist.get(position));
  tv.setTextColor(Color.RED);
 return v;
 }
  });


 --
 I know that you believe you understand what you think I said, but I'm not
 sure you realize that what you heard is not what I meant.
 - Robert McCloskey

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

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

[android-developers] Re: How can use node.js in android

2012-01-23 Thread Kumar Bibek
When he says node.js, he probably meant an web app. And for that, you
will need to do a lot more.

On Jan 24, 7:01 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 Didn't I say that:
   If you are writing a web app which will run on Android, this is
 more applicable,

 I guess you could argue that there is a difference between a web app
 and an app that runs in browser on the device, But I don't think it's
 that great of one..

 kris







 On Mon, Jan 23, 2012 at 8:47 PM, John Coryat cor...@gmail.com wrote:
  He might be asking if he can use node.js within a webview... That would be
  applicable to this group.

  -John Coryat

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

2012-01-21 Thread Kumar Bibek
@Mark: Thanks for correcting me. :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 5:42 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Fri, Jan 20, 2012 at 11:04 PM, Dhaval Varia dhavalkva...@gmail.com
 wrote:
  As we know we dont have time to open app in emergency.

 One could argue that you don't have time to reach for a phone in an
 emergency, or you might not have a phone in an emergency, or your
 phone might have a dead battery, or your phone does not have a mobile
 data or WiFi signal, etc.

 Conversely, not all emergencies are necessarily that time-critical for
 the person with the phone.

 Hence, the net value of being able to trigger your app via an external
 mechanical means versus, say, a home screen app widget, is not that
 great, IMHO.

  so it should fire on some hard key.
  so plz suggeat alternet solution

 You can build your own phone, with your own dedicated hardware button
 for emergencies, that will launch your own application via hooks from
 your own firmware.

 Or, take another approach that does not require the app to be manually
 triggered in the emergency situation:

 http://commonsware.com/blog/2010/05/24/application-concept-resqr.html

 Or, focus on creating a home screen app widget as your trigger, with
 something to ensure that it is not accidentally invoked by the user.

 Or, write another app.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3
 Available!

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


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

[android-developers] Re: gps taking too much time...

2012-01-21 Thread Kumar Bibek
1. GPS takes a long time to get the lat/long is understandable, and in
some cases unavoidable. You could try different approaches for getting
a location depending upon your requirement. (Probably use different
providers when you don't want to wait for a gps fix)

2. This shouldn't be taking a long time, given that you have a decent
enough network on your phone.

3. True. Can't do anything about 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


Re: [android-developers] override home key

2012-01-20 Thread Kumar Bibek
You cannot override, but you can make your app as one of the home
applications. In that case, whenever you press the home key, you will get
an option to choose one of the many home applications, one of which could
be yours.

Few times ? No.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 8:49 AM, Dhaval Varia dhavalkva...@gmail.comwrote:

 dear,

 is there any way to override home key?

 i want to start my app,by pressing home key for few times.
 thanx

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

2012-01-20 Thread Kumar Bibek
There would always be a few things which you cannot do.

I don't understand how does this No affect the popularity of Android.

Their could be other ways to solve your problem, that is, if you could
mention exactly what you are trying to do.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia dhavalkva...@gmail.comwrote:

 i m getting all the times answer no..
 then why android is this mch popular?
 On Jan 21, 2012 8:56 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia dhavalkva...@gmail.com
 wrote:
  dear,
 
  is there any way to override home key?
 
  i want to start my app,by pressing home key for few times.
  thanx
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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 received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] override home key

2012-01-20 Thread Kumar Bibek
I am not sure about this, but I think it would work for you.

When you press the Home button, there would be an Intent fired system-wide.
So, you could write a receiver that tracks these particular kind of intent.

Now, in the receiver, you could monitor the frequency of these intents. IF
you could detect that the frequency is the same as you would want your app
to be triggered, you can very well start a service or activity, or whatever.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jan 21, 2012 at 9:34 AM, Dhaval Varia dhavalkva...@gmail.comwrote:

 i am going to make one emeergency alert app
 As we know we dont have time to open app in emergency.
 so it should fire on some hard key.
 so plz suggeat alternet solution
 thanx.
 On Jan 21, 2012 9:25 AM, Kumar Bibek coomar@gmail.com wrote:

 There would always be a few things which you cannot do.

 I don't understand how does this No affect the popularity of Android.

 Their could be other ways to solve your problem, that is, if you could
 mention exactly what you are trying to do.

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Sat, Jan 21, 2012 at 9:21 AM, Dhaval Varia dhavalkva...@gmail.comwrote:

 i m getting all the times answer no..
 then why android is this mch popular?
 On Jan 21, 2012 8:56 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 Basically, no.

 To explain the basically: you can't do it.

 kris

 On Fri, Jan 20, 2012 at 10:19 PM, Dhaval Varia dhavalkva...@gmail.com
 wrote:
  dear,
 
  is there any way to override home key?
 
  i want to start my app,by pressing home key for few times.
  thanx
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to
 android-developers@googlegroups.com
  To unsubscribe from this group, 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 received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Fwd: logo

2012-01-04 Thread Kumar Bibek
Eh!!! WHAT

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Jan 5, 2012 at 10:34 AM, gaurav gupta gaurav.gupta...@gmail.comwrote:

 Hello Sir,

 Kindly chk this logo.

 -- Forwarded message --
 From: Gajendra Soparkar r.ga...@gmail.com
 Date: Thu, Jan 5, 2012 at 9:41 AM
 Subject: logo
 To: gaurav.gupta...@gmail.com


 check the logo, this is one of the sample i done. still  working on that


 now 2day onwards, we shifted to downstairs, so .



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

2011-12-23 Thread Kumar Bibek
Post your manifest file. It's probably that causing the problem.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*

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

Re: [android-developers] Emulator takes 15 minutes to start an app, something wrong ?

2011-12-13 Thread Kumar Bibek
1 gb ram is a little less I would say. Whats your processor?

Does the other apps run ok? Or they too are very slow?

Sent from my Nexus S
On Dec 14, 2011 8:05 AM, SL@maxis ecp_...@my-rialto.com wrote:


 I am just playing with some sample applications, eg LunarLander.

 It takes about 10-15 minutes to start when run the application. Have I
 missed something ?

 My machine: XP SP2, 1GB RAM, 10GB free space.

 Thanks.

 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-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=enhttp://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: 2.3.4 - Animation is working on the emulator but not on real device

2011-12-05 Thread Kumar Bibek
What kind of animation it is? It would be great if you could explain
how your animation is setup.

On Dec 5, 4:43 pm, Harald harald65.si...@googlemail.com wrote:
 Hi,

 I spent a lot of time to create a nice animation to slide from one
 activity to the next an back. The animation is working on the
 emulator. The emulator has the same android release as my phone. But
 on my phone, the animation does not work.

 Does someone know a possible reason?

 Phone: Huawei Sonic (U8650)

 Regards
 Harald

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

2011-12-05 Thread Kumar Bibek
spinner.setSelection(7) will set the 7th item to the spinner.

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

2011-12-05 Thread Kumar Bibek
It's definitely possible. What you should probably ask for is What is the
complexity?
:)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Dec 5, 2011 at 8:28 PM, kim kims...@gmail.com wrote:

 I need an application in Android for a Tablet PC Arnova 10  model
 A101B with firmware 1.1.5 kernel 2.6.25.

 It must control the number of drinks of the bar (the stock), work like
 a TPV to calculate the price of the bill, and send a pulse or any
 signal by USB to open the cash register.

 Is it possible?

 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] Dramatic drop in downloads

2011-12-05 Thread Kumar Bibek
Everything that goes up will finally come down. :)

Anyway, this is not really a developer question.

2 Things:
1. This could have actually happened.
2. The market stats could be wrong.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Dec 6, 2011 at 5:51 AM, KBSC kristinab...@gmail.com wrote:

 Is it normal for the number of app downloads a day to decrease
 dramatically?
 Since our app has been out (9/15/11) we have only seen an increasing
 number of downloads daily, never less than 600 a day. We have gotten
 used to getting about 900 a day, but recently, our download number has
 dropped below 100, which seems a little odd because just 2 days ago,
 we were still getting over 600 a day consistently.
 Please inform me if this is what is to be expected!!

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

2011-12-05 Thread Kumar Bibek
Look at several news apis and pick up one of them.

Ex: Google news search http://code.google.com/apis/newssearch/

Create an Android app using those APIs.

If you want any specific answers, you will need to ask specific questions.
*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sun, Dec 4, 2011 at 9:47 PM, Neosayayin (Neo) neosaya...@gmail.comwrote:

 I’m new in the world of android App developing and I’m looking for
 tutorials and samples on how I can create a News app for android. An
 example of what I’m looking to create is the PULSE News app. Thanks
 for the help and sorry about my English.

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

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

[android-developers] Re: MP4 video not working on Google Nexus One

2011-12-04 Thread Kumar Bibek
Moreover, MP4 is not really a video format.

If a file has an mp4 extension, it doesn't necessarily mean that it's
a MP4 format.

So, looking at the actual format/encoding will help you to figure out
if a video will play on a device or not.

As Doug suggested, some device manufacturers go out of the way to
support additional formats. But, ideally, if you are using any videos
for your apps, you should be better off using the core video formats
so that they would play on all 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


[android-developers] Re: Pass Data From Activity to All Attached Fragments

2011-12-04 Thread Kumar Bibek
This approach is fine.

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


[android-developers] Re: Example to use setError in EditText

2011-12-04 Thread Kumar Bibek
Use the addTextChangedListener method on your EditText.

http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener%28android.text.TextWatcher%29

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


[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-12-04 Thread Kumar Bibek
On a phone emulator or a tablet one?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Missing camera Button in Gallery on SamSung Galaxy with Android 2.x.x

2011-12-01 Thread Kumar Bibek
Nope it's not possible to create that button if it's not available on that
screen.

What's the OS version? It's a little hard to believe that the new OS on
Samsung Galaxy wouldn't have that button.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Dec 1, 2011 at 8:32 AM, Asterian75 asteria...@gmail.com wrote:

 Hello

 I am using a web form to send a file to my server from a web appli
 When i click Select file, it s working and i see a menu with several
 device option
 I choose Gallery, and i can see my previous picture but i don t have
 the top right corner button CAMERA


 In this screenShot, you can see this botton in the top right corner


 http://www.completeguides.net/@api/deki/files/298/=gallery_splash.png?revision=2

 But in the SAMSUNG GALAXY i don t have this button, i can only select
 a existing picture but i cannot create one without leave the
 application

 Can you help me. Is it possible to activate this botton, maybe
 changing some configuration file to the Galley Application (some
 AndroidManifest.xml file ???)

 I hope you have some idea i could try

 Thanks

 Lionel

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

2011-12-01 Thread Kumar Bibek
Are you looking for writing to file tips or you want to know how to capture
the sensor data?

I am assuming that you want to know how to write to a file, since you said
that you already display those values.

Check out this link.
http://developer.android.com/reference/java/io/FileWriter.html

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Nov 30, 2011 at 8:08 PM, Aaron Chung aaron.cwen...@gmail.comwrote:

 Hello, this is my first time using android developers. Hope you people
 can help me out with Questions. Thanks a million.

 I had successfully wrote a programme that can display the built-in
 sensors (accelerometer and gyroscope) values on my phone.

 How can I create a button that allow me to capture and write the
 values into a txt file once its pressed? so that I open up the list of
 data with my computer using a notepad or ect.

 some tips and links will be helpful. :)

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

2011-12-01 Thread Kumar Bibek
The question isn't very clear. Anyway, look at examples and use these
search keywords.
xml parsing android

You will get quite a few examples.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Nov 30, 2011 at 5:39 PM, Aniket Kumbhar
aniket.s.kumb...@gmail.comwrote:

 Need A web xml parsing code... Urgently please

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

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

[android-developers] Re: Reusing Views in Custom Adapter

2011-11-29 Thread Kumar Bibek
What exactly is the problem. Bonkers doesn't really tell us much.

On Nov 29, 8:12 pm, authorwjf wfran...@softlayer.com wrote:
 Hi Android Framework Gurus!

 I am hoping someone out there can answer a question for me about re-
 using views in my adapters.  My understanding, is that for performance
 reasons this is something I should always always always do.  Yet in my
 experience, doing so always results in the view, whether a grid or
 list, going wonky once I get very many children in the view.  I
 suspect, I'm just doing something flat out wrong.  So I put together a
 simple straight-forward project to demonstrate both how I attempt to
 re-use the views in a grid view, and how it goes bonkers if you add a
 few hundred entries and scroll the list.  I've tested on both the
 cupcake emulator as well as my gingerbread device with the same
 results.

 Thanks in advance to anyone who takes the time to respond!

 ==Layouts==
 main.xml
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:orientation=vertical 
     TextView
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:text=Reuse Views Demo /
     GridView
                 android:id=@+id/gridview
                 android:layout_width=fill_parent
                 android:layout_height=fill_parent
         android:padding=5dp
             android:verticalSpacing=5dp
             android:horizontalSpacing=10dp
             android:numColumns=auto_fit
             android:columnWidth=60dp
             android:stretchMode=columnWidth
             android:gravity=center_horizontal/
 /LinearLayout

 grid_item.xml
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
    android:id=@+id/GridItem
    android:layout_width=fill_parent
    android:layout_height=wrap_content
    android:orientation=vertical
    android:gravity=center_horizontal
    TextView android:id=@+id/grid_item_text
       android:layout_width=wrap_content
       android:layout_height=wrap_content
       android:gravity=center_horizontal
       android:layout_marginBottom=4dip/
 /LinearLayout

 ==source==
 Main.java
 package com.authorwjf.reuseviews;

 import java.util.ArrayList;

 import android.app.Activity;
 import android.os.Bundle;
 import android.widget.GridView;

 public class Main extends Activity {

         private CustomAdapter mAdapter;
         private ArrayListString mItems = new ArrayListString();

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         for (int i = 0; i200; i++) {
                 mItems.add(Integer.toString(i));
         }
         mAdapter = new CustomAdapter(this, mItems);
         GridView g = (GridView) findViewById(R.id.gridview);
         g.setAdapter(mAdapter);
     }

 }

 CustomAdapter.java
 package com.authorwjf.reuseviews;
 import java.util.ArrayList;
 import com.authorwjf.reuseviews.R;
 import android.content.Context;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.BaseAdapter;
 import android.widget.TextView;

 public class CustomAdapter extends BaseAdapter {

         private Context mContext;
         private ArrayListString mItems;

     public CustomAdapter(Context c, ArrayListString items) {
         mContext = c;
         mItems = items;
     }

         @Override
         public int getCount() {
                 return mItems.size();
         }

         @Override
         public Object getItem(int position) {
                 return mItems.get(position);
         }

         @Override
         public long getItemId(int position) {
                 return position;
         }

         @Override
         public View getView(int position, View convertView, ViewGroup parent)
 {
                 View v = convertView;
                 if (v == null) {
                          LayoutInflater li = (LayoutInflater)
 mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                  v = li.inflate(R.layout.grid_item, null);
                  TextView tv = (TextView)v.findViewById(R.id.grid_item_text);
                  tv.setText(Item #+mItems.get(position));
                 }
                 return v;
         }







 }

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

2011-11-29 Thread Kumar Bibek
What is not working?

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole 
k.kirankumar1...@gmail.com wrote:

 Hey Guys,
 Thank you all for your Help .

 Finally I completed my assignment. Finally I have one question.

 I have created the APK in 2.3.3 . We have different mobiles with different
 versions..
 Its not working on all due to compatibility may be.
 Can you guys suggest me what I suppose to do so that independent of
 version , it should work.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets 
 ypaulav...@agilefusion.com wrote:

 Hello,

 If you need to use some methods in all your Activities - create a base
 Activity class with these methods :)

 And use these methods in dirived Activity A and B. No copy past is needed.

 Best regards,
 Yahor


 On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 Why not go with TAB Activity, that helps.



 On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Siva and Mukhesh,
 Thanks for the response.

 The problem which I am forcing to use this unfair architecture is.. I
 have hard time to show different options menu for different layout XML
 files..

 Can you please give me a quick example how to change the options based
 on the layout.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 7:14 AM, siva prakash 
 sivaprakashcs07b...@gmail.com wrote:

 If you want to access those methods in various activities, why dont
 you create a simple java class and acess them?? , if you want to share
 variables across different activities, u can save them in AppPreferences .
 Please provide me more details if i didnt get u :)


 On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote:

 Hey guys,

 I have a problem while using intents. Can you please suggest me the
 right way.

 I have an Activity1 which contains some methods (
 addData(),deleteData() ). when I use intent to other Activity2 Class..
 I am not able to access the methods which are in Activity1. I cant
 copy paste all the methods in all Activities. I dont think its good
 practise. Can anybody suggest me.

 Thanks,
 KIRANKUMARKENDOLE
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com 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=enhttp://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 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=enhttp://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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

[android-developers] Re: How to force Share Intent to open a specific app?

2011-11-29 Thread Kumar Bibek
You can't unless you know the component name and/or package name of
the target activity.

On Nov 29, 3:37 pm, skink psk...@gmail.com wrote:
 saex wrote:
  Hi, thanks for your answer, i'm checking your link but i can't
  understand how can i use that class to achieve my objectives
  Please can you give me some help to do it?

  thanks!

  On Nov 29, 11:13 am, skink psk...@gmail.com wrote:
   saex wrote:
Hi, I like share intent, it is perfect to open sharing apps with image
and text parameters.

But now i'm researching the way to force share intent to open a
specific app from the list, with the paramters given to the share
intent.

This is my actual code, it shows the list of sharing apps installed on
the phone. Please, can somedone tell me what i should add to the code
to force for example official twitter app? and official faccebok app?

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.parse(file:///sdcard/test.jpg);
sharingIntent.setType(image/*);
sharingIntent.putExtra(Intent.EXTRA_TEXT, body text);
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
startActivity(Intent.createChooser(sharingIntent, Share image
using));

Thanks

   Seehttp://developer.android.com/reference/android/content/ComponentName

   pskink

 see Intent docs

 pskink

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

2011-11-29 Thread Kumar Bibek
application not working !! That doesn't say much.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole 
k.kirankumar1...@gmail.com wrote:

 Hi,

 When I install the APK in my mobile (Froyo 2.2) , application is not
 working. But its working fine in AVD with 2.3.3 version. I want to make my
 APK in such a way that it should work in all devices.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote:

 What is not working?

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*




 On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Guys,
 Thank you all for your Help .

 Finally I completed my assignment. Finally I have one question.

 I have created the APK in 2.3.3 . We have different mobiles with
 different versions..
 Its not working on all due to compatibility may be.
 Can you guys suggest me what I suppose to do so that independent of
 version , it should work.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets 
 ypaulav...@agilefusion.com wrote:

 Hello,

 If you need to use some methods in all your Activities - create a base
 Activity class with these methods :)

 And use these methods in dirived Activity A and B. No copy past is
 needed.

 Best regards,
 Yahor


 On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav mukicha...@gmail.com
  wrote:

 Why not go with TAB Activity, that helps.



 On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Siva and Mukhesh,
 Thanks for the response.

 The problem which I am forcing to use this unfair architecture is.. I
 have hard time to show different options menu for different layout XML
 files..

 Can you please give me a quick example how to change the options
 based on the layout.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 7:14 AM, siva prakash 
 sivaprakashcs07b...@gmail.com wrote:

 If you want to access those methods in various activities, why dont
 you create a simple java class and acess them?? , if you want to share
 variables across different activities, u can save them in 
 AppPreferences .
 Please provide me more details if i didnt get u :)


 On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote:

 Hey guys,

 I have a problem while using intents. Can you please suggest me the
 right way.

 I have an Activity1 which contains some methods (
 addData(),deleteData() ). when I use intent to other Activity2 Class..
 I am not able to access the methods which are in Activity1. I cant
 copy paste all the methods in all Activities. I dont think its good
 practise. Can anybody suggest me.

 Thanks,
 KIRANKUMARKENDOLE
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com 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=enhttp://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 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=enhttp://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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

Re: [android-developers] Need Intent Help

2011-11-29 Thread Kumar Bibek
Ok, So, it doesn't even gets installed. Look at your manifest file and
remove stuff which are not available on 2.2

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole 
k.kirankumar1...@gmail.com wrote:

 When I try to install on the APK on my mobile which have 2.2 versionof
 android... I see the error Parsing Error.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood 
 raghavs...@androidactivist.org wrote:

 Yes. That's all very good. What is not working in your app on 2.2?


 On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hi,

 When I install the APK in my mobile (Froyo 2.2) , application is not
 working. But its working fine in AVD with 2.3.3 version. I want to make my
 APK in such a way that it should work in all devices.

 Thanks,
 KIRANKUMARKENDOLE



 On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek coomar@gmail.comwrote:

 What is not working?

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*




 On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Guys,
 Thank you all for your Help .

 Finally I completed my assignment. Finally I have one question.

 I have created the APK in 2.3.3 . We have different mobiles with
 different versions..
 Its not working on all due to compatibility may be.
 Can you guys suggest me what I suppose to do so that independent of
 version , it should work.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets 
 ypaulav...@agilefusion.com wrote:

 Hello,

 If you need to use some methods in all your Activities - create a
 base Activity class with these methods :)

 And use these methods in dirived Activity A and B. No copy past is
 needed.

 Best regards,
 Yahor


 On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav 
 mukicha...@gmail.com wrote:

 Why not go with TAB Activity, that helps.



 On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Siva and Mukhesh,
 Thanks for the response.

 The problem which I am forcing to use this unfair architecture is..
 I have hard time to show different options menu for different layout 
 XML
 files..

 Can you please give me a quick example how to change the options
 based on the layout.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 7:14 AM, siva prakash 
 sivaprakashcs07b...@gmail.com wrote:

 If you want to access those methods in various activities, why
 dont you create a simple java class and acess them?? , if you want to 
 share
 variables across different activities, u can save them in 
 AppPreferences .
 Please provide me more details if i didnt get u :)


 On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote:

 Hey guys,

 I have a problem while using intents. Can you please suggest me
 the right way.

 I have an Activity1 which contains some methods (
 addData(),deleteData() ). when I use intent to other Activity2 
 Class..
 I am not able to access the methods which are in Activity1. I
 cant copy paste all the methods in all Activities. I dont think its 
 good
 practise. Can anybody suggest me.

 Thanks,
 KIRANKUMARKENDOLE
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com 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=enhttp://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 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=enhttp://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




 --
 Warm Regards,
 *Mukesh Kumar*,
 Android Consultant/Freelancer,
 India,Hyderabad.

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

Re: [android-developers] Need Intent Help

2011-11-29 Thread Kumar Bibek
See my previous answer :) That might help.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 29, 2011 at 10:51 PM, Kiran Kumar Kendole 
k.kirankumar1...@gmail.com wrote:

 I hope I am confusing you guys.

 I created the app using 2.3.3 . When I install this APK , in Samsung
 galaxy S2(2.3.3) the application is working good. But the same application
 is not working in HTC (2.2).
 Parsing error. I WANT MY APPLICATION TO BE RUN ON ALL DEVICES WHETHER IT
 MAY BE 2.1 , 2.2 or 2.3.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 12:15 PM, Mukesh Srivastav 
 mukicha...@gmail.comwrote:

 you need to do the clean build

  or

 Delete the bin directory, recompiled it and deploy it, that will help.

 Warm Regards,
 *Mukesh Kumar*,
  Android Consultant/Freelancer,
 India,Hyderabad.

 On Tue, Nov 29, 2011 at 10:32 PM, Kumar Bibek coomar@gmail.comwrote:

 Ok, So, it doesn't even gets installed. Look at your manifest file and
 remove stuff which are not available on 2.2


 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Tue, Nov 29, 2011 at 10:30 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 When I try to install on the APK on my mobile which have 2.2 versionof
 android... I see the error Parsing Error.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 11:48 AM, Raghav Sood 
 raghavs...@androidactivist.org wrote:

 Yes. That's all very good. What is not working in your app on 2.2?


 On Tue, Nov 29, 2011 at 10:16 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hi,

 When I install the APK in my mobile (Froyo 2.2) , application is not
 working. But its working fine in AVD with 2.3.3 version. I want to make 
 my
 APK in such a way that it should work in all devices.

 Thanks,
 KIRANKUMARKENDOLE



 On Tue, Nov 29, 2011 at 11:42 AM, Kumar Bibek 
 coomar@gmail.comwrote:

 What is not working?

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*




 On Tue, Nov 29, 2011 at 10:04 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Guys,
 Thank you all for your Help .

 Finally I completed my assignment. Finally I have one question.

 I have created the APK in 2.3.3 . We have different mobiles with
 different versions..
 Its not working on all due to compatibility may be.
 Can you guys suggest me what I suppose to do so that independent of
 version , it should work.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 8:16 AM, Yahor Paulavets 
 ypaulav...@agilefusion.com wrote:

 Hello,

 If you need to use some methods in all your Activities - create a
 base Activity class with these methods :)

 And use these methods in dirived Activity A and B. No copy past is
 needed.

 Best regards,
 Yahor


 On Tue, Nov 29, 2011 at 3:01 PM, Mukesh Srivastav 
 mukicha...@gmail.com wrote:

 Why not go with TAB Activity, that helps.



 On Tue, Nov 29, 2011 at 6:22 PM, Kiran Kumar Kendole 
 k.kirankumar1...@gmail.com wrote:

 Hey Siva and Mukhesh,
 Thanks for the response.

 The problem which I am forcing to use this unfair architecture
 is.. I have hard time to show different options menu for different 
 layout
 XML files..

 Can you please give me a quick example how to change the options
 based on the layout.

 Thanks,
 KIRANKUMARKENDOLE


 On Tue, Nov 29, 2011 at 7:14 AM, siva prakash 
 sivaprakashcs07b...@gmail.com wrote:

 If you want to access those methods in various activities, why
 dont you create a simple java class and acess them?? , if you want 
 to share
 variables across different activities, u can save them in 
 AppPreferences .
 Please provide me more details if i didnt get u :)


 On 11/29/2011 04:04 PM, Kiran Kumar Kendole wrote:

 Hey guys,

 I have a problem while using intents. Can you please suggest
 me the right way.

 I have an Activity1 which contains some methods (
 addData(),deleteData() ). when I use intent to other Activity2 
 Class..
 I am not able to access the methods which are in Activity1. I
 cant copy paste all the methods in all Activities. I dont think 
 its good
 practise. Can anybody suggest me.

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

Re: [android-developers] Re: Update notification when user launches app

2011-11-29 Thread Kumar Bibek
Nope. You cant get this info from the market from within your app.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 29, 2011 at 11:31 PM, Bipin Shashi bi...@lokalty.com wrote:

 Hey mark: thanks for your reply. If its a site that i control - then i
 will have to update the version numbers on the site everytime i make
 an update to the app? Is there a way to get this info from the android
 market?
 Thanks
 On Nov 29, 11:17 am, Mark Murphy mmur...@commonsware.com wrote:
  On Tue, Nov 29, 2011 at 10:08 AM, Bipin Shashi bi...@lokalty.com
 wrote:
   I have seen in many apps that it notifies the user of new updates if
   any when they launch the app. Can someone please guide me as to how to
   achieve this. I guess we need to add code to the onCreate method which
   checks the version number on the android market.
 
  I'd fork an AsyncTask from onCreate() that downloads version
  information from a site that I control.
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  _Android Programming Tutorials_ Version 4.1 Available!

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

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

[android-developers] Re: How to call the activity class

2011-11-25 Thread Kumar Bibek
Your question is not clear.

Please clarify by giving more details.

On Nov 25, 7:21 pm, mohana priya gpriyara...@gmail.com wrote:
 Hello android developers.I need to call the activity class inside the
 java class,because i need to do the application in phonegap.Please
 tell me the solution.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


Re: [android-developers] Android paid technical support

2011-11-23 Thread Kumar Bibek
You could find a lot of individuals doing this, but I don't yet know about
a company that does this.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Nov 24, 2011 at 9:04 AM, petr.maza...@mautilus.com 
petr.maza...@mautilus.com wrote:

 Hi,

 The Nokia, Apple and Microsoft as well have for their mobile platforms
 (Symbian, iOS, WP7) the paid technical support - simply sometimes it
 is necessary to ask them for certain issue or SDK feature and
 sometimes the customer needs the 'certified' answer. Google groups,
 stackoverflow.com are great sites, but the customer sometimes really
 needs the reliable answer and there is not always time to check and
 develop this or this...

 Is there anything similar for Android?
 Are there any 3rd companies, who are providing the Android
 consultancy?

 Regards,
 STeN

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

2011-11-22 Thread Kumar Bibek
Does your app have INTERNET permission?

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Nov 23, 2011 at 10:38 AM, dara kok mrpc.cambo...@gmail.com wrote:

 Hi,


 I've been searching through SO and there plenty of resource showing how to
 display html string with image inside of it. But I still can't make it work
 in my case. Below is my only line of code. It actually links to a valid
 image resource.


 vw.loadDataWithBaseURL(http://cf.scdn.co;,

 Image: img src='
 http://cf.scdn.co/i/wp/mobile/mobile_platform_android.jpg' /,
 text/html, utf-8,

 about:blank);

 In the web view, it only shows Image: ? with a question mark box. Any
 idea?


 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

[android-developers] Re: org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8080 refused

2011-11-16 Thread Kumar Bibek
Also check the port number to which you are supposed tp connect.

On Nov 17, 4:30 am, alexb alexboot...@gmail.com wrote:
 First, 127.0.0.1 is not valid on the device.
 Second, check that your app has uses-permission
 android:name=android.permission.INTERNET /

 On Nov 16, 1:38 am, indra indra4...@gmail.com wrote:







  I am  trying to call  a servlet from andorid application but when i
  call the servlet i get the connection refused error
   I have tried replacing 127.0.0.1 with my ip iaddress the i get
  connection time out error any clue on these.

   public static String executeHttpPost(String url,
  ArrayListNameValuePair postParameters) throws Exception {
          BufferedReader in = null;
            HttpClient client = getHttpClient();
              System.out.println(===1);
              HttpPost request = new HttpPost(url);
              UrlEncodedFormEntity formEntity = new
  UrlEncodedFormEntity(postParameters);
              request.setEntity(formEntity);
              System.out.println(===2);
              HttpResponse response = client.execute(request);

      }

  public class LoginExcerciseActivity extends Activity {

    @Override
              public void onCreate(Bundle savedInstanceState) {

                  try {
                      Class
  strictModeClass=Class.forName(android.os.StrictMode);
                      Class
  strictModeThreadPolicyClass=Class.forName(android.os.StrictMode
  $ThreadPolicy);
                      Object laxPolicy =
  strictModeThreadPolicyClass.getField(LAX).get(null);
                      Method method_setThreadPolicy =
  strictModeClass.getMethod(
                              setThreadPolicy, strictModeThreadPolicyClass 
  );
                      method_setThreadPolicy.invoke(null,laxPolicy);
                  } catch (Exception e) {
  System.out.println(===Error giving policy);
  e.printStackTrace();
                  }
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.main);
                          ArrayListNameValuePair postParameters = new
  ArrayListNameValuePair();
                          postParameters.add(new 
  BasicNameValuePair(username,
  un.getText().toString()));
                          postParameters.add(new 
  BasicNameValuePair(password,
  pw.getText().toString()));
                          System.out.println(===About to send request);
                          response = CustomHttpClient.executeHttpPost(http://
  127.0.0.1:8080/MobileProj/androidres.do, postParameters);

  }

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


[android-developers] Re: SDK 4, R15, where is the navigation button?

2011-11-08 Thread Kumar Bibek
What do you mean by the navigation button?

On Nov 8, 11:54 pm, sblantipodi perini.dav...@dpsoftware.org wrote:
 bump

 On Nov 1, 3:17 pm, sblantipodi perini.dav...@dpsoftware.org wrote:







  Bumping the question until I'll get an answer.

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

2011-11-03 Thread Kumar Bibek
Provide some logs. :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Nov 3, 2011 at 1:10 PM, sourabh sahu souruit...@gmail.com wrote:

 I have created a Spinner on FragmentActivity, but on a click of a spinner
 it crashes.Please suggest how to resolve it.

 Thanks,
 Sourabh

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

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

[android-developers] Re: ListView + EditText

2011-11-01 Thread Kumar Bibek
I think it's possible. But I have never tried though.

But what I have learnt is that ListView aren't the best way to handle
such an UI.

This link would perhaps give you some more insights.

http://groups.google.com/group/android-developers/browse_thread/thread/50f0fc185da8fe4d

On Nov 1, 7:23 pm, John Gaby jg...@gabysoft.com wrote:
 I have a ListView which displays rows which can have a variety of
 controls.  If the row contains TextViews, ImageViews, and/or Buttons,
 everything works as expected.  However, if I add a EditText control to
 a row, then I no longer seem to be able to select a row (touching
 outside of the EditText control, of course).  Note that if I have a
 button on the row, it still works, but if I touch the row itself,
 onItemClick never fires.  Is it not possible to have EditText controls
 on rows of a ListView?

 Thanks.

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


[android-developers] Re: Emulator ICS : add account

2011-11-01 Thread Kumar Bibek
Well, I booted up the Google API emulator fine. But, in the calendar
app, it only has the option of adding an exchange account. I can't see
anywhere where it asks for a Google account.

On Nov 1, 7:18 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
 Let me know if you are successful at actually adding a Google Account
 and getting it to work with either the Calendar or People apps.  I
 have been unsuccessful.

 On Nov 1, 6:25 pm, arnouf arnaud.far...@gmail.com wrote:







  Thanks...
  But without talking the new calendar API. If you want add a contact or see
  calendar application you must create an account.
  Ok, so i'm going to create an AVD using Google API. Thanks

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


[android-developers] Re: Hide bottom status bar in Android 3.2 Honeycomb!

2011-11-01 Thread Kumar Bibek
Hmmm, Quite an issue. Can't help you more other than starring the
issue :)

BTW, frankly speaking, the location of the status bar is a bit weird,
as far as usability is concerned, especially the Back button. Hope,
that it gets fixed soon enough.


On Nov 1, 9:24 pm, Sebastian Tomaszewski stomasze101...@gmail.com
wrote:
 Hello guys,

 If this subject was already discussed somewhere in the forums with the
 solution without ROOTing the device, I would like to apologize ahead of
 time...

 As we know that the Bottom Status Bar in the Android Honeycomb takes lots
 of real-estate on the Tablet screen, since this is the case and one of my
 applications that I am creating needs that space, is there someway to hide
 it without ROOTING the device?

 I research a lot on this subject and I haven't found any solutions that I
 am looking for and at the same time I don't understand why there isn't way
 to do that now (hide it, shrink it, move it, whatever) ...  What I
 understand is that if some people will remove that completely, the users
 will be stuck in that program and the only way to get out is to restart the
 device...At the same time I would like to argue that the developer should
 know better...

 As fun ROOTING the system sounds, I again would like stay away from that

 The following link contains some in depth discussion on this subject, since
 March 10th, 2011... In fact some people did an in depth analysis on this
 subject with the potential solutions... Does anyone know if this will be an
 option in the near future without ROOTING the device?  If so, does anyone
 know how of the near future that is going to be, because I am really on a
 tight deadline here?http://code.google.com/p/android/issues/detail?id=15408

 Please let me know if have any answers to my questions and I would like to
 thank you ahead of time..

 Thank you and Best Regards,

 Sebo

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


[android-developers] Re: Implementing drag and drop feature

2011-11-01 Thread Kumar Bibek
Drag drop inside a ListView still seems to be very difficult with HC
or ICS. I haven't seen any examples that do this yet. But yeah, drag
from one view and drop on another is pretty easy and simple.

On Nov 1, 7:12 am, TreKing treking...@gmail.com wrote:
 On Fri, Oct 28, 2011 at 12:20 PM, wBishop walterb...@gmail.com wrote:
  What's my best option, listviews? linearlayouts? Any hints to the drag and
  drop functionality?

 http://developer.android.com/search.html#q=dragand dropt=0

 -
 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


Re: [android-developers] Re: Implementing drag and drop feature

2011-11-01 Thread Kumar Bibek
Oops, Thanks Mark. I had missed that one.


On Tue, Nov 1, 2011 at 10:20 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Nov 1, 2011 at 12:48 PM, Kumar Bibek coomar@gmail.com wrote:
  Drag drop inside a ListView still seems to be very difficult with HC
  or ICS. I haven't seen any examples that do this yet.

 https://github.com/commonsguy/cwac-touchlist

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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

2011-11-01 Thread Kumar Bibek
It works. I might use it for my app. :)


On Tue, Nov 1, 2011 at 10:29 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Tue, Nov 1, 2011 at 12:57 PM, Kumar Bibek coomar@gmail.com wrote:
  Oops, Thanks Mark. I had missed that one.

 It's only so-so -- it's code I refactored out of the old AOSP Music
 app, and hence I don't fully grok it. :-)

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

 _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

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

2011-11-01 Thread Kumar Bibek
You need a separate thread for reading.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Nov 1, 2011 at 11:09 PM, Tonez apires...@gmail.com wrote:

 Hi Everyone,

 I have a .net c# application acting as a server listening on a
 particular port, and an Android app that I'm building acting as the
 client which will connect and send / receive tcp messages to / from
 the .net server application.  I have it working at the moment but am
 faced with a challenge that I'm hoping has a better solution than the
 one I've implemented.  My Android app connects to the .net server
 fine, upon successfully connecting the .net application sends back a
 tcp message - my Android app receives this message but it won't
 continue code execution whilst it's reading the connected stream
 unless I close the network stream in the .net server application.
 Below is the bit of code which handles reading / writing to the
 network stream:

 out = new PrintWriter( new BufferedWriter( new
 OutputStreamWriter(socketObj.getOutputStream())), true);
 in = new BufferedReader( new
 InputStreamReader( socketObj.getInputStream()));

 out.printLn(my command);

 String text = ;
 String responseStr = ;

 while ((text = in.readLine()) != null) {
 responseStr += text;
 }

 So the while loop above continues to execute until I close the network
 stream in the .net app.  Is there some way of specifying to the
 Android / Java network stream that the data being sent has ended so it
 can break out that while loop and continue code execution apart from
 closing down the network stream on the .net side?

 Thanks for the help.

 T

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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: Existing layouts no longer showing in graphical layout due to null pointer exception!

2011-10-25 Thread Kumar Bibek
When something doesn't work... I kill eclipse and re-start it. Fixes a few
things almost all the time. Has been happening lately with the new ADT
update.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Oct 25, 2011 at 10:39 PM, swebb99 sweb...@gmail.com wrote:

 Great thanks Kostya that fixed my problem :) Do you know what it fixed
 by any chance ?

 Steve

 On Oct 25, 3:23 pm, Kostya Vasilyev kmans...@gmail.com wrote:
  Try right clicking on the project, then choosing Android - Fix project
  properties, then closing and reopening the workspace.
 
  25.10.2011 18:00, swebb99 пишет:
 
 
 
 
 
 
 
 
 
   I updated the android SDK's, basically installed and updated
   everything. Now when I open existing applications I've been working on
   I get an error when trying to view existing layouts
 
   java.lang.NullPointerException
  at
  
 com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura
 tionComposite.onXmlModelLoaded(ConfigurationComposite.java:
   689)
  at
  
 com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar
 t.onTargetChange(GraphicalEditorPart.java:
   970)
  at
  
 com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.onDescript
 orsChanged(LayoutEditor.java:
   568)
  at
  
 com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.initUiRoot
 Node(LayoutEditor.java:
   490)
  at
  
 com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.xmlModelCh
 anged(LayoutEditor.java:
   309)
 
   So basically any existing project I can only see the xml. If I start a
   new project using the same API 2.3.1 as the existing projects it opens
   the graphical view fine!
 
   Any idea's ?
 
   Thanks in advance.
 
  --
  Kostya Vasilyev

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

2011-10-24 Thread Kumar Bibek
 } catch (Exception e) {
 Exception xcp = e;
 xcp = null;
 }catch(Error e){
 Error xcp = e;
 xcp = null;
 }
 return null;

Try logging the exceptions here. It should give you some kinds of hints.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Oct 25, 2011 at 1:36 AM, mjmeyer mjmeye...@gmail.com wrote:

 I have seen something similar when using the unbuffered variants of
 stream readers when getting from urls.

 Youre using a BufferedInputStream which might have the same effect. I
 successfully use the following to get images into bitmaps and was
 having similar problem until it was changed to use BufferedReader so
 you might try refactoring a bit and see if it helps.

 BufferedReader in = null;
 HttpClient client = new DefaultHttpClient();
 HttpGet request = new HttpGet(url);
 HttpResponse response = client.execute(request);
 in = new BufferedReader (new
 InputStreamReader(response.getEntity().getContent()));
 return BitmapFactory.decodeStream(instream, null, decodeOptions);

 On Oct 21, 1:49 pm, ryanm ryanmat...@gmail.com wrote:
  I have a simple function to get an image file from a remote server and
  return it as a bitmap, here:
 
  public static Bitmap getRemoteImage(final URL aURL) {
  try {
 
  final URLConnection conn = aURL.openConnection();
  conn.connect();
 
  InputStream is = conn.getInputStream();
  BufferedInputStream bis = new BufferedInputStream(is,
  (512*1024));
 
  ByteArrayBuffer baf = new ByteArrayBuffer(50);
  int current = 0;
  while ((current = bis.read()) != -1) {
  baf.append((byte)current);
  }
  byte[] imageData = baf.toByteArray();
  Bitmap bm = BitmapFactory.decodeByteArray(imageData, 0,
  imageData.length);
 
  bis.close();
  is.close();
 
  // Just to give me a break point after everything else in
 the
  function is done
  Bitmap b = bm;
 
  return b;
  } catch (Exception e) {
  Exception xcp = e;
  xcp = null;
  }catch(Error e){
  Error xcp = e;
  xcp = null;
  }
  return null;
  }
 
  Everything in this function executes exactly as you would expect, the
  byte array is full with the right amount of data, the decodeByteArray
  method returns a Bitmap, both close functions work, and then instead
  of returning the bitmap, it simply bails out of the try block and
  returns null.
 
  No errors, no warnings, nothing. I've had the issues with OOM errors
  before and this is not throwing one. LogCat is not showing an
  allocation error as you would expect if it were a memory issue. The
  bitmap that is returned has properties that I can see, but not the
  correct ones. The bitmap object (bm) looks like this:
 
  bm  Bitmap  (id=830063098568)
  mDensity160
  mHeight -1
  mIsMutable  false
  mNativeBitmap   1348080
  mNinePatchChunk null
  mRecycled   false
  mSrcNamenull
  mWidth  -1
 
  The byte array has a length of 73462, so I know it got the image. The
  image is a png, but I've tried several different formats. If I could
  get an error I would at least know what to fix, but it simply skips
  the return statement inside the try block and returns null every
  time.
 
  Anyone have any insight?
 
  ryanm

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

2011-09-30 Thread Kumar Bibek
Look at the logs. IT should tell you more.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Sep 30, 2011 at 2:05 PM, Dancing Fingers batym...@gmail.com wrote:

 Hi Guys,
 I'm trying to convert an old JAVA Applet to Android using an standard
 DOM parser and the same files.  I put the file in /res/raw ( and
 tried /res/xml) and changed my InputStream.  It always crashes my
 app.  So I tried to run the debugger and it keeps openning some Delvic
 type file and says source not found.  Huh?

 Any thoughts would be appreciated.

 Chris

private void parseCharXmlFile(){
Chars myCh;
try {
InputStream iStrm =
 getResources().openRawResource(R.xml.chars);
DocumentBuilderFactory docBuilderFactory =
 DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder =
 docBuilderFactory.newDocumentBuilder();
//Document doc = docBuilder.parse (new File(xFile));
Document doc = docBuilder.parse (iStrm);

// normalize text representation
doc.getDocumentElement ().normalize ();

NodeList wdList = doc.getElementsByTagName(ChPair);
int totalWords = wdList.getLength();

for(int s=0; swdList.getLength() ; s++){

Node firstWordNode = wdList.item(s);
if(firstWordNode.getNodeType() ==
 Node.ELEMENT_NODE){

Element firstWordElement =
 (Element)firstWordNode;

myCh = new Chars();

//---
NodeList firstWordList =
 firstWordElement.getElementsByTagName(ch);
Element firstWDElement =
 (Element)firstWordList.item(0);

NodeList textWDList =
 firstWDElement.getChildNodes();
char ci =
 (char)textWDList.item(0).getNodeValue().trim().charAt(1);
myCh.setTheChar(ci);

//---
NodeList countList =
 firstWordElement.getElementsByTagName(ct);
Element countElement =
 (Element)countList.item(0);

NodeList textCTList =
 countElement.getChildNodes();
int ct =
 Integer.parseInt(((Node)textCTList.item(0)).getNodeValue().trim());
myCh.setCount(ct);
chars.add(myCh);

}//end of if clause

}//end of for loop with s var

}catch (SAXParseException err) {
System.out.println (** Parsing error + , line 
 + err.getLineNumber () + , uri  +
 err.getSystemId
 ());
System.out.println(  + err.getMessage ());

}catch (SAXException e) {
Exception x = e.getException ();
((x == null) ? e : x).printStackTrace ();

}catch (Throwable t) {
t.printStackTrace ();
}

}

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

2011-09-28 Thread Kumar Bibek
Check the logs. It should give you some hints...


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Sep 28, 2011 at 9:20 PM, Keith leftcont...@gmail.com wrote:

 I renamed a package in eclipse and checked off change name in all subfiles
 . Now when I try to load my app it crashes . I tried to rename back to the
 original and it still if crashing.
 Anyone have any experience with this problem ?

 Keith Zettler

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

2011-09-28 Thread Kumar Bibek
Stop it please.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Sep 29, 2011 at 10:49 AM, Rahul Soni rax.m...@gmail.com wrote:

 ---

 Rahul Soni wants to stay in better touch using some of Google's coolest new
 products.

 If you already have Gmail or Google Talk, visit:

 http://mail.google.com/mail/b-8867c56a7b-13f1cdc640-yzBOKIDhO_pSEPKaFpZWDwAi5Ts
 You'll need to click this link to be able to chat with Rahul Soni.

 To get Gmail - a free email account from Google with over 2,800 megabytes
 of
 storage - and chat with Rahul Soni, visit:

 http://mail.google.com/mail/a-8867c56a7b-13f1cdc640-yzBOKIDhO_pSEPKaFpZWDwAi5Ts

 Gmail offers:
 - Instant messaging right inside Gmail
 - Powerful spam protection
 - Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
 - No pop-up ads or untargeted banners - just text ads and related
 information
  that are relevant to the content of your messages

 All this, and its yours for free. But wait, there's more! By opening a
 Gmail
 account, you also get access to Google Talk, Google's instant messaging
 service:

 http://www.google.com/talk/

 Google Talk offers:
 - Web-based chat that you can use anywhere, without a download
 - A contact list that's synchronized with your Gmail account
 - Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

 We're working hard to add new features and make improvements, so we might
 also
 ask for your comments and suggestions periodically. We appreciate your help
 in
 making our products even better!

 Thanks,
 The Google Team

 To learn more about Gmail and Google Talk, visit:
 http://mail.google.com/mail/help/about.html
 http://www.google.com/talk/about.html

 (If clicking the URLs in this message does not work, copy and paste them
 into
 the address bar of your browser).

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

2011-09-27 Thread Kumar Bibek
In the onPause method of your activity, you should unregister the receivers
that you might have registered.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Sep 27, 2011 at 9:43 PM, Divyata P panchal.divyat...@gmail.comwrote:

 *how to solve error given below..!!!*

 ERROR/ActivityThread(14320): Service com.micro.btsT.BtsService has leaked 
 IntentReceiver com.micro.btsT.BtsService$1@462b5288 that was originally 
 registered here. Are you missing a call to unregisterReceiver()?
 ERROR/ActivityThread(14320): android.app.IntentReceiverLeaked: Service 
 com.micro.btsT.BtsService has leaked IntentReceiver 
 com.micro.btsT.BtsService$1@462b5288 that was originally registered here. Are 
 you missing a call to unregisterReceiver()?
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread$PackageInfo$ReceiverDispatcher.init(ActivityThread.java:972)
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread$PackageInfo.getReceiverDispatcher(ActivityThread.java:755)
 ERROR/ActivityThread(14320): at 
 android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:799)
 ERROR/ActivityThread(14320): at 
 android.app.ContextImpl.registerReceiver(ContextImpl.java:786)
 ERROR/ActivityThread(14320): at 
 android.app.ContextImpl.registerReceiver(ContextImpl.java:780)
 ERROR/ActivityThread(14320): at 
 android.content.ContextWrapper.registerReceiver(ContextWrapper.java:318)
 ERROR/ActivityThread(14320): at 
 com.micro.btsT.BtsService.onStart(BtsService.java:134)
 ERROR/ActivityThread(14320): at 
 android.app.Service.onStartCommand(Service.java:420)
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3267)
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread.access$3600(ActivityThread.java:135)
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2211)
 ERROR/ActivityThread(14320): at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 ERROR/ActivityThread(14320): at android.os.Looper.loop(Looper.java:144)
 ERROR/ActivityThread(14320): at 
 android.app.ActivityThread.main(ActivityThread.java:4937)
 ERROR/ActivityThread(14320): at 
 java.lang.reflect.Method.invokeNative(Native Method)
 ERROR/ActivityThread(14320): at 
 java.lang.reflect.Method.invoke(Method.java:521)
 ERROR/ActivityThread(14320): at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
 ERROR/ActivityThread(14320): at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
 ERROR/ActivityThread(14320): at dalvik.system.NativeStart.main(Native 
 Method)

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

2011-08-30 Thread Kumar Bibek
I don't think you can do like that. It's a nice idea though.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Aug 30, 2011 at 1:44 PM, bob b...@coolgroups.com wrote:

 Is there an easy way to add pushpins to a MapView?

 I would think there'd be a method like

 void addPushPin(String description, int latitude, int longitude)

 But, I don't see 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

[android-developers] Re: Gallery Problem

2011-08-30 Thread Kumar Bibek
gallery.setSelection(int)

http://developer.android.com/reference/android/widget/AbsSpinner.html#setSelection%28int%29

On Aug 30, 1:11 pm, Perry168 perry...@netvigator.com wrote:
 Hi,
 Today, I wrote a gallery example to show the photos. My problem is how
 to set the init 'position' isn't started from zero?
 For example: it has 9 photos. 1 to 9.jpg (array from 0 to 8)
 When the program started, the 1.jpg (position 0) always showed in
 gallery firstly. I would like the default is 5.jpg (position 4).
 How to do 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


Re: [android-developers] image btton problem

2011-08-26 Thread Kumar Bibek
Use a png image, that has transparent padding. Your image seems to have  a
opaque padding background.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Aug 26, 2011 at 1:01 PM, Ratheesh Valamchuzhy
android...@gmail.comwrote:




 Hi All

 In the below fig, the corner  image button have some white image , i want
 to change it
 how can i do it..
 plse help me


 ?xml version=1.0 encoding=utf-8?
 RelativeLayout
   xmlns:android=http://schemas.android.com/apk/res/android;
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   android:screenOrientation=portrait
   android:orientation=vertical 


 TextView
 android:layout_height=44dip
 android:id=@+id/toolbar
 android:layout_alignParentTop=true
 android:background=@drawable/toolbar
 android:text=SIGN IN
 android:gravity=center
 android:textSize=18px
 android:textColor=#000
 android:layout_width=fill_parent
 /TextView

   ImageButton
   android:layout_alignParentRight=true
   android:layout_alignParentTop=true
   android:id=@+id/skridttaellerHome
   android:src=@drawable/signup
   android:focusable=true
   android:background=#fff

   android:scaleType=fitXY
   android:layout_width=62dip
   android:layout_height=32dip
   android:layout_marginTop=6dip
   android:layout_marginBottom=6dip
   android:layout_marginRight=6dip
   /ImageButton
   /RelativeLayout
 [image: device1.png]



 the button image i use is


 [image: sign up.png]







 --
 --
 ωιтн яєgαя∂ѕ
 Ratheesh * *...


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

Re: [android-developers] Unable to do ls in the device file system to view the logs in the adb shell.

2011-08-23 Thread Kumar Bibek
You dont have permission to run these commands on a commercial device.
Rooting would solve your problem.


*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Aug 23, 2011 at 1:12 PM, s.rawat imsaurabhra...@gmail.com wrote:

 HI All,
 I am able to create the logs inside the android file system in
 /data/data/my.package.directory.When I do cd to this directory it is fine
 until when I do ls or cat in the adb shell to view the content i am getting
 * permission denied* .The device is a commercial device(samsung tablet).Is
 there any way to view the logs inside the device file system.DO i have to
 add sometihgn on the android manifest.xml file.
 PLz assit.
 Rgds,
 Saurabh

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

2011-08-18 Thread Kumar Bibek
By itself it is a synchronous call. You will have to make it asychronous.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Aug 19, 2011 at 10:35 AM, Atik atik0...@gmail.com wrote:

 Hi,
 we have HTTPGet in android so we can communicate with the server to
 get the response when we send a request.
 i am using that in XML parsing, so but i want to know whether HTTPGet
 is a synchronous call or a synchronous call ???


 Please help me out with more explanation. i have googled it on
 internet also, but unable to find the satisfactory answer.


 Thanks
 Atik

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

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

Re: [android-developers] Re: How to place two buttons side by side at the bottom of the android emulator to get the appropriate shape displayed by clicking on the appropriate buttons

2011-08-08 Thread Kumar Bibek
You cannot Debug into the Android classes with a normal setup. Post some
error logs from your Logcat.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Aug 8, 2011 at 1:09 PM, Divya hiiamdi...@gmail.com wrote:

 hi

 I did what you said. But now too am receiving the same 'force close'
 error,
 the same errors that I mentioned above. The android API are included
 in the
 SDK download and the source code is also on the eclipse build path.

 I received 'Source Not Found' error while debugging. There is no
 source
 attachment  for an android jar file in java build path. So it asked to
 attach source
 for that jar file. Though I attached source, it is not saved. Again it
 shows 'source
 attachment (None)'.

 Please help me to get it solved.

 On Aug 8, 10:33 am, Ratheesh Valamchuzhy android...@gmail.com wrote:
  hi
 
  I didn't get your points correctly ...  i hope you install android
 correctly
  and made the setup ,
  do the following
 
  Create a new android project and copy the code
  make the xml file corresponding to the resources
  and try to run
 
  check  the following
 
  The sources of the Android API are  included in the SDK download
 
  Check your eclipse build path if the folder, that contains you source
 code
  is really on the defined build path.
  thanks
  Ratheesh

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

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

Re: [android-developers] Re: How to place two buttons side by side at the bottom of the android emulator to get the appropriate shape displayed by clicking on the appropriate buttons

2011-08-08 Thread Kumar Bibek
Can you also post some code? Looks like the problem is in your UserInterface
class at line 214.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Aug 8, 2011 at 2:53 PM, Divya hiiamdi...@gmail.com wrote:

 LogCat errors are

 08-08 14:53:04.101: ERROR/DEBUGTAG(214): error occured
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): java.lang.Exception
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 draw.tab.TestUIActivity.init(TestUIActivity.java:44)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 java.lang.Class.newInstanceImpl(Native Method)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 java.lang.Class.newInstance(Class.java:1479)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.Instrumentation.newActivity(Instrumentation.java:1021)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2409)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2512)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.os.Looper.loop(Looper.java:123)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 java.lang.reflect.Method.invoke(Method.java:521)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:860)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 08-08 14:53:04.101: ERROR/DEBUGTAG(214): at
 dalvik.system.NativeStart.main(Native Method)

 Logcat Information

 08-08 14:53:04.191: INFO/UserInterface(214): UILogCat
 08-08 14:53:04.191: INFO/UserInterface(214): java.lang.Exception
 08-08 14:53:04.191: INFO/UserInterface(214): at
 draw.tab.TestUIActivity.init(TestUIActivity.java:44)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 java.lang.Class.newInstanceImpl(Native Method)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 java.lang.Class.newInstance(Class.java:1479)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.Instrumentation.newActivity(Instrumentation.java:1021)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2409)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 2512)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.ActivityThread.access$2200(ActivityThread.java:119)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.os.Looper.loop(Looper.java:123)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 android.app.ActivityThread.main(ActivityThread.java:4363)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 java.lang.reflect.Method.invokeNative(Native Method)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 java.lang.reflect.Method.invoke(Method.java:521)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:860)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 08-08 14:53:04.191: INFO/UserInterface(214): at
 dalvik.system.NativeStart.main(Native Method)


 08-08 14:56:20.301: INFO/Process(214): Sending signal. PID: 214 SIG: 9
 08-08 14:56:20.351: INFO/ActivityManager(51): Process draw.tab (pid
 214) has died.
 08-08 14:56:20.370: INFO/WindowManager(51): WIN DEATH: Window{44d7dde8
 draw.tab/draw.tab.TestUIActivity paused=false}
 08-08 14:56:20.391: INFO/UsageStats(51): Unexpected resume of
 com.android.launcher while already resumed in draw.tab
 08-08 14:56:20.541: ERROR/gralloc(51): [unregister] handle 0x468598
 still locked (state=4001)
 08-08 14:56:20.580: WARN/InputManagerService(51): Got RemoteException
 sending setActive(false) notification to pid 214 uid 10030
 08-08 14:56:20.790: INFO/ActivityManager(51): Displayed activity
 com.android.launcher/.Launcher: 220866 ms (total 220866 ms)
 08-08 14:56:26.550: DEBUG/AndroidRuntime(230): 
 AndroidRuntime START 
 08-08 14:56:26.550: DEBUG/AndroidRuntime(230): CheckJNI is ON
 08-08 14:56:26.800: DEBUG

Re: [android-developers] Re: How to place two buttons side by side at the bottom of the android emulator to get the appropriate shape displayed by clicking on the appropriate buttons

2011-08-08 Thread Kumar Bibek
try{
   throw new Exception();
 }

Why are you throwing this Exception

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

2011-08-07 Thread Kumar Bibek
Your keyboard doesn't work :)

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Aug 2, 2011 at 11:30 PM, Manan wadhwa manan.wad...@gmail.comwrote:



 Sent from my iPod

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-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=enhttp://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 source code

2011-08-04 Thread Kumar Bibek
Ask the developer of the free app, if he is willing to share the source
code.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Aug 5, 2011 at 1:51 AM, vipin saroha 1989sar...@gmail.com wrote:

 hiii everybody

 can anybody tell me how to download source code files of a free
 android app.
 plz send me the links...
 plz reply

 thank you
 vipin

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

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

[android-developers] Re: User complain 2 Icons after update?

2011-08-03 Thread Kumar Bibek
A simple uninstall should fix the problem. Sometimes, it just messes
up. Are you sure that you don't have two LAUNCHER activities in your
app?

On Aug 4, 2:04 am, guruk ilovesi...@gmail.com wrote:
 Hi there,

 after an update from my app. some user complain now they have
 2 icons on the screen and can't uninstall from the market.

 how could this happen? (i can't reproduce and looks it happens just to a
 few)

 and most... what can i do myself ... and/or advice.

 greets
 chris

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


[android-developers] Re: List out all the available widget ui components name dynamically.

2011-08-03 Thread Kumar Bibek
Look at this thread.

http://stackoverflow.com/questions/1456930/read-all-classes-from-java-package-in-classpath

On Aug 3, 2:32 pm, kums kums1...@gmail.com wrote:
 Hi All,

 I want to display, what are the available components in a list view
 dynamically

 from the package android.widget for android device.

 That means i want to list out all the class names available in
 android.widget package at runtime.

 Is there any API available to read all the android.widget at run time?
 Otherwise how can i achieve this?

 Please help me on this.

 Thanks in advance

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


[android-developers] Re: HTTPS in Android

2011-08-03 Thread Kumar Bibek
It would be good if you let us know what have your tried and what
exactly is not working, some code samples, logs etc.

On Aug 2, 8:07 pm, perumal316 perumal...@gmail.com wrote:
 Hi All,

 I have implemented HTTP Post to post data to the backend. How do I
 implement HTTPS in Android (I have already configured the backend for
 https)?

 I googled and found some solutions (http://stackoverflow.com/questions/
 2253061/secure-http-post-in-android)  and tried them but I do not
 receive any data in the backend.

 Is it the correct way to implement? Is there any other method?

 Thanks In Advance,
 Perumal

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


Re: [android-developers] instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-02 Thread Kumar Bibek
Your first code is the correct way to initialize stuff. Something else is
going wrong. Please post what your logcat says.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Aug 3, 2011 at 12:35 AM, CresCoJeff heatag...@gmail.com wrote:

 Hi all,

 I am rather new to Android programming in general and am having
 particular difficulty with the xml/java UI shuffle... I have a layout
 which I would like to use as the view displayed when a custom, view
 class is instantiated in the activity class. This much works fine by
 simply calling

 setContentView(R.layout.mylayout) ;

 in the activity or from the custom view class through a handle to the
 activity. The trouble comes when I wish to interact with the widgets
 on the layout-- I've tried getting a handle on the buttons with

 myButton = (Button) findViewById(R.id.mybuttonid);

 and separately with

 Button myButton = new Button(contextHandle);
 myButton = (Button) findViewById(R.layout.mybuttonid);

 but in both cases whenever I try to call any methods from the assumed
 myButton object I get a NullPointerException in the logcat report;
 evidently myButton is not properly instantiated in either case given
 above. What is the proper way to instantiate components of a view in a
 case like this that combines xml and java so that they can call
 methods dynamically?
 Below is my code--

 MyActivity Class:

 code
package com.ccg.myactivity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;

public class MyActivity extends Activity implements
 OnClickListener {
private boolean touched = false;
private RadioButton myRB;
private Button runB;
private CustomView myView;



/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainlayout);
myRB = (RadioButton) findViewById(R.id.testrb);
runB = (Button) findViewById(R.id.goButton);
//set onClick listeners for activity class
runB.setOnClickListener(this);
}
public void onResume(){
super.onResume();

}

public void onClick(View v) {
// do something when the button is clicked
if (myRB.isChecked()){
setContentView(R.layout.mylayout);
myView = new CustomView(this,this); //passing in activity
 and context
//handles to custom View class
//myView.getAnotherB().setOnClickListener(this); //
 commented out as we
//don't want to register the custom view's button with the Activty
 class's
//OnClickListener; instead it should be registered with the custom
 View class's own
//OnClickListener implementation.

}

   else{
 Log.d(me,alt click);
   }

}


}/code


 CustomView Class:

 code
package com.ccg.myactivity;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import android.view.View.OnClickListener;

public class CustomView extends View implements OnClickListener{

private Button anotherB;

private Context contextHandle;
private Activity actHandle;

public CustomView(Context context, Activity act) {
super(context);
contextHandle = context;
actHandle = act;
//anotherB = new Button(contextHandle); //this shouldn't be
 necessary for
//instantiation from XML widget
initCustomView();

}

public void initCustomView(){

anotherB = (Button) findViewById(R.id.nextbutton);
anotherB.setOnClickListener(this);

}


public Button getAnotherB(){
return anotherB;
}


@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub

Log.d(me, Got the custom click!);
}




}/code



 mainlayout.xml from which the default view is made:

 code
?xml version=1.0 encoding=utf-8?
LinearLayout
android:id=@+id/widget474
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
RadioGroup android:id=@+id/widget30
 android:orientation=horizontal
android:layout_x=2dip android:layout_y=57dip
 android:layout_width=match_parent
android:layout_height=wrap_content
RadioButton android:layout_height=wrap_content android:id=@+id/
 testrb
android:textSize=15sp android:text=Run
 android:layout_width=wrap_content
android:textColor=#99ff/RadioButton
/RadioGroup
Button android:layout_width

Re: [android-developers] instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

2011-08-02 Thread Kumar Bibek
Your CustomView implementation is a bit skewed. Your button will be null
since, the CustomView doesn't yet know what elements it has. You will need
to first setup the layout for this custom view.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Wed, Aug 3, 2011 at 12:39 AM, Kumar Bibek coomar@gmail.com wrote:

 Your first code is the correct way to initialize stuff. Something else is
 going wrong. Please post what your logcat says.

 *Thanks and Regards,
 Kumar Bibek*
 *
 http://techdroid.kbeanie.com
 http://www.kbeanie.com*



 On Wed, Aug 3, 2011 at 12:35 AM, CresCoJeff heatag...@gmail.com wrote:

 Hi all,

 I am rather new to Android programming in general and am having
 particular difficulty with the xml/java UI shuffle... I have a layout
 which I would like to use as the view displayed when a custom, view
 class is instantiated in the activity class. This much works fine by
 simply calling

 setContentView(R.layout.mylayout) ;

 in the activity or from the custom view class through a handle to the
 activity. The trouble comes when I wish to interact with the widgets
 on the layout-- I've tried getting a handle on the buttons with

 myButton = (Button) findViewById(R.id.mybuttonid);

 and separately with

 Button myButton = new Button(contextHandle);
 myButton = (Button) findViewById(R.layout.mybuttonid);

 but in both cases whenever I try to call any methods from the assumed
 myButton object I get a NullPointerException in the logcat report;
 evidently myButton is not properly instantiated in either case given
 above. What is the proper way to instantiate components of a view in a
 case like this that combines xml and java so that they can call
 methods dynamically?
 Below is my code--

 MyActivity Class:

 code
package com.ccg.myactivity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;

public class MyActivity extends Activity implements
 OnClickListener {
private boolean touched = false;
private RadioButton myRB;
private Button runB;
private CustomView myView;



/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainlayout);
myRB = (RadioButton) findViewById(R.id.testrb);
runB = (Button) findViewById(R.id.goButton);
//set onClick listeners for activity class
runB.setOnClickListener(this);
}
public void onResume(){
super.onResume();

}

public void onClick(View v) {
// do something when the button is clicked
if (myRB.isChecked()){
setContentView(R.layout.mylayout);
myView = new CustomView(this,this); //passing in activity
 and context
//handles to custom View class
//myView.getAnotherB().setOnClickListener(this); //
 commented out as we
//don't want to register the custom view's button with the Activty
 class's
//OnClickListener; instead it should be registered with the custom
 View class's own
//OnClickListener implementation.

}

   else{
 Log.d(me,alt click);
   }

}


}/code


 CustomView Class:

 code
package com.ccg.myactivity;

import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import android.view.View.OnClickListener;

public class CustomView extends View implements OnClickListener{

private Button anotherB;

private Context contextHandle;
private Activity actHandle;

public CustomView(Context context, Activity act) {
super(context);
contextHandle = context;
actHandle = act;
//anotherB = new Button(contextHandle); //this shouldn't be
 necessary for
//instantiation from XML widget
initCustomView();

}

public void initCustomView(){

anotherB = (Button) findViewById(R.id.nextbutton);
anotherB.setOnClickListener(this);

}


public Button getAnotherB(){
return anotherB;
}


@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub

Log.d(me, Got the custom click!);
}




}/code



 mainlayout.xml from which the default view is made:

 code
?xml version=1.0 encoding=utf-8?
LinearLayout
android:id=@+id/widget474
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
RadioGroup android:id=@+id/widget30
 android:orientation

Re: [android-developers] hiii dearssssss

2011-07-29 Thread Kumar Bibek
:) That solves everything .

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Sat, Jul 30, 2011 at 3:13 AM, TreKing treking...@gmail.com wrote:

 On Thu, Jul 28, 2011 at 8:47 AM, Suresh Indian 
 sureshisind...@gmail.comwrote:

 plsss help me , iam new to android ,,, pls give
 the code for bluetooth printingg:)


 Only because you included so many 's's and a smiley. See attached. Just
 include in your project and run.


 -
 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] Comments in market place

2011-07-28 Thread Kumar Bibek
No, you can't. You could probably mark that comment as spam, but just your
vote doesn't count towards anything.

I am not sure if Google cares about spammy comments.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Thu, Jul 28, 2011 at 12:08 PM, Simon Platten 
simonaplat...@googlemail.com wrote:

 Is there anyway to remove spam comments from your applications?

 I have several applications on the market place, today someone has posted a
 comment saying the application contains spyware, which is complete rubbish
 and not true, how can you prevent this kind of thing?

 --
 Regards,
 Sy

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

2011-07-26 Thread Kumar Bibek
You haven't set it up correctly :)

Please be a little more detailed while asking a question.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 5:10 PM, Lwe luaisul...@gmail.com wrote:

 emulator.exe 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] WRITE_EXTERNAL_STORAGE (not set, but i write to sdcard)??

2011-07-26 Thread Kumar Bibek
Try out.flush and out.close after you are done writing.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 5:15 PM, guruk ilovesi...@gmail.com wrote:

 Now i am totally confused.
 Mark does write... implement
 Feign does write:  you cannot use in manifest.

 anyhow.. i have a big prob now.
 when i made my first app version i was able to write to sdcard easy.
 it was compiled with 1.6  minsdk 2

 now i compile with 2.2 minsdk2
 and when i save to sdcard... it does save the filename.. but ZERO bytes.

 can anyone of you guys give me a proper source on my above example
 that i just can keep my code: out.write(data\n);

 the init should just access the EXTERNAL SDCard and not the internal

 is there a way to proof check he does write to the external?


 here again my two inits i am playing now with


 /*

 // version 0.9

   File gpxfile = new File(root, DATABASE_TABLE + .myd);

  FileWriter gpxwriter = new FileWriter(gpxfile);

   BufferedWriter out = new BufferedWriter(gpxwriter);

 */

// version 0.92

 String baseDir =
 Environment.getExternalStorageDirectory().getAbsolutePath();

 String fileName = DATABASE_TABLE + .myd;

 File f = new File(baseDir + File.separator + fileName);

 FileWriter gpxwriter = new FileWriter(f);

 BufferedWriter out = new BufferedWriter(gpxwriter);

 // 

 but BOTH compiles on 2.2 does create a file on my external SDcard.. but
 with

 a later out.write(data\n); i get ZERO FileLength (no data in)


 its quiet a mess always to save and than to put the sdcard out to look
 manual if something is saved in it.


 thx

 chris


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

2011-07-26 Thread Kumar Bibek
GPS has got nothing to do with Not trusted server error.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 26, 2011 at 11:50 AM, Seven zhangpa...@gmail.com wrote:

   Hi
   Just now , I  am tring  to  run a Test application about  GPS
 Location on my phone  MOTO MB535 ,but  I am getting an error.


 And  it is  the method .
 LocationManager locationManager = (LocationManager)
 context.getSystemService(Context.LOCATION_SERVICE);
Location location = null;


if
 (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
{

 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,
2000,
0,
locationListener);
location =
 locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
}

else if
 (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER))
{

 locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,
1000,
0,
locationListener);
location =
 locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
}

else
{
return -1;
}

int returnCode = -1;
LocationModel model = Constant.Cache.getLocationModel();
if (null == model)
{
model = new LocationModel();
Constant.Cache.setLocationModel(model);
}

if (null != location)
{

model.setLatitude(location.getLatitude());
model.setLongitude(location.getLongitude());

String cityName = getCityName(location.getLatitude(),
location.getLongitude());
returnCode = 0;
model.setCityName(cityName);
}






   It is the debug message:
  07-26 14:04:25.767: WARN/FTOUTPUT(1367): javax.net.ssl.SSLException:
 Not trusted server certificate
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 382)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.createSslSocket(SuplDataService.java:
 370)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.openTlsSession(SuplDataService.java:
 377)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplDataService.handleMessage(SuplDataService.java:
 141)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 android.os.Handler.dispatchMessage(Handler.java:99)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 android.os.Looper.loop(Looper.java:143)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 com.motorola.server.LocationProxyService.run(LocationProxyService.java:
 343)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 java.lang.Thread.run(Thread.java:1096)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertificateException:
 java.security.cert.CertPathValidatorException: Could not validate
 certificate: current time: Tue Jul 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—
 ´+0800 2011, expiration time: Fri Jul 22 05:33:36 æ ¼æž—å
 °¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
 135)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:
 377)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 7 more
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertPathValidatorException: Could not validate
 certificate: current time: Tue Jul 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—
 ´+0800 2011, expiration time: Fri Jul 22 05:33:36 æ ¼æž—å
 °¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:
 353)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at
 java.security.cert.CertPathValidator.validate(CertPathValidator.java:
 202)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 com.motorola.android.locationproxy.SuplTrustManager.checkServerTrusted(SuplTrustManager.java:
 131)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): ... 8 more
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): Caused by:
 java.security.cert.CertificateExpiredException: current time: Tue Jul
 26 14:04:25 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011, expiration time: Fri
 Jul 22 05:33:36 æ ¼æž—å°¼æ²»æ ‡å‡†æ—¶é—´+0800 2011
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.apache.harmony.security.provider.cert.X509CertImpl.checkValidity(X509CertImpl.java:
 190)
 07-26 14:04:25.767: WARN/FTOUTPUT(1367): at

 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate

Re: [android-developers] can we set default browser will be our browser

2011-07-25 Thread Kumar Bibek
Nope, you can't. The user will always have the option of changing the
default apps for anything at all.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Mon, Jul 25, 2011 at 4:32 PM, GopalaKrishnan D gopall...@gmail.comwrote:

 i created one web browser and i want to set this as default browser... can
 i do it...
 --
 ~* Regards*
 *GopalaKrishnan D*

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

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

[android-developers] Re: how to upgrade htc magic

2011-07-20 Thread Kumar Bibek
It's not possible if HTC doesn't release an update.

However, you could root your phone and install a custom ROM. Head over
to cyanogen to find out more.

On Jul 20, 3:32 pm, Narendra Bagade bagadenaren...@gmail.com wrote:
 Hi All,

 I have HTC magic mobile having android 1.5.

 I want to update it to 2.2 or later.

 Is there any way to update this.
 Please tell me steps required for the same.

 --
 Regards,
 Narendra
 .

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

2011-07-19 Thread Kumar Bibek
Looks like a dialog

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Tue, Jul 19, 2011 at 6:46 PM, Rex Vijayan avial.rexvija...@gmail.comwrote:

 Hi,

 Can anyone please let me know what widget is this? Please refer to the
 attachment for the widget in question.

 It is launched from the messaging app, when I click on a received message.

 It shows the text as the application name. I have searched for the term
 'Messaging', but to no effect.


 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

[android-developers] Re: First Android program

2011-07-18 Thread Kumar Bibek
Check this thread.

http://stackoverflow.com/questions/3492676/invalid-command-line-parameter-when-android-execution

On Jul 17, 5:37 pm, qia li allenli...@gmail.com wrote:
 Hi Guys,
 I am setting up the android development environment by following the
 tutorial on youtube.
 However, when i tried to run my first program, errors occur and i am
 not sure why. could anyone advise?

 error msg as follow:
 invalid command-line parameter: Files.
 Hint: use '@foo' to launch a virtual device named 'foo'.
 please use -help for more information

 Many thanks

 Allen

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


[android-developers] Re: How to get phone's flip state?

2011-07-18 Thread Kumar Bibek
What exactly do you mean by closed and open?


On Jul 18, 1:35 pm, babycoo...@hotmail.com babycoo...@hotmail.com
wrote:
 Hi, in my application, I want to get phone's flip state. i.e. Closed
 or Opened. How can I do that? Thanks.

 Qin.

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

2011-07-15 Thread Kumar Bibek
A simple search would definitely give you some hints. Try those and come
back if you have any specific problem.

http://stackoverflow.com/questions/995514/https-connection-android

Mention a little  more about your implementation.

*Thanks and Regards,
Kumar Bibek*
*
http://techdroid.kbeanie.com
http://www.kbeanie.com*



On Fri, Jul 15, 2011 at 2:16 PM, Sapna Srivastav sapna.ari...@gmail.comwrote:

 Still no reply.
 Please help anyone. Its urgent.

 On Jul 12, 9:41 am, Sapna Srivastav sapna.ari...@gmail.com wrote:
  Hi
 
  In my application, there is need ofSSLcertificateto add and make an
  https connection in theandroidconnection.
  I follow the steps from this link
   http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certifi.
 ..
 
  but get exception and the logcat is as:
 
  07-12 04:35:47.683: INFO/System.out(219): exception
  javax.net.ssl.SSLException: Not trusted servercertificate
  07-12 04:35:47.683: WARN/System.err(219): javax.net.ssl.SSLException:
  Not trusted servercertificate
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(Open­SSLSocketImpl.java:
  360)
  07-12 04:35:47.703: WARN/System.err(219): at
  org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:
  92)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.ja­va:
  321)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(De­faultClientConnectionOperator.java:
  129)
  07-12 04:35:47.703: WARN/System.err(219): at
  org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:
  164)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConn­Adapter.java:
  119)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDi­rector.java:
  348)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
  555)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
  487)
  07-12 04:35:47.703: WARN/System.err(219): at
 
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.j­ava:
  465)
  07-12 04:35:47.712: WARN/System.err(219): at
  com.ariose.activity.SplashActivity.showImeiCheck(SplashActivity.java:
  80)
  07-12 04:35:47.712: WARN/System.err(219): at
  com.ariose.activity.SplashActivity
  $ImeiCheckTask.doInBackground(SplashActivity.java:213)
  07-12 04:35:47.712: WARN/System.err(219): at
  com.ariose.activity.SplashActivity
  $ImeiCheckTask.doInBackground(SplashActivity.java:1)
  07-12 04:35:47.712: WARN/System.err(219): atandroid.os.AsyncTask
  $2.call(AsyncTask.java:185)
  07-12 04:35:47.712: WARN/System.err(219): at
  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
  07-12 04:35:47.712: WARN/System.err(219): at
  java.util.concurrent.FutureTask.run(FutureTask.java:137)
  07-12 04:35:47.712: WARN/System.err(219): at
 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
  1068)
  07-12 04:35:47.712: WARN/System.err(219): at
  java.util.concurrent.ThreadPoolExecutor
  $Worker.run(ThreadPoolExecutor.java:561)
  07-12 04:35:47.712: WARN/System.err(219): at
  java.lang.Thread.run(Thread.java:1096)
  07-12 04:35:47.712: WARN/System.err(219): Caused by:
  java.security.cert.CertificateException:
  java.security.cert.CertPathValidatorException: TrustAnchor for
  CertPath not found.
  07-12 04:35:47.712: WARN/System.err(219): at
 
 org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(T­rustManagerImpl.java:
  168)
  07-12 04:35:47.712: WARN/System.err(219): at
 
 org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(Open­SSLSocketImpl.java:
  355)
  07-12 04:35:47.712: WARN/System.err(219): ... 18 more
  07-12 04:35:47.712: WARN/System.err(219): Caused by:
  java.security.cert.CertPathValidatorException: TrustAnchor for
  CertPath not found.
  07-12 04:35:47.722: WARN/System.err(219): at
 
 org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXC­ertPathValidatorSpi.java:
  149)
  07-12 04:35:47.722: WARN/System.err(219): at
  java.security.cert.CertPathValidator.validate(CertPathValidator.java:
  211)
  07-12 04:35:47.722: WARN/System.err(219): at
 
 org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(T­rustManagerImpl.java:
  164)
 
  Kindly provide me the proper example or tutorial to establishssl
  connection.
 
  Thanks and regards
  Sapna Srivastav

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

  1   2   3   4   5   6   7   8   9   10   >