[android-developers] video playback scratching my head

2009-10-15 Thread Jags
Hi I am trying to play a video in my app. It has to be embedded i went through http://groups.google.com/group/android-developers/browse_thread/thread/63692208da946ead I am able to play my video using VideoView as mentioned in this discussion. But there are a few problems. 1. I need full

[android-developers] Re: video playback scratching my head

2009-10-15 Thread Jags
)); videoHolder.requestFocus(); videoHolder.start(); strange the commented url works. the one with sdcard the other one does not work i have tries too many combinations file:// res/raw/demo.3gp to only demo please tell me what should be the correst string ! On Oct 15, 8:17 pm, Jags jag

[android-developers] Re: button swap example android

2009-11-09 Thread Jags
Nobody have tried this kind of thing ? I found this post http://www.mail-archive.com/android-developers@googlegroups.com/msg49872.html but it seems the AbsoluteLayout is deprecated. Please suggest to make it work in latest sdk regards Jagat On Nov 6, 5:28 pm, Jags jag...@gmail.com wrote: I am

[android-developers] pressed image not showing !

2009-11-19 Thread Jags
?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:drawable=@drawable/image1 / !-- default -- item android:state_pressed=true android:drawable=@drawable/ image2 / !-- pressed -- item android:state_focused=true

[android-developers] Re: pressed image not showing !

2009-11-19 Thread Jags
it seems it is not working with imagebuttons but working with buttons http://groups.google.com/group/android-developers/browse_thread/thread/3b193e2a1a74cb38/fd66c64817e56052?show_docid=fd66c64817e56052fwc=1 Jagat On Nov 19, 5:49 pm, Jags jag...@gmail.com wrote: ?xml version=1.0 encoding=utf-8

[android-developers] Re: pressed image not showing !

2009-11-19 Thread Jags
having done that, I figured out I only need my buttons be focussed on touch not by center or 5way nav buttons, is there a way to do that ? On Nov 19, 8:13 pm, Jags jag...@gmail.com wrote: it seems it is not working with imagebuttons but working with buttons http://groups.google.com/group

[android-developers] imageview under 3 linearlayouts

2009-11-19 Thread Jags
I need to arrange one background image for my 3 vertically aligned Linearlayouts. I cannot use my parent layout background, because it covers the whole screen. Is there a way to do that ? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical

[android-developers] default screenwidth of android

2009-11-20 Thread Jags
whats the default screen width of android devices ? I took a 320 x 460 image for my splash screen, it did not cover the entire screen ! regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] ratingbar

2009-11-20 Thread Jags
i tried to put a rating bar. i made it focussable=false and Clickable=false, but when i run it it is focusable and runnable. I tried to put in small dimensions, but the big stars are coming, how to make small, I am using android 1.5, seems there is no style=small attribute ! regards Jagat --

[android-developers] Re: ratingbar

2009-11-20 Thread Jags
thanks in advance Jagat On Nov 20, 9:35 pm, Jags jag...@gmail.com wrote: i tried to put a rating bar. i made it focussable=false and Clickable=false, but when i run it it is focusable and runnable. I tried to put in small dimensions, but the big stars are coming, how to make small, I am

[android-developers] button.setheight not working ?

2009-11-21 Thread Jags
Hi all, Can anybody please confirm, that button.setHeight and button.setWidth is not changing the height and width of buttons at the run time ? I am using android 1.5 regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
() and setWidth() are pretty straight forward, nothing complex in that. You are creating button in code right ?. Thanks On Nov 21, 3:00 pm, Jags jag...@gmail.com wrote: Hi all, Can anybody please confirm, that button.setHeight and button.setWidth is not changing the height and width of buttons

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
I guess as my linearlayout's width is wrap_content, it will expand when my button expands. width might not expand, because of the weight = 1 factor On Nov 21, 4:38 pm, Jags jag...@gmail.com wrote: thanks for replying, i was wondering that too, i wrote a plain code, there it works. is my

[android-developers] Re: button.setheight not working ?

2009-11-21 Thread Jags
be ? linearlayout.setvisibility=invisible is not the solution because ll is invisible but it is aquiring screen space. i want that screen space free, so that the buttons are arranged perfectly regards Jagat On Nov 21, 4:43 pm, Jags jag...@gmail.com wrote: I guess as my linearlayout's width is wrap_content

