[android-developers] Re: update TextView inside a TimerTask

2012-03-13 Thread harsh chandel
you can use this timer given in devloper guide new CountDownTimer(3, 1000) { public void onTick(long millisUntilFinished) { TextView txttimer=(TextView) findViewById(R.id.timeremaining); txttimer.setTex

[android-developers] Re: back button in actiovity group

2012-01-11 Thread harsh chandel
try this public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { super.onKeyDown(keyCode, event) do something return true; } return false; } On Jan 11, 5:14 pm, vani reddy wrote: > Thanks. > I tried this , the problem is

[android-developers] Re: zooming on webkit WebView

2012-01-11 Thread harsh chandel
hi you can use setinitialscale attribut asnd pas value 200 or 300 in it On Jan 10, 7:37 pm, freefly wrote: > Hi all, >     I am developing an application where I need to zoom the text on > the WebView, as much as a single word on the whole screen, is this > possible ? I have tried with the WebVie

[android-developers] Re: Open Browser with HTML page from sdcard

2011-12-12 Thread harsh chandel
use the following url Environment.getExternalStorageDirectory()+"/ stocks.html" you can also check if the following file exsists File f=new File(ur); System.out.println("file exsists"+f.exsists());//this line will print true if file exsists otherwise false On Dec 11, 12:12 pm, Stephan Wiesner wr

[android-developers] Re: How can i Assign a id to view Programmatically?

2011-12-11 Thread harsh chandel
you can do setid(any no) this will be your id it is used to dynamically assign id to a view or a viewgroup On Dec 11, 3:44 pm, Duygu Kahraman wrote: > Selam Ali; > > Asıl sormak istediğim şu;mesela  TextView tv=new TextView(this); diye bir > view yarattım.Eğer xmlde yaratmış olsaydım id sini de o

[android-developers] Re: Problem loading an HTML asset in WebView

2011-09-12 Thread harsh chandel
Hi try to get the file from assets manager AssetManager asm =getAssets(); asm.open(name of the file) Thanks Harsh On Sep 13, 6:33 am, Mark Murphy wrote: > Just for grins, try all lowercase (shopping) instead of mixed case (Shopping). > > > > > > > > > > On Mon, Sep 12, 2011 at 11:55 AM, darrinp

[android-developers] Re: Can I get x and y positions of Bitmap after Rotating, How????

2011-06-30 Thread harsh chandel
if you are setting a bitmap in a image view you can use getlocationonscreen method or getLocationInWindow -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscrib

[android-developers] Google Reader

2011-06-20 Thread harsh chandel
I want to integrate Google reader in my application, Is there any api available? Or please suggest me a suitable way to do that. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google

[android-developers] Re: How to immediately dispatch touch events outside of a PopupWindow

2011-06-15 Thread harsh chandel
how are you using your pop up as alert dialog or just dialog try using dialog may be this coulod help On Jun 15, 10:48 pm, Shri wrote: > If a ListPopupWindow is being displayed, I can tap on buttons outside > it, and the buttons receive the touch event. However, while displaying > a PopupWindow,

[android-developers] Re: Want to capture screenshot of current screen from phone

2011-06-07 Thread harsh chandel
go to ddms select device on top you have options for getting the screen capture for device click on capture then save it wherever you want On Jun 7, 7:56 pm, Bharathi raja wrote: > Hi, > thanks for ur sample code. > As i said, they are some application screens made up of graphics component. > F

[android-developers] Re: dynamic font size

2011-06-06 Thread harsh chandel
use gettext size to get the size of the textview this will return size in float if you know the current size you can settextsize -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@goog

[android-developers] Re: Installing platforms without internet access

2011-06-06 Thread harsh chandel
yes what you can do is first run eclipse go to help -->install new software --> click on add at the top right corner a pop will come click on the archieve and browse to the location where your zipped adt is located -->wait for the process to finish and then click on the next -->next until you ar

[android-developers] Re: Issue: Image is zoomed on the android canvas.

2011-06-06 Thread harsh chandel
try testing it on the actual phone the canvas pixel size is less than actual screen -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, sen

[android-developers] Re: Emulator Error

2011-06-06 Thread harsh chandel
try dowblaoding the adt again -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups

[android-developers] Re: ISSUE about get phone number and background process is killed.

2011-06-06 Thread harsh chandel
put this line of code to open deafult phone nos Intent intent = new Intent(android.content.Intent.ACTION_SEND); to open phone book On Jun 4, 9:26 pm, amnart asayavachira wrote: > To Android Developer > > Hello. > > I am new android developer and a litte english . I has one project > that have two

[android-developers] Re: PreLoading Toggle Button States

2011-06-06 Thread harsh chandel
create the buttons dynamically i.e. at run time and use shared prefrence to store there state in the on create /on resume method get the variables stored in the shared preference to get the current state while loading you can also do is check the state in any mehtod and then call that method in

[android-developers] Re: Invisible Activity

2011-06-06 Thread harsh chandel
if you dont want to display your activty on the screen dont make it as an activity make it a different class write the code in this and call it wherever you want this class if you dont want the object of this class creaated every time make it static On Jun 6, 11:22 pm, Marcin Orlowski wrote: > O

[android-developers] Re: switching from one app to another

2011-05-30 Thread harsh chandel
in manifest file put intent filter as callback and browseable On May 29, 1:02 pm, Dianne Hackborn wrote: > This will also cause the browser to add new windows/tabs to the single task > it maintains.  Please don't do this kind of thing. :} > > > > On Sun, May 29, 2011 at 12:01 AM, Doug wrote: >

[android-developers] Re: keeping track of time a user is actively using an android app

2011-05-15 Thread harsh chandel
You can use a base class for all activty and use the timer code within that class if your program is long you wont have to artie the code in every class On May 15, 12:51 am, TreKing wrote: > On Fri, May 13, 2011 at 2:58 PM, laurent bouis wrote: > > I did some research and the only suggestion I

[android-developers] Re: How to draw a circle on an image

2011-05-15 Thread harsh chandel
use custom view to draw the circle and then place it in the activity On May 15, 2:42 am, Droid wrote: > I have an image that needs a red circe at x,y coords. Its in an image > view. I can get x,y coords but no idea at all about how to place a red > circle? -- You received this message because

[android-developers] Re: GPS

2011-05-11 Thread harsh chandel
please check if you added permissions in the manifest file and your internet is connected at the time you run the app On May 9, 8:34 pm, Innocent wrote: > Hi guys I'm working on a project and my GPS on the emulator am using > doesn't seem to function!! WHEN I try to run a simple program to show >

[android-developers] Re: onBackPressed to hide Not destroy activity

2011-05-10 Thread harsh chandel
override the back button and pass intent to the class you want to go to. and save the state of the current activity On May 10, 1:54 pm, Ali Chousein wrote: > I agree with Muhammad. Save your instance state and restore it when > necessary, instead of trying to do something against the framework. >

[android-developers] Re: Problem in Creating Menu

2011-05-09 Thread harsh chandel
you want to dispaly this menu bar at the bottom of the screen right you have many ways to do this you can create and paste it like an image on the bottom of the screen or you can put tabhost . or next way is little complex but it is the way i do it public class BottomMenu extends LinearLayout

[android-developers] Re: ListView - is it possible to limit the fling speed?

2011-05-09 Thread harsh chandel
when you scroll with the help of fling compare the speed with which you want to scroll like if velocity >(some value dont scroll if velocity is< some value scroll On May 9, 9:03 pm, Omar Adobati wrote: > Hi Everyone, > > I would like to knoe if I can limit the speed of the fling gestures in my >

[android-developers] Re: How to define mp3 file in manifest?

2011-05-09 Thread harsh chandel
no need to add it in manifest simply create an mediaplayer this will be the command: int i=getResources().getIdentifier(s,"raw",getPackageName()); if(i!=0){ MediaPlayer player = new MediaPlayer().create(getBaseContext(),i);; player.se

[android-developers] Re: How to get MD5 fingerprint for google maps in windows 7 ?

2011-05-03 Thread harsh chandel
create a folder in one of the drives which has file name keystore please use this location while giving set command you find on net to generate md5 On May 3, 12:23 am, Goutom wrote: > Hello TreKing, >       u dont need to read the documentation. > Regards, >          GoutomOn Wed, Apr 20, 2011 a

[android-developers] Re: Database updates

2011-05-03 Thread harsh chandel
can you put the code On May 3, 5:58 am, Albert Rosa wrote: > So this is my first time working with android and the sqlite db. I followed > the instructions and was able to have a db connection where i was able to > create and edit records. However i changed the schema of the db just to make > it

[android-developers] Re: which is the fastest encryption scheme that i can use with android?

2011-04-27 Thread harsh chandel
pci encryption On Apr 27, 3:23 pm, Hitendrasinh Gohil wrote: > hi, > > can anyone tell me which the fast encryption scheme in android that i > can use? > > regards, > hitendrasinh gohil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: Regarding Parsing From Server.

2011-04-27 Thread harsh chandel
generate the tokens in your app whatever you want to send and then send it to server the server side coding i dont know but for client side coding i can tell you if you have any queries i have already done this for 2 apps On Apr 27, 10:01 pm, TreKing wrote: > On Tue, Apr 26, 2011 at 3:43 AM, yo

[android-developers] Re: Gmaps keytool not found

2011-04-26 Thread harsh chandel
the procedure is as follows 1. get a md5 fingerprint the command is keytool.exe -list -alias androiddebugkey -keystore D: \Androidkeystore\debug.keystore -storepass android -keypass android but make sure the D: drive coantains the androidkeystore file (located in the .android folder ) 2.type the md

[android-developers] Re: Best way to convert iPhone 3-D game code to run on Android devices?

2011-04-13 Thread harsh chandel
you have to move to java On Apr 13, 10:55 am, Atul Prakash wrote: > Dear Friends, > > I need to convert our existing iPhone 3-D action game code to run on > Android. Recently, I have developed 2-D game on Android platform and > now I am moving towards 3-D. These days I am exploring the options t

[android-developers] Re: Programatically unchecking items in a dialog

2011-04-13 Thread harsh chandel
write the setitemchecked method withinin oncreate method. On Apr 13, 9:56 am, Akshay Goel wrote: > But I am manipulating the data by calling setItemChecked(). When I > said updating the UI, I meant updating data that results in refreshing/ > changing the UI. > > Thanks, > Akshay > > On Apr 12, 10

[android-developers] Re: Access the Activity stack

2011-04-11 Thread harsh chandel
ActivityManager am = (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE); List processes; processes = am.getRunningAppProcesses(); for(ActivityManager.RunningAppProcessInfo info: processes) { Log.i("Process:", info.processName); } On Apr 11, 9:35 am, Julius Spencer wrote: > Hi, > >

[android-developers] Re: Parsing data from a calender on a website

2011-04-08 Thread harsh chandel
hi you can use the saxparser or dom parser you can find example on android developer. to put the whole data in your application and then use it. On Apr 6, 8:52 pm, Neutron_boy wrote: > I am fairly new to Android, but have some experience reading and > understanding code, including Java. > My que

[android-developers] Re: Getting rid of white line in Tab Widget

2011-04-06 Thread harsh chandel
there is set background property in tabwigdet On Apr 4, 11:13 am, AlexBonel wrote: > Didn't find any discussion of this problem in the group. How can I get > rid of the white line under tab widgets in TabActivity? And if anybody > knows I would be verry gratefull if you would also tell me how to

[android-developers] Re: Get data from EditText

2011-04-06 Thread harsh chandel
String s=(Edittext) findviewbyid(R.id.edittext01).getstring.tosring(); On Apr 4, 12:36 pm, rishabh agrawal wrote: > How to get data from EditText & how to stored in Buffer i.e Integer.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] Re: read character unicode form sqlite

2011-04-06 Thread harsh chandel
use string to store in database On Apr 4, 2:59 pm, thavorac chun wrote: > Hi everyone, > I'm working with sqlite right now and at this this moment i found a > problem related to reading data from sqlite that i can not solve it. > For example i have a french word " Hôtel " that have been insearte

[android-developers] Re: WebView as map

2011-04-06 Thread harsh chandel
use overlays in map in overlays you can use drawable images On Apr 4, 1:28 pm, hEngi wrote: > Hi, > I'm new in android. > I'd like to use a picture as a map. The easiest way is WebView. There > is zoom and i can pull the image etc. But i have a problem. I cannot > use my picture from res/drawabl

[android-developers] Re: how to scroll in canvas or view (android)

2011-03-28 Thread harsh chandel
put the view in a xml file .. . ... On Mar 25, 6:11 am, Byung-Ju wrote: > Hi > > Thanks for reading this. > > 1. Big Canvas (1000x1000) and display(screen) 320x480 > > 2. drawBitmap(bitmap1, 100, 100, null); > 3. drawBitmap(bitmap2, 500, 500, null); > ... and do something bi

[android-developers] Re: best way to save images files

2011-03-27 Thread harsh chandel
store them in drawable folder within res and and call the imageview object.setbackgroundresource(r.drawable.name of the image) On Mar 27, 9:05 pm, "Igor Nesralla Ribeiro" wrote: > Hi, > > I have this scenario : > > I have 50  images files of restaurants , that > restaurants(name,city,address,imag

[android-developers] Re: Two functions Button?

2011-03-27 Thread harsh chandel
take a boolean variable and wirtie two if condition on each condition set condtions On Mar 27, 8:55 pm, Gabriel wrote: > How I create a button with two functions? > For example, when I click it once it starts a sound, and if I click it > again it stops the sounds. > > Or a Mute button, that when

[android-developers] Re: SQLiteDatabase or XML(saving)?

2011-03-22 Thread harsh chandel
database if security is invloved if on xml on internet On Mar 22, 2:46 pm, -Ernest wrote: > Hello guys, > Thanks for making android a wonderful platform. > Me and my mate are writing a project and its an android app. > Yesterday i finish my third book about programing for > the android platform "

[android-developers] Re: How to Create a Media Player

2011-03-22 Thread harsh chandel
you want to create your own media player or use the media player supported by android On Mar 23, 7:55 am, cibin wrote: > I am beginner in Android; I know only the basics...Please help me to > create a Media Player in Android -- You received this message because you are subscribed to the Google

[android-developers] Re: How to declare Button as global object????

2011-03-22 Thread harsh chandel
Declare a method to add button in a function and add setonclicklistner method on the button in the onclicklstner method do whatever you want to do with the button On Mar 15, 5:04 pm, DanH wrote: > PS:  You can probably skip chapters 13 and 15. > > On Mar 15, 4:53 am, "Ponraj \"Android Developer\"

[android-developers] Re: Android WebView with CSS modification of hr tag

2011-03-22 Thread harsh chandel
just open it in web view webview.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); webview.setBackgroundColor(0); webview.setInitialScale(110); form.addView(webview);

[android-developers] Re: How to capture key events from View subclass

2011-03-22 Thread harsh chandel
try ontouch method get x and y coordinate of the area clicked and do as you want on the clicked event On Mar 21, 4:39 pm, Rich E wrote: > Hi, > > I'm trying to figure out how to capture keyboard input from a View, without > subclassing EditText or something similar (the reason is that I have a

[android-developers] Re: Activity lifecycle... still a mystery to me

2011-03-22 Thread harsh chandel
yes all things you specified could be done write overwrite back button code for 1 2 not clear 3 ok write overwrite onstop ,onpause,on resume On Mar 22, 7:59 am, DulcetTone wrote: > My app responds to speech commands. > > I want the behavior to be that > > 1.  if back is hit on my initial activity

[android-developers] Re: Can this app be developed?

2011-03-22 Thread harsh chandel
yes it could be done On Mar 21, 6:20 am, shubhandroid wrote: > Can an app with the following features be made: > -Phone1 transfers video feed from the major camera to the screen of > phone2 via bluetooth > -when user clicks on a button on the screen of phone2, it should > press > a number of the

[android-developers] Re: how to reload previous activity on back button click

2011-03-22 Thread harsh chandel
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //Intent intent = new Intent(this,name of the class where you want to go to); startActivity(intent); return true; }

[android-developers] Re: adding custom view in main.xml

2011-03-22 Thread harsh chandel
set paint style canvas.drawLine(100, 100, 200, 200, new Paint()); instead of new paint define pay style On Mar 22, 11:27 am, "Vishwesh R." wrote: > my code:- > > main.xml > > > >         android:id="@+id/view1" >         android:layout_width="fill_parent" >         xmlns:android="http://schemas

[android-developers] Re: What will happen to existing connections when switch between 3g/wifi

2010-08-18 Thread harsh chandel
if the ip address is different the connection will break -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develop

[android-developers] Re: source code

2010-08-18 Thread harsh chandel
read google references to undertstand existing applications -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-devel

[android-developers] programming issue on canvas

2010-07-07 Thread harsh chandel
hi i am trying to develop a code in which i try to add some buttons and some textbox on canvas which contains bitmap image but when i try to do so i got code from google in which you can add linear layout with canvas i modified it and when i try to run it the linear layout which contain button co

[android-developers] canvas problem

2010-07-07 Thread harsh chandel
i am making a application in which i need to draw a circle in the middle of the screen with with variable radius everytime with this i have to put few text boxes and buttons on the view to draw the circle i use canvas and to add buttons and text boxes i put linear layout but i am not able to do