[android-developers] Re: help me
Hey Can u elaborate on the emulator problem ? What issue are you facing exactly? On Feb 13, 8:51 am, kamran Manzoor kamranmanzoor...@gmail.com wrote: the code is here with emulator problrm package com.net.login; import android.app.Activity; import android.content.DialogInterface.OnClickListener; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class login extends Activity { /** Called when the activity is first created. */ String username , password; Button login; TextView tv = new TextView(this); EditText name = new EditText(this); EditText pass =new EditText(this); �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // // name = (EditText)findViewById(R.id.user_name); pass = (EditText)findViewById(R.id.password); login = (Button)this.findViewById(R.id.login); username = name.getText().toString(); password = pass.getText().toString(); login.setOnClickListener((android.view.View.OnClickListener) loginListener); } private OnClickListener loginListener = new OnClickListener() { public void onClick(View v) { if (username == kami password == kami) { //TextView tv = new TextView(this); tv.setText( Login is Proved); setContentView(tv); //System.out.println(login proved); } else { // TextView tv = new TextView(this); tv.setText( Passwod is incorrect ); setContentView(tv); } //System.out.println(login proved); } }; } plz help me if anyone know? thanx kamran Manzoor FAST-NU -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: adb can't list my attached device
Its possible that the server is not running or there is some error w.r.t. it.U can try : adb kill-server adb start-server commands to restart it. This works for HTC phones and the emulator. On Feb 12, 4:29 am, zeeshan genx...@gmail.com wrote: Hi Dear, i am trying to install an app to my Android Sony Ericsson Xperia device but not able to connect it to adb. i can access phone's sdcard drive in windows but adb devices command doesn't show any device connected, not even through eclipse. i figured out that i need to install device driver. tried android usb driver but it doesn't seem to pick up for Xperia. could anyone guide how can i connect my device to adb? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: urgent help Integrating code with Android home screen code.
Hey.. Any luck?? Even if you add your project files (xml java) into the packages directory [where launcher, settings...etc apps sit], you will have to enlist it in the generic.mk file and build, for the system to consider it as a system application. The correct path is what Rogerio has given above. Let us know if u could resolve it or have already cracked it :-) Cheers! On Jan 27, 4:03 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi, in the file generic.mk there are all the separate application are there. but i want my files to be part of the android code. Cant it be possible that i will just add my file in the directory where the launcher code for android sits , i will add just files (xml java), then as we call our activity in the normal program i will call my activity from home screen? thanks, satish 2010/1/27 Rogério de Souza Moraes rogerio.so...@gmail.com Hi satish, What Darshana means is that you need to put you aplication inside the source code of Android. You need to donwload the source code of Android and put your application inside it. The file that he told you is the file: android_source_code_root/build/target/product/generic.mk inside this file, are the sources of the applications that are compiled with the code of Android. Regards, Rogerio 2010/1/27 satish bhoyar getsatonl...@gmail.com Hi darshana, thanks for the reply. I am still stuck. can u guide me where i can find this file? do u mean it is Android.mk or anything else? Thanks, satish On Fri, Jan 22, 2010 at 9:47 PM, deeMurthy darshana.mur...@wipro.comwrote: Hi Satish, If m not wrong, you are playing around with cupcake/donut or eclair code directly. In that case you will have to build your app into the system for your homescreen code to recognise it. Include your application into the generic.mk and rebuild the code. This should work. Cheers! On Jan 22, 2:00 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am trying to integrate my code to the android Home Screen code. I want to launch my activity frm the HomeScreen by click of a button. I Did the code then build it but when i click the button i m getting error as Application not installed on phone. please help Thanks, satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Doubts while doing app's with graphics
Thanks Beth! I worked it out by starting a new thread which would invoke the desired activity after a certain point in time. I shall try what you suggested too and check for performance advantages.. Many Thanks. On Feb 2, 12:06 pm, Beth emez...@gmail.com wrote: You can create an Animation Listener to call the new activity when the animation ends with the onAnimationEnd function. Good luck! On Feb 1, 9:00 pm, deeMurthy darshana.mur...@wipro.com wrote: Hi I have doubts while doing some 2D Graphics and animation. Here is what i have done and what i want to do further: An application starts with a 2D object [ball] rotating and execising in a particular fashion, and after a particular point in time the object [ball] scrolls out of vision. After this point i want to invoke a new activity with a different UI. I m stuck up while trying to transit from this View to a new activity. Please give me some inputs as to what can be done Many thanks in advance Darshana- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Doubts while doing app's with graphics
Hi I have doubts while doing some 2D Graphics and animation. Here is what i have done and what i want to do further: An application starts with a 2D object [ball] rotating and execising in a particular fashion, and after a particular point in time the object [ball] scrolls out of vision. After this point i want to invoke a new activity with a different UI. I m stuck up while trying to transit from this View to a new activity. Please give me some inputs as to what can be done Many thanks in advance Darshana -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: urgent help Integrating code with Android home screen code.
Hi Satish, If m not wrong, you are playing around with cupcake/donut or eclair code directly. In that case you will have to build your app into the system for your homescreen code to recognise it. Include your application into the generic.mk and rebuild the code. This should work. Cheers! On Jan 22, 2:00 pm, satish bhoyar getsatonl...@gmail.com wrote: Hi all, I am trying to integrate my code to the android Home Screen code. I want to launch my activity frm the HomeScreen by click of a button. I Did the code then build it but when i click the button i m getting error as Application not installed on phone. please help Thanks, satish -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: App widget configue activity opens main activity.
Hi Mike You can call finish() at the end of your onCreate() method and check. Otherwise, see what intent filters are given for your main activity in the manifest file..it could be the culprit Post your code around MikeIt will be easier for us to help! Cheers! On Jan 11, 2:24 am, BiiG biigr...@hotmail.com wrote: I hav an app that is like a relational database. There is a main app activity that users manage things with. There is also a widget that will display important info and add data to the database. When the widget is clicked, a configure class displays a way for the user to edit data. When the configure activity is done, the widget is updated and instead of going back to the home screen, the apps main activity is started. I can't find where the main activity is being called from. Wouldnt I have to create an intent and startActivity() to get this behavoir? When done updating, I want the home screen and not my app. Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Doubt w.r.t content resolver
Thanks! On Jan 1, 9:14 am, Rui Wu netiger198...@gmail.com wrote: All member functions in AppWidgetProvider have a Context type. I think you can call Context's getContentResolver() to get an content resolver intance. 2009/12/31 deeMurthy darshana.mur...@wipro.com Hi Is it possible to access the content resolver methods in a class extending from AppWidgetProvider class? Have been trying to do it with no luck so far. Please help. Many Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- BRs, Rui -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Doubt w.r.t content resolver
Hi Is it possible to access the content resolver methods in a class extending from AppWidgetProvider class? Have been trying to do it with no luck so far. Please help. Many 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