[android-beginners] intercepting email

2009-09-25 Thread Nemat
Hi frndz How can we intercept incoming and outgoing email in Android?is it possible? Thanx in Advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email

[android-beginners] Re: intercepting email

2009-09-25 Thread Mark Murphy
How can we intercept incoming and outgoing email in Android?is it possible? You cannot intercept email for either of the built-in email clients. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-beginners] Re: intercepting email

2009-09-25 Thread Sean Hodges
Intercepting the actions in the mail client apps, no. But you could use SMTP to periodically query a remote mailbox from a service, and trigger an intent from there. I haven't checked yet, but if it is possible to observe when a particular app/activity starts (in this case the mail client), you

[android-beginners] intercepting email

2009-09-25 Thread Nemat
Hi. is it possible to intercept incoming and outgoing emails ,sms and calls in Android? if yes,How can we do this? Thanks in Advance Nemat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners

[android-beginners] Focus android widget.

2009-09-25 Thread Manjunatha M
Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I make change in Launcher.java or workspace.java??? -- Regards, Manjunatha

[android-beginners] Re: Focus android widget.

2009-09-25 Thread Romain Guy
No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is there a way to highlight the widget in the android home screen by using DPAD, and on selecting the widget using the keypad, launches the app for the widget. Where do I

[android-beginners] Re: HELP

2009-09-25 Thread kapnkore
cleare me .just user enter the value in first field n calculate calculation create four diff values n juss put one by one in rest of the edit field is it so or anything else? On Fri, Sep 25, 2009 at 4:12 AM, Rc3375 rcobb3...@gmail.com wrote: this is the problem: there are 5 EDITTEXT boxes.

[android-beginners] Re: Focus android widget.

2009-09-25 Thread Manjunatha M
should i make the layout of the widget as focusable? or is there any other way to do that?? On Fri, Sep 25, 2009 at 12:38 PM, Romain Guy romain...@google.com wrote: No change needed, make the widget focusable/clickable. On Sep 25, 2009 12:05 AM, Manjunatha M man...@gmail.com wrote: Hi, Is

[android-beginners] Re: bring up display setting in my activity

2009-09-25 Thread Mark Murphy
I want to adjust display settings in my activity. Intent intent=new Intent(Settings.ACTION_DISPLAY_SETTINGS); startActivity(intent); got exception: 09-24 21:24:35.901: ERROR/AndroidRuntime(5892): android.content.ActivityNotFoundException: No Activity found to handle

[android-beginners] Re: Something like onEmailReceived?

2009-09-25 Thread kapnkore
why dont you just start a activity in broadcast receiver?like sms received proadcast receiver starts after that before finishing just start a new activity in receiver! On Thu, Sep 24, 2009 at 4:42 PM, Yaiza Temprado yaiza.tempr...@gmail.comwrote: Hello all, I'm trying to program an

[android-beginners] Re: Java heap outofmemory during dex

2009-09-25 Thread whitech
Hi all, I've solve this problem. Since there's someone have ask this question before here. To solve it, just modify dx.bat set the java heap upper, that's ok. On 9月25日, 上午11时31分, whitech whit...@163.com wrote: Hi all, I've met this problem: When using ant to package my program, at the dex

[android-beginners] Re: Focus android widget.

2009-09-25 Thread Manjunatha M
Hi Romain, I tried with the following xml. ?xml version=1.0 encoding=utf-8? appwidget-provider xmlns:android= http://schemas.android.com/apk/res/android; android:minWidth=146dp android:minHeight=146dp android:focusable=true android:updatePeriodMillis=8640

[android-beginners] A problem on displaying Hello Android -application

2009-09-25 Thread Jaakko
I have tried to build my first Android application. I installed Eclipse, Java, and Android, wrote the code and got no error messages. However, the Rogers' et al. book Android Application Development says that there should appear a screen where Hello, Android is printed. I don't know how to open

[android-beginners] Re: A problem on displaying Hello Android -application

2009-09-25 Thread Jaakko
It looks like the application is not installed on emulator applications. How can I install it there? On Sep 25, 12:50 pm, kapnk...@gmail.com wrote: just check whether your application is installed or not on emulator first.insettins/applications On Fri, Sep 25, 2009 at 2:54 PM, Jaakko

[android-beginners] Re: A problem on displaying Hello Android -application

2009-09-25 Thread Jaakko
I found on Settings-Applications-Manage applications-Hello that it is installed on emulator. There is also a button Force stop so it looks like the application is running. However, I can't see the greeting text anywhere. On Sep 25, 1:00 pm, Jaakko matikkaja...@netti.fi wrote: It looks like the

[android-beginners] Re: A problem on displaying Hello Android -application

2009-09-25 Thread kapnkore
so must be fault in your activity you have created in code! just you want to check hows greeting sceen try to just create new project in android project run it with avd.you cna find then chage the text in string for hello world On Fri, Sep 25, 2009 at 3:53 PM, Jaakko matikkaja...@netti.fi wrote:

[android-beginners] Re: Strange message during opening stream at InputSource