[android-developers] possible to remove a linearlayout ?

2009-11-21 Thread Jags
i have put 6 linearlayouts in the main.xml file vertically arranged in the main linearlayout. initially i want 1, 2, 3 and 6 ll to be displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time 1, 2, 3, 4, 5, 6 is it possible ? regards Jagat -- You received this message because you

[android-developers] Re: possible to remove a linearlayout ?

2009-11-21 Thread Jags
mmur...@commonsware.com wrote: Jags wrote: i have put 6 linearlayouts in the main.xml file vertically arranged in the main linearlayout. initially i want 1, 2, 3 and 6 ll to be displayed, then after sometime, 1, 2, 3, 4, 6 and then after some time 1, 2, 3, 4, 5, 6 is it possible ? Set

[android-developers] Re: default screenwidth of android

2009-11-23 Thread Jags
. This would solve your issues - Vishwa Jags wrote: whats the default screen width of android devices ? I took a 320 x 460 image for my splash screen, it did not cover the entire screen ! regards Jagat -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: default screenwidth of android

2009-11-23 Thread Jags
i am using this xml in my main.xml ImageView android:id=@+id/splashscreen android:layout_width=fill_parent android:layout_height=fill_parent android:src=@drawable/imagename android:layout_gravity=center / On Nov 23, 4:59 pm, Jags jag...@gmail.com wrote

[android-developers] custom dialog crashing