2009-09-25 Thread kiro
up On Sep 24, 10:22 am, kiro cih.exe...@gmail.com wrote: -(new InputSource(url.toString)); was with another message InputSource needs either stream or reader On Sep 24, 10:09 am, kiro cih.exe...@gmail.com wrote: Hi! i'm trying to execute next code: [code]         //URL url

[android-beginners] Re: A problem on displaying Hello Android -application

2009-09-25 Thread Jaakko
I don't know what is wrong with activity-part of my code. How can I run my code with avd? I run my program by choosing option Android Application as there is no possibility to choose avd. package org.qwerty.com; import android.app.Activity; import android.os.Bundle; import

[android-beginners] Re: A problem on displaying Hello Android -application

2009-09-25 Thread kapnkore
your emulator is launching means avd is all ready there.just create new AVD.from windows Android AVD manager.create new avd .then right click on your application run configuaration.your select your new avd run it. On Fri, Sep 25, 2009 at 5:05 PM, Jaakko matikkaja...@netti.fi wrote: I don't

[android-beginners] is it possible to receive incoming call automatically?

2009-09-25 Thread Nemat
Hi frnds is it possible in Android If call is received from user defined number, it should be picked up automatically with no sign and speaker should be turned on. Its history must be deleted. need urgent help Thanks in advance Nemat

[android-beginners] Re: No classfiles specified on even hello after installing SDK 1.5

2009-09-25 Thread bboyes
So it seems the problem is Eclipse caching old data. Starting Eclipse with the -clean option solves this. Also eventually it will happen by itself which would explain the other posters reports that it just started working or started working after restarting Eclipse enough times. See:

[android-beginners] Solved: conversion to dalvik format failed with error 1

2009-09-25 Thread bboyes
So it seems the problem is Eclipse caching old data. Starting Eclipse with the -clean option solves this. Also eventually it will happen by itself -- which would explain the other posters reports that it just started working or started working after restarting Eclipse enough times. See:

[android-beginners] HorizontalScrollView snap to page?

2009-09-25 Thread Jeffrey Sambells
Is there a way to make a HorizontalScrollView snap to a page? Let's say I have a hsv with an overall width of 800 but only 200 viewable. I'd like to have the scroll position snap every 200 pixels so that the resting position is always 200 offset from the origin (thus always displaying a full

[android-beginners] Re: Can we take pictures without setting a camera preview?

2009-09-25 Thread Romain Vallet
After some more tests, I can call the takePicture method without firing an exception. I don't call the startPreview method before taking the picture. All pictures taken with this method are black, though. Any ideas? On 22 sep, 16:08, Romain Vallet romain.val...@gmail.com wrote: Hi, I'm writing

[android-beginners] Re: Unable to stop Emulator from commandline in linux

2009-09-25 Thread Indicator Veritatis
Fedora 9 is already a rather dated version of Fedora, too. Fedora 11 is much more stable. BTW: did you remember to give yourself superuser privileges before the 'kill 9'? You should, for example, if the PID of the emulator process were 3155, issue, su -c 'kill -9 3155'. This assumes, of course,

[android-beginners] Handling focus in ExpandableListView

2009-09-25 Thread Brian
Hi there, I have been tinkering with the ExpandableListView and would like to tweak its behaviour a little bit. Right now you can navigate through the expandable list and when you select an entry (group) it will expand and display its children. However, I would like to expand the group

[android-beginners] Re: Unable to add Android Plugin to Eclipse-Ganymede 3.4.1

2009-09-25 Thread John Douma
I had the same problem. I could install the plugins but they were not showing up on my Preferences screen. Under my workspace\.metadata directory there was a log file with the same messages you posted earlier. The problem was that I didn't have the Web Developer Tools installed. I installed them

[android-beginners] Cant install ADT plugin for Eclipse

2009-09-25 Thread Stephen
On 2 different machines (with clean galileo installs) the ADT plugin fails to load both remotely and trying to import from the zip archive. The error is as follows: An error occurred while collecting items to be installed session context was:(profile=epp.package.java,

[android-beginners] How to send JSONObject by HttpPost?

2009-09-25 Thread veen
I need to send http request with the following view: POST /device/api/login HTTP/1.1 Content-Type: text/json {login:LOGIN,password:PASSWORD} [my code] DefaultHttpClient hClient = new DefaultHttpClient(); HttpPost post = new HttpPost(host +

[android-beginners] ADT plugin for eclipse

2009-09-25 Thread John Douma
I am using Eclipse 3.4 on Windows XP. I downloaded and installed the Android SDK, version 1.6, in accordance with the instructions at http://developer.android.com/sdk/1.6_r1/installing.html. I also installed the Android Developer Tools and Android DDMS plugins. However, when I restart Eclipse to

[android-beginners] Question about GoogleSearch.apk and android.process.acore

2009-09-25 Thread jiangcaixia
Hi all, I want to test which packages(packages/apps/) are necessary to run Android on the emulator. I just try to remove GoogleSearch.apk, but the emulator shows The process android.process.acore has stopped unexpectedly. Please try again. I look at the AndroidManifest.xml file and see manifest

[android-beginners] Re: is it possible to receive incoming call automatically?

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
Intercepting an incoming call is not supported officially from the SDK, which does not mean that folks are not using hacks to do just the same, as many apps on the market will show you. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements

[android-beginners] Re: java.util.prefs.Preferences doesn't work on device?

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
There is also android.content.SharedPreferences http://developer.android.com/reference/android/content/SharedPreferences.html Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-beginners] Re: How to send JSONObject by HttpPost?

2009-09-25 Thread Alok Kulkarni
Enjoy URL url = new URL(serverURL); // open the conncetion HttpURLConnection connection = (HttpURLConnection)url.openConnection(); // Let the run-time system (RTS) know that we want input. connection.setDoInput(true); // Let the

[android-beginners] Re: Accessing SharedPreferences from Services and non-Activities

2009-09-25 Thread Balwinder Kaur (T-Mobile USA)
The app context object is not available in the constructor. Try moving that code in the onbind or onStart callback methods. Balwinder Kaur Mobile.Software.Development ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their

[android-beginners] ImageView.VISIBLE/INVISIBLE

2009-09-25 Thread Kingcrowley
I was wondering how this works, I can set ImageViews VISIBLE or INVISIBLE in OnCreate, but i can't seem to do it anywhere else properly? using code like imgView.setVisibility(ImageView.VISIBLE); any pointers/advice? Thanks, David --~--~-~--~~~---~--~~ You

[android-beginners] declaring a service

2009-09-25 Thread Mina Shokry
hello, I am trying to run service example. I declare a service in a project and want to call the service from an activity that exists in another project. in first project, my AndroidManifest.xml looks like this manifest xmlns:android=http://schemas.android.com/apk/res/android;

[android-beginners] Re: ImageView.VISIBLE/INVISIBLE

2009-09-25 Thread Carmen Delessio
I've got a example with a TextView and EditView where I do this successfully. See http://developer.android.com/reference/android/view/View.html#setVisibility(int)that is where View.VISIBLE is defined. Just noticed View.GONE. that could be helpful. Define TextView and EditText: TextView

[android-beginners] Re: ImageView.VISIBLE/INVISIBLE

2009-09-25 Thread Steve
I always use VIEW.invisible or VIEW.visible or VIEW.gone (rather than ImageView.invisible etc.) and that works for me in any method other than onCreate where I've tried it.. On Sep 25, 12:49 pm, Kingcrowley kingcrow...@gmail.com wrote: I was wondering how this works, I can set ImageViews

[android-beginners] Re: Cant install ADT plugin for Eclipse

2009-09-25 Thread Xavier Ducrohet
Install the Classic version. We are investigating what is going on, but it looks like a problem on Eclipse's update sites. Xav On Thu, Sep 24, 2009 at 8:43 PM, Stephen slubow...@gmail.com wrote: On 2 different machines (with clean galileo installs) the ADT plugin fails to load both remotely

[android-beginners] Re: ADT plugin for eclipse

2009-09-25 Thread Roman ( T-Mobile USA)
When you try to create a project you should be able to see Android as a new option. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily

[android-beginners] Re: ImageView.VISIBLE/INVISIBLE

2009-09-25 Thread Kingcrowley
HI, my code seems similar to yours..but doesn't work..could you copy/paste in yours if it isn't too long? Thanks a lot David On Sep 25, 9:01 pm, Carmen Delessio carmendeles...@gmail.com wrote: I've got a example with a TextView and EditView where I do this successfully.

[android-beginners] Re: ImageView.VISIBLE/INVISIBLE

2009-09-25 Thread Carmen Delessio
The snippets were taken from my code. I can't post the whole thing. Are you using View.INVISIBLE and View.VISIBLE as the parameter to setVisibility? -- Carmen http://www.twitter.com/CarmenDelessio http://www.talkingandroid.com http://www.facebook.com/BFFPhoto http://www.twitter.com/DroidDrop

[android-beginners] remote app commands sent via http

2009-09-25 Thread HTN
I'm developing a remote app that sends commands via http. Normally I type in a link in a browser and the command will work. With Android, I would like it to work with a press of a button. I tried the following code and it didn’t work: URL url = new URL(urlString);

[android-beginners] Re: Empty EditText Causing force closes

2009-09-25 Thread Justin Anderson
Why not do this? if (NumCanShootValue == null || NumCanShootValue.equals()) Of course, that is assuming NumCanShootValue is a String. Thanks, Justin -- There are only 10 types of people in the world... Those who know binary

[android-beginners] Re: How to..

2009-09-25 Thread Justin Anderson
Use a real phone... Of course, that would make debugging your app a little difficult... -- There are only 10 types of people in the world... Those who know binary and those who don't.

[android-beginners] Re: Handling focus in ExpandableListView

2009-09-25 Thread Justin Anderson
Try implementing the AdapterView.OnItemSelectedListener interface... Thanks, Justin -- There are only 10 types of people in the world... Those who know binary and those who don't.