2009-11-23 Thread Jags
and is crashing. I have another main.xml file which is set to content layout in this activity. So how can I correct this thing ? Also I need to add some validation here to this dialog like info cannot be empty ! thanks in advance Jags -- You received this message because you are subscribed

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Jags
yeah i referred this tutorial of oogle http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog On Nov 23, 8:11 pm, Jags jag...@gmail.com wrote: I have written below code for showing a custom dialog         void CheckHighScore

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Jags
I understand that this is coming null because my current activity layout is main.xml. but is it that i need to do a setlayout to mydialog before starting any of my code ? On Nov 23, 8:11 pm, Jags jag...@gmail.com wrote: I have written below code for showing a custom dialog         void

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Jags
= builder.create(); break; default: alertDialog = null; } return alertDialog; } void CheckHighScore() { showDialog(MY_DIALOG_ID); } On Nov 23, 8:26 pm, Jags jag...@gmail.com wrote: I understand

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Jags
); } }; On Nov 23, 9:08 pm, Jags jag...@gmail.com wrote: ok! i moved the code to onCreateDialog  and even tough vg is null, it created the alert. but should vg be null ? but it crashed again ! here is code protected Dialog onCreateDialog(int id

[android-developers] Re: custom dialog crashing

2009-11-23 Thread Jags
On Nov 23, 10:21 pm, Jags jag...@gmail.com wrote: is it because i am calling it from a handler ? this handler is a private member variable of my activity private Handler myhandler = new Handler() {          /* (non-Javadoc)           * @see android.os.Handler#handleMessage(android.os.Message

[android-developers] background sound continuous

2009-11-24 Thread Jags
I am using soundpool to use sounds in my app. One of the sounds i need to play continuously in background. any example how to do this ? soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, 0, 1f); regards -- You received this message because you are subscribed to the Google

[android-developers] background sound continuous

2009-11-24 Thread Jags
I am using soundpool to use sounds in my app. One of the sounds i need to play continuously in background. any example how to do this ? soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, 0, 1f); regards -- You received this message because you are subscribed to the Google

[android-developers] inputbox text validation

2009-11-24 Thread Jags
http://www.anddev.org/viewtopic.php?p=12915 i am using this to create an inputbox. it works, but i need a validation i put following code inside onClick method for Yes String text = input.getText().toString().trim();

[android-developers] layout_marginLeft programmatically

2009-11-25 Thread Jags
I have an array of buttons. I need to change their android:layout_marginLeft programmatically. This is essential to my logic, without which I am unable to get my layout correct. Any code snippets representing this is appreciated pretty much. // ViewGroup.MarginLayoutParams lp

[android-developers] sounpool problem

2009-11-25 Thread Jags
i am trying to play continuous background music using sound pool here is my code private void initSounds() { soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100); soundPoolMap = new HashMapInteger, Integer();

[android-developers] Re: sounpool problem

2009-11-25 Thread Jags
interesting, i had posted a similar query to which i got a reply, that post has disappeared from the forum :) regards Jagat On Nov 25, 8:49 pm, Jags jag...@gmail.com wrote: i am trying to play continuous background music using sound pool here is my code         private void initSounds

[android-developers] no title bar

2009-11-25 Thread Jags
I dont want title bar in my application, how to remove that ? in my activity ? Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] Re: no title bar

2009-11-25 Thread Jags
, Jags jag...@gmail.com wrote: I dont want title bar in my application, how to remove that ? in my activity ? Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

[android-developers] input box text validation

2009-11-25 Thread Jags
i am using this inputbox for asking name to the user. I need to validate that user does not enter empty string and if enters i am trying not to dismiss the dialog http://www.anddev.org/viewtopic.php?p=12915 new AlertDialog.Builder(this) .setView(fl)

[android-developers] disabling button onclicklistener for certain time

2009-11-25 Thread Jags
I have a typical problem where if i keep repetedly press a button, a certain value increases, actually i am supposed to increase once till it disappears [it disappears in 700 ms] public class CatchMeOnClickListener implements OnClickListener { public void onClick(View v) {

[android-developers] one linearlayout bottom aligned.

2009-11-26 Thread Jags
i have 6 linearlayouts(horizental) inside a main linearlayout (vertical) the first 5 linearlayots keep on changing their heights. That makes 6th [bottom most] layout getting adjusted by its vertical position. I need the 6th layout always on buttom no matter how much first 5 layouts change any

[android-developers] restricting edittext control's max chars

2009-11-26 Thread Jags
I need to restrict edittext's max chars to 255, how can i do that in layout or functions ? regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Re: no title bar

2009-11-27 Thread Jags
On Nov 26, 12:31 pm, Jags jag...@gmail.com wrote: Theme.NoTitleBar is predefined ? which tag it should be embedded with ? android:windownoTitle=true which tag it should be associated with ? Activity and Application refuse to take it ! On Nov 25, 11:42 pm, Dianne Hackborn hack...@android.com

[android-developers] splash is not displaying sometimes

2009-11-30 Thread Jags
I am using this mechanism to show a splash screen in my application. http://www.anddev.org/viewtopic.php?p=22847 it is surprising, once in every 10 times, it does not show splash screen show the home screen for sometime and directly go to my post splash scren ! What could be the reason. I am

[android-developers] splash screen through activity

2009-12-02 Thread Jags
I am trying to change my splash scren into Intent based as discussed here http://www.anddev.org/simple_splash_screen_-_alternative-t815.html I changed my manifest to ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: disabling button onclicklistener for certain time

2009-12-02 Thread Jags
setClickable(false) did the trick for me. thanks for all of your suggestions though ! On Nov 28, 9:18 am, Anirudh aithalanir...@gmail.com wrote: How about setting the onClickListener to null for that period of time and resetting it to a valid listener again? On Nov 26, 4:15 am, Mark Murphy

[android-developers] HttpServerConnection

2010-01-23 Thread Jags
is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: HttpServerConnection

2010-01-23 Thread Jags
:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: HttpServerConnection

2010-01-23 Thread Jags
:39 am, Jags jag...@gmail.com wrote: is there a simple example of HttpServerConnection usage in android ? can it be used for posting some data to android device ? i mean get post type ? thanks and regards Jagat -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: HttpServerConnection

2010-01-24 Thread Jags
:27 am, Jags jag...@gmail.com wrote: ah, these are the apis for hitting a url and get some info and post data to from m android device, is not it ? I wanna a small http server running on my android device [may be as a service] and hosting small http pages browsable from my PC. for example

[android-developers] Re: HttpServerConnection

2010-01-25 Thread Jags
Then whats for the class HttpServerConnection is there in the sdk ? regards On Jan 24, 3:52 pm, Jags jag...@gmail.com wrote: i see, it is apache, can we use it freely for commerical apps ? if i want to deploy an app of my choice, i will have to write a servelet and publish in jetty server

[android-developers] incoming sms filter

2010-01-28 Thread Jags
I hv a problem, I need some hints. I need to have my app receive certain kind of sms (say meant for my app). is it possible ? is it possible to receive all the sms in my app rather than default sms app ? how to config my app to receive sms ? please help with some links and stuff regards --

[android-developers] Re: incoming sms filter

2010-01-28 Thread Jags
Cant I receive sms directed to my android device in my application ? On Jan 28, 4:04 pm, Jags jag...@gmail.com wrote: I hv a problem, I need some hints. I need to have my app receive certain kind of sms (say meant for my app). is it possible ? is it possible to receive all the sms in my app

[android-developers] ListActivity mandatory for listView ?

2009-12-03 Thread Jags
I am starting with ListActivity. I saw apidemos and saw that it is based on ListActivity. My doubt is, in my first screen I need a few labels and texts under that a list. How to approach this ? I cant do a setContentlayut(R.id.main) if my activity extends ListActivity, no ? more over I found the

[android-developers] layout and activity doubt

2009-12-03 Thread Jags
I am starting with listactivity. I was able to create a simple list view using ListActivity and Arrayadapters. The problem before me now is i need a screen which contains a few labels and fields and under them a listview. how to go about it ? moreover whats the difference between layout and

[android-developers] Re: layout and activity doubt

2009-12-04 Thread Jags
Yeah, Ok, let me try that. Yes I do remember I posted this yesterday, today morning I could not again locate that. It happens lot of time in google group. So I posted once again. google group should also have something like see messages posted by you Anyway, no matter how much weak dollar is,

[android-developers] alarm manager counts

2009-12-04 Thread Jags
I am kind of into a situation where i need to put alarm for each record in my database, and there is no limit to the number of records user can create. will it be a good idea to set an alarm using alarm manager for all the records ? what if the time clash ? -- You received this message because

[android-developers] SQLiteOpenHelper

2009-12-06 Thread Jags
I was trying to do some SQLite stuff. I looked at NotePadProvider in Samples. I understood that this class is probably instantiated through provider tag in manifest. I am a little confused how can I use this externally. For example if i wrote my content provider class, and provide the provider

[android-developers] Re: ListActivity mandatory for listView ?

2009-12-07 Thread Jags
For example, I am doing a app where i need to store things to do, I need to have a add, delete and edit functionality for the app. Should I use 3 different activities or 3 different layouts for these functionality ? regards On Dec 3, 10:58 pm, Mark Murphy mmur...@commonsware.com wrote: I am

[android-developers] db insert auto increment

2009-12-07 Thread Jags
i am doing sqlite3 my tables's pk is auto-increment. What shpuld i pass its value while inserting so that auto increment executes properly ? public void writeRecord(Row rec) { try { Object[] bindArgs = new Object[] {-1, rec.name, rec.email};

[android-developers] further doubt in layout and activity

2009-12-07 Thread Jags
Again I am confused a little. If I can show a different layout calling setContentLayout, please anybody can give me an example of a compelling situation where my app would need more than one activity ? regards -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: alarm not firing up !

2009-12-08 Thread Jags
hmm I was right at guessing that, i miss something in manifest. Thanks a lot i had to add this to have it worked receiver android:name=.OnAlarmReceiver /receiver regards Jagat On Dec 8, 8:01 pm, Mark Murphy mmur...@commonsware.com wrote: I was doing alarm manager and stuff. i did like

[android-developers] Re: alarm not firing up !

2009-12-08 Thread Jags
Now, that i m able to display this oast, how can I start my activity ? like the normal way we call one activity from another ? regards On Dec 8, 8:25 pm, Jags jag...@gmail.com wrote: hmm I was right at guessing that, i miss something in manifest. Thanks a lot i had to add this to have

[android-developers] Re: alarm not firing up !

2009-12-08 Thread Jags
aha what i can or cannot do from the broadcastreceiver ? I am trying to send an sms , and i get an exception android.app.ReceiverRestrictedContext ! public class OnetimeAlarmReceiver extends BroadcastReceiver { private AlarmExample currentContext = null; @Override

[android-developers] Re: alarm not firing up !

2009-12-09 Thread Jags
thanks i loked at your alarmmanager code to send sms from a separate service, and bingo, it worked. I need to send email similarly, i found this http://www.vidyut.com/sunit/android/android_sendmail.html but it invokes the mail ui of android, cant I silenly send email as i am sending sms ?

[android-developers] Re: alarm not firing up !

2009-12-09 Thread Jags
very bad, blackberry allows this but. this is where blackberry scored better than android :) On Dec 9, 5:10 pm, Mark Murphy mmur...@commonsware.com wrote: but it invokes the mail ui of android, cant I silenly send email as i am sending sms ? Not unless you bundle in your own email JAR and

[android-developers] scrolling view

2009-12-09 Thread Jags
I saw in one of the android apps, iphone style sliding views with a navigation bar. Anybody has a example code for android on this ? The app is FunnyJokes -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] multiple activity refresh

2009-12-09 Thread Jags
I am dealing with 4 activities and a database. one parent activity calls 3 other activites [add, edit, delete] . so when i come back from these 3 activities to parent activities, depending upon the database change, the listview need to be refreshed in parent activity ? what's the best approach to

[android-developers] Re: restricting edittext control's max chars

2009-12-10 Thread Jags
nobody has tried this before ? On Nov 26, 9:39 pm, Jags jag...@gmail.com wrote: I need to restrict edittext's max chars to 255, how can i do that in layout or functions ? regardsJagat -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] multiple choice spinner !

2009-12-10 Thread Jags
I was trying to do a multiple choice spinner by following code. I am able to see multiple check boxes wile the spinner is clicked. But I cant select more than one. Secondly, how can I get all the values selected ? I saw List11 and List14 examples in ApiDemo, but that is ListActivity, I dont want

[android-developers] Re: alarm not firing up !

2009-12-12 Thread Jags
Ok ! Now that I am able to fire up the alarm, how can I fire up the alarm with a little more context ? Like for example, I want to have my alarm give me a record id when it wakes me up ! How can I acheive that in a broadcast receiver ? regards Jagat On Dec 9, 7:14 pm, Jags jag...@gmail.com wrote

[android-developers] Re: multiple activity refresh

2009-12-13 Thread Jags
is my post visisble to the group :) ? On Dec 10, 11:41 am, Jags jag...@gmail.com wrote: I am dealing with 4 activities and a database. one parent activity calls 3 other activites [add, edit, delete] . so when i come back from these 3 activities to parent activities, depending upon the database

[android-developers] DB location

2009-12-13 Thread Jags
I am using sqlite db in my app. i am able to create db and table and execute queries. But I wanted to know where is the sqlitedb created, so that I can check them from commandine. where doed that android store ? I searched, could not find anything on that name in my pc, does android encrypt the

[android-developers] Re: multiple activity refresh

2009-12-13 Thread Jags
in OnResume worked for me, though, for the time being. regards On Dec 14, 1:32 pm, Mark Murphy mmur...@commonsware.com wrote: Jags wrote: is my post visisble to the group :) ? This one is. On Dec 10, 11:41 am, Jags jag...@gmail.com wrote: I am dealing with 4 activities and a database. one parent

[android-developers] Re: DB location

2009-12-14 Thread Jags
Murphy mmur...@commonsware.com wrote: Jags wrote: I am using sqlite db in my app. i am able to create db and table and execute queries. But I wanted to know where is the sqlitedb created, so that I can check them from commandine. where doed that android store ? I searched, could not find

[android-developers] Re: DB location

2009-12-14 Thread Jags
generated. the create table looks like MyId INT AUTO_INCREMENT PRIMARY KEY On Dec 14, 3:02 pm, Mark Murphy mmur...@commonsware.com wrote: Jags wrote: does that mean i wont be able to locate the db file ? On the emulator, you should have no problems. On a device, though, security restrictions

[android-developers] Re: DB location

2009-12-14 Thread Jags
and you dont have an answer for last part ? pk value in alarm intent ? How can it be ? regards On Dec 14, 3:02 pm, Mark Murphy mmur...@commonsware.com wrote: Jags wrote: does that mean i wont be able to locate the db file ? On the emulator, you should have no problems. On a device, though

[android-developers] Re: DB location

2009-12-14 Thread Jags
Thanks a ton, brilliant answer and to the point. MyId INTEGER PRIMARY KEY AUTOINCREMENT is the way to go. I am amused how auto_increment did not give any error and created the table for me earlier ! regards On Dec 14, 3:25 pm, Mark Murphy mmur...@commonsware.com wrote: Jags wrote: and you

[android-developers] customlistadapter simple question

2009-12-14 Thread Jags
I am displaying some data in a ListActivity. my Layout contains a ListView. Now I need to group these data into 3 groups in a single list. these 3 groups of data will come from 3 different queries. now the question is can I use 3 listviews in them and set separate arryAdapters for each ? If yes,

[android-developers] littele sqlite help

2009-12-14 Thread Jags
Apologies, if it is not the right forum. But I think as I came across this query problem while working on android, I thought I would gt some help on this I have a field datetime data type. i need something like select * from mytable where strftime('%d', mydate) = 14; i need all the records

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
opined against it, but how to convince my boss about this :) . I am able to show a toast though regards On Dec 13, 2:15 am, Jags jag...@gmail.com wrote: Ok ! Now that I am able to fire up the alarm, how can I fire up the alarm with a little more context ? Like for example, I want to have my alarm

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
of WakefulIntentService ? if yes how can I get proper context instance ? i am using Mark's code wakefulintentservice from github regards On Dec 16, 7:46 pm, Jags jag...@gmail.com wrote: Now that I am able to send an sms from inside AppService, I am unable to show an alert upon an alarm. i get the exception

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
well more surprise. toast does not seem to work from AppService, but it works from OneTimeAlarmReceiver am i doing something stupid here ? On Dec 16, 7:57 pm, Jags jag...@gmail.com wrote: to help with a little code public class AppService extends

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
anybody there ? for the time being I will be better off just showing an alert or at the very least a toast. On Dec 16, 8:42 pm, Jags jag...@gmail.com wrote: well more surprise. toast does not seem to work from AppService, but it works from OneTimeAlarmReceiver am i doing something stupid here

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
I dont understand even if my application is not gone to background or finished, still, the alert is not showing up ! On Dec 16, 8:42 pm, Jags jag...@gmail.com wrote: well more surprise. toast does not seem to work from AppService, but it works from OneTimeAlarmReceiver am i doing something

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
how is alarm clock showing its ui in android then ? little baffling though. On Dec 16, 10:35 pm, Jags jag...@gmail.com wrote: I dont understand even if my application is not gone to background or finished, still, the alert is not showing up ! On Dec 16, 8:42 pm, Jags jag...@gmail.com wrote

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
nobody attempted it before ? how can i get the source code for alarm clock app ? is that in java for android ? On Dec 16, 10:06 pm, Jags jag...@gmail.com wrote: how is alarm clock showing its ui in android then ? little baffling though. On Dec 16, 10:35 pm, Jags jag...@gmail.com wrote: I

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
it be transparent ? On Dec 17, 8:41 am, Jags jag...@gmail.com wrote: nobody attempted it before ? how can i get the source code for alarm clock app ? is that in java for android ? On Dec 16, 10:06 pm, Jags jag...@gmail.com wrote: how is alarm clock showing its ui in android then ? little baffling

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
or may be can I show an alertDalog from an intent ? On Dec 17, 8:41 am, Jags jag...@gmail.com wrote: nobody attempted it before ? how can i get the source code for alarm clock app ? is that in java for android ? On Dec 16, 10:06 pm, Jags jag...@gmail.com wrote: how is alarm clock showing

[android-developers] Re: alarm not firing up !

2009-12-16 Thread Jags
android:theme=@android:style/Theme.Dialog android:launchMode=singleTask / this worked ... :) On Dec 17, 11:15 am, Jags jag...@gmail.com wrote: or may be can I show an alertDalog from an intent ? On Dec 17, 8:41 am, Jags jag...@gmail.com wrote: nobody attempted

[android-developers] alarm testing

2009-12-16 Thread Jags
I am into a situation where i set an alarm for next month. If I change the date anually to that date, will the alarm fire ? i am setting alarm through set functio one time alarm. regards -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] wrong intent getting supplied to OneTimeAlarmReceiver.

2009-12-17 Thread Jags
I am using marks' method of alarmreceiver and appservice. I am trying to pass a record id to the alarmintent through putextra. and receive it in ontimealarmreceiver in getExtra. What I observe is, first time record id goes correct (say 11) second time record id is sent 12, but in receiver i

[android-developers] Re: DB location

2009-12-17 Thread Jags
. this also does not run on console . regards On Dec 14, 3:54 pm, Jags jag...@gmail.com wrote: Thanks a ton, brilliant answer and to the point. MyId INTEGER PRIMARY KEY AUTOINCREMENT is the way to go. I am amused how auto_increment did not give any error and created the table for me earlier

[android-developers] Re: multiple activity refresh

2009-12-17 Thread Jags
Hey Mark, yes this is what i am trying to do. But the problem is, I dont see a ListView in your main layout. neither you do a setContentView() in your OnCreate method. it was crashing for me when i did a setContentView, it is now showing blank list. How can I debug adapters to see the records ?

[android-developers] Re: multiple activity refresh

2009-12-17 Thread Jags
now, after fixing those things, I get 2 items in the list [which is correct], but unfortunately, these are shown blank, no texts !. Am I missing something somewhere ? regards On Dec 18, 12:17 pm, Jags jag...@gmail.com wrote: Hey Mark, yes this is what i am trying to do. But the problem is, I

[android-developers] Re: multiple activity refresh

2009-12-17 Thread Jags
anybody out there ? the values in the cursor are perfect, i printed them one by one, but the rows are blank in the listview On Dec 18, 12:38 pm, Jags jag...@gmail.com wrote: now, after fixing those things, I get 2 items in the list [which is correct], but unfortunately, these are shown blank

[android-developers] link for my products in android market

2009-12-18 Thread Jags
If I have any products published by me in android market and I want to put a link to that [in my website, marketing docs] to enable users to see it before downloading in android device ? Wont I be able to do that in Android ? As we do it in case of iPhone apps ? regards -- You received this

[android-developers] Re: multiple activity refresh

2009-12-18 Thread Jags
downloaded the code from above link and it works, but in context menu the icon is not being displayed, and while adding record it crashes. I am using 1.5 Are there any known issues ? regards On Dec 18, 1:47 pm, Jags jag...@gmail.com wrote: anybody out there ? the values in the cursor are perfect, i

[android-developers] Re: multiple activity refresh

2009-12-18 Thread Jags
thanks a lot mr mark. I was able to figure out problem thanks to another review. But it seems delete.png is still not shown on context menu. regards On Dec 18, 5:08 pm, Jags jag...@gmail.com wrote: is it mandatory to be the db created by SQLiteOpenhelper ? is it mandatory to be the field

[android-developers] alarm cancel

2009-12-18 Thread Jags
Now that i am able to successfully fire alarms, I need a case where if i delete a record in my db the corresponding alarm should be cancelled. i send recid which is primary key for my table with the pendingintent through putExtra. can i cancel on the basis of that primary key ? if yes, how ?

[android-developers] Re: alarm cancel

2009-12-20 Thread Jags
no way there is ? On Dec 18, 8:46 pm, Jags jag...@gmail.com wrote: Now that i am able to successfully fire alarms, I need a case where if i delete a record in my db the corresponding alarm should be cancelled. i send recid which is primary key for my table with the pendingintent through

[android-developers] setting spinner selection based on strings

2009-12-20 Thread Jags
I am displaying a few string values in spinner through resources, and am storing the string values in db. Now i need to set the selection on the basis of these string values. for example if spinner has a, b, c, d and value in db is c, third item should be selection while my screen appears, how to

[android-developers] Re: multiple activity refresh

2009-12-21 Thread Jags
) item .getMenuInfo(); delete(mnuDelinfo.id); regards and thanks in advance On Dec 18, 9:44 pm, Jags jag...@gmail.com wrote: thanks a lot mr mark. I was able to figure out problem thanks to another review. But it seems delete.png

[android-developers] MergeAdapter problem

2009-12-22 Thread Jags
Hi All, I used MergeAdapter, for my app, And I use a background image for my layout. I noticed, if I touch on Heading view (group heading) the entire list becomes black as if all the rows are selected. If I dont use background image, it does not appear [mostly because default listview background

[android-developers] apk is being downloaded as zip file in IE

2010-01-08 Thread Jags
I develop for Android in mac . Apart from publishing my app in google market, I also provide the apk file on my website. As, unlike iPhone android published apps dont give us a link similar to itunes link to app, we provide our link pointing to apk file. Now the problem is, this apk file when

[android-developers] Re: apk is being downloaded as zip file in IE

2010-01-10 Thread Jags
make sure you send the right mime type with your file. application/vnd.android.package-archive I would appreciate a little elaboration on this. Is there a provision of mentioning mime type while exporting the apk from eclipse ? Or should I mention when putting href in my website ? regards On

  1   2   >