[android-developers] Re: Replace dialer application by installing another dialer app

2009-02-19 Thread shimo...@gmail.com

Hi,

Hope it's ok to "barge in" for a related questions, and a not-so-
related one:

1. Dianne - when you say "replace the entire contacts tab activity" -
do you mean
I can write an app that will apear when the user taps the "Contacts"
tab INSIDE
the built-in "Dialer" application ? How ?

2. The not-so-related one - I managed to have my app respond to the
CALL button, but -
it does not do so if I am inside the built-in dialer/contacts app - it
starts calls
from there. Can I make it somehow that EVERY press on the CALL button
launches my app ?

3. I also managed to have my app launched whenever an outgoing call
ends (cause the OS
tries to open the call-log screen), but this means it will also launch
when the user
selects a "missed call/s" notification from the status bar. Actually I
like this.
Problem is - the built-in dialer app removes the missed call
notification when this happens,
and now - since it is MY app that is being launched - the missed call
notification
stays there "forever". Is there a way for me to cause the built-in
dialer app to
remove that notification ?

TIA


--~--~-~--~~~---~--~~
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] Taking OFF the "Missed call/s" notification

2009-02-19 Thread shimo...@gmail.com

Hi,

I need to take off the "missed calls" notification issued by the built-
in PHONE application. Since there is no setting in it to NOT display
the notification, I have to do it in my code (unless I missed
somthing... ?)

I thought about launching the built-in call log (thus it will remove
the notification), set a timer (using 'postDelayed' with a
'runnable'), and in the delayed callback launch my own app.

For some reason my own app wont launch from the callback.

This is how I launch the internal call log:

[syntax="java"]public void StartInternalAfterCallHandler()
{
Intent startActivity = new Intent();
startActivity.setAction
("android.intent.action.VIEW");
startActivity.addCategory("android.intent.category.DEFAULT");

startActivity.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
   
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED |
   
//Intent.FLAG_ACTIVITY_CLEAR_TOP |
   
Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);// |
   
//Intent.FLAG_ACTIVITY_SINGLE_TOP |
   
//Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity.setType("vnd.android.cursor.dir/calls");

startActivity.setComponent(new ComponentName
("com.android.contacts","com.android.contacts.DialtactsActivity"));

startActivity(startActivity);
}
[/syntax]

Then I call:

[syntax="java"]
mAsyncAfterCallHandler.postDelayed(mAsyncAfterCallTask, 
1);
[/syntax]

and in the callback:

[syntax="java"]

SharedPreferences settings = getSharedPreferences(Preferences.NAME,
0);
SharedPreferences.Editor editor = settings.edit();
editor.putInt(Preferences.KEY_OPEN_IN_TAB, 0);
editor.commit();

Intent startActivity = new Intent();
startActivity.setAction
("android.intent.action.MAIN");
startActivity.addCategory("android.intent.category.LAUNCHER");

startActivity.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
   
Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED |
   
//Intent.FLAG_ACTIVITY_CLEAR_TOP |
   
Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS |
   
Intent.FLAG_ACTIVITY_SINGLE_TOP |
   
Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity.setComponent(new ComponentName
("com.shsh.android.takephone","com.shsh.android.takephone.TAKEphONE"));

startActivity(startActivity);
[/syntax]

In DDMS I see the 'startActivity' fired, but my app wont launch.

Any help ?

TIA


--~--~-~--~~~---~--~~
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: Setup Merchant Account link now available

2009-02-16 Thread shimo...@gmail.com

I would believe Google are not that easy to trick - the UK address
will probably be checked against the credit card billing address.

Anyway - no point in registering a UK address/credit card for them to
send my money to - how will I get it ?

I tend to think Al's solution is the only current way...

Thanks !

On Feb 14, 7:12 pm, "bouvetloz...@gmail.com" 
wrote:
> The first page of Checkout registration doesn't strictly require US/UK
> citizenship, only a contact address in US/UK and a credit card number.
> Of course I have to pay local taxes using the local rules, but it
> seems that Google doesn't need my local tax number for the payment.
> Sure, it's a strange idea.
--~--~-~--~~~---~--~~
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: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-15 Thread shimo...@gmail.com

Hi,

Can I do that ?
Without being in the UK ?
Without a citizenship ?

Can you point a tutorial on this ?

Shimon

On Feb 15, 3:25 pm, Sena Gbeckor-Kove  wrote:
> Just set up a UK company. It is very easy and cheap.
>
> S
>
> On 15 Feb 2009, at 12:09, Mariano Kamp wrote:
>
>
>
> >> First - this is REALLY frustrating - by the time I can sign in and
> >> sellmy apps,
> >> the market may be filled with competitors.
>
> >> and they let me start
> >> selling NOW,
> >> and accumulate my funds until they can transfer them to me.
>
> > Amen.
>
> > On Sun, Feb 15, 2009 at 11:18 AM, shimo...@gmail.com  > > wrote:
>
> >> Hi,
>
> >> I would like to chime in on this.
>
> >> First - this is REALLY frustrating - by the time I can sign in and
> >> sellmy apps,
> >> the market may be filled with competitors.
>
> >> Now - I dont have any problem with competition - I LOVE competition,
> >> and am sure
> >> I can make the best app (otherwise I would not be in this business).
> >> But
> >> if other apps get to the market MONTHS ahead - it makes it harder to
> >> even
> >> impossible to gain the same exposure and market share.
>
> >> I think I understand the hardship on Google side, but I think they
> >> need to
> >> come up with a solution asap - maybe initiate a solution similar to
> >> the
> >> one suggested here, or hurry and make the arrangements to accept
> >> developers
> >> from all other countries. Go and buy an ESD that handles it - you  
> >> have
> >> the money...
>
> >> Or - I will settle for a commitment from Google that they will
> >> eventually
> >> make it so I can sell and get paid here in Israel (I dont mind  
> >> selling
> >> only
> >> in the US - dont need to sell in Israel), and they let me start
> >> selling NOW,
> >> and accumulate my funds until they can transfer them to me.
>
> >> Anyway - Al - please keep us updated if you are going to suggest such
> >> an arrangement - I tink I, for one, will be interested.
>
> >> Thanks !
>
> >> On Feb 14, 10:48 am, Al Sutton  wrote:
> >>> OK, I'm going to float an idea that I'd like some feedback on from
> >>> developers and (hopefully) someone at Google (Justin, I'd  
> >>> appreciate any
> >>> clarification you can give on this).
>
> >>> My company (Funky Android) is a UK Registered company and I would be
> >>> willing to allow it to act as a publisher for *some* non-US/UK
> >>> developers in order to get their paid apps into the app store.  
> >>> What I'd
> >>> look for is a 2% cut of the app sales price on top of the Markets  
> >>> 30%
> >>> cut in order to cover support and admin costs (i.e. forwarding user
> >>> queries, paying the accountant to make sure the money flow is tax
> >>> efficient and legal, etc.).
>
> >>> Is this something developers would want and Google would allow?
>
> >>> Al.
>
> >>> Mads Kristiansen wrote:
> >>>> I'd like to see someone create a solution like armadillo - i.e. a
> >>>> wrapper to make apps available in the Android Market while using an
> >>>> external DRM/payment solution. There is no word on when I will be  
> >>>> able
> >>>> to publish priced apps form my country, so that could be anywhere  
> >>>> from
> >>>> 1 month to years from now (well, probably not, but just to make a
> >>>> point). That's a bit of a problem. I'll probably just publish my  
> >>>> first
> >>>> app and then do some shameless self promotion in it ;) instead of
> >>>> charging, see what happens with the priced apps and then  
> >>>> concentrate a
> >>>> bit on the iPhone development.
>
> >>>> BR, Mads
>
> >>>> On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp  
> >>>>  >>>> <mailto:mariano.k...@gmail.com>> wrote:
>
> >>>>> Google checkout has been working since 2006
> >>>>    It might be operational since then, but did anyone see Google's
> >>>>    checkout in the wild?
> >>>>    It is in Google's the best interest to finally do something  
> >>>> about
> >>>>    it and make it mandatory to use for people so that

[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)

2009-02-15 Thread shimo...@gmail.com

Hi,

I would like to chime in on this.

First - this is REALLY frustrating - by the time I can sign in and
sellmy apps,
the market may be filled with competitors.

Now - I dont have any problem with competition - I LOVE competition,
and am sure
I can make the best app (otherwise I would not be in this business).
But
if other apps get to the market MONTHS ahead - it makes it harder to
even
impossible to gain the same exposure and market share.

I think I understand the hardship on Google side, but I think they
need to
come up with a solution asap - maybe initiate a solution similar to
the
one suggested here, or hurry and make the arrangements to accept
developers
from all other countries. Go and buy an ESD that handles it - you have
the money...

Or - I will settle for a commitment from Google that they will
eventually
make it so I can sell and get paid here in Israel (I dont mind selling
only
in the US - dont need to sell in Israel), and they let me start
selling NOW,
and accumulate my funds until they can transfer them to me.

Anyway - Al - please keep us updated if you are going to suggest such
an arrangement - I tink I, for one, will be interested.

Thanks !


On Feb 14, 10:48 am, Al Sutton  wrote:
> OK, I'm going to float an idea that I'd like some feedback on from
> developers and (hopefully) someone at Google (Justin, I'd appreciate any
> clarification you can give on this).
>
> My company (Funky Android) is a UK Registered company and I would be
> willing to allow it to act as a publisher for *some* non-US/UK
> developers in order to get their paid apps into the app store. What I'd
> look for is a 2% cut of the app sales price on top of the Markets 30%
> cut in order to cover support and admin costs (i.e. forwarding user
> queries, paying the accountant to make sure the money flow is tax
> efficient and legal, etc.).
>
> Is this something developers would want and Google would allow?
>
> Al.
>
>
>
> Mads Kristiansen wrote:
> > I'd like to see someone create a solution like armadillo - i.e. a
> > wrapper to make apps available in the Android Market while using an
> > external DRM/payment solution. There is no word on when I will be able
> > to publish priced apps form my country, so that could be anywhere from
> > 1 month to years from now (well, probably not, but just to make a
> > point). That's a bit of a problem. I'll probably just publish my first
> > app and then do some shameless self promotion in it ;) instead of
> > charging, see what happens with the priced apps and then concentrate a
> > bit on the iPhone development.
>
> > BR, Mads
>
> > On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp  > > wrote:
>
> >     > Google checkout has been working since 2006
> >     It might be operational since then, but did anyone see Google's
> >     checkout in the wild?
> >     It is in Google's the best interest to finally do something about
> >     it and make it mandatory to use for people so that they will
> >     finally start using it, but I don't think it is in the best
> >     interest of developers to be forced to use an exotic payment
> >     system that no user has ever used before.
> >     Given that non-us/uk developers are not allowed to publish their
> >     apps makes the story worse, at least for those developers.
>
> >     That's the beauty of Apple's solution. They also don't provide
> >     paypal, but at least most user already have an iTunes account and
> >     things go very smoothly.
>
> >     On Sat, Feb 14, 2009 at 12:21 AM, Ivan Soto  >     > wrote:
>
> >         I've been reading a lot about this whole Google Merchant thing
> >         and it's actually that Google Checkout only allows to sell
> >         goods from US and UK. It's not an Android thing, it's their
> >         system is not even complete and operational for all countries.
>
> >         Well, I know they will add more countries like they said in
> >         the email but I wonder what is the ETA on Canada. Google
> >         checkout has been working since 2006 I believe and people have
> >         been whining since then. Still nothing has been done. So
> >         seeing how slow is this going, I wonder if they will actually
> >         add Canada (or more countries) in a matter of months or years
> >         or what?
>
> >         On Fri, Feb 13, 2009 at 4:06 PM, Mariano Kamp
> >         mailto:mariano.k...@gmail.com>> wrote:
>
> >             Yeah, that is really really bad and even worse and too
> >             late communicated. I wonder why?
>
> >             On Fri, Feb 13, 2009 at 7:55 PM, Ivan Soto
> >             mailto:ivanso...@gmail.com>> wrote:
>
> >                 I knew you wouldn't be able to buy or sell IN Canada.
> >                 But I had no idea that if I was IN Canada I wouldn't
> >                 be able to sell to another countries.
>
> >                 Now I'm sad.
>
> >                 On Fri, Feb 13, 2009 at 11:29 AM, Al Sut

[android-developers] Re: Is the holiday_devphone build an official ADP1 image?

2009-02-10 Thread shimo...@gmail.com

Hi,

Is there a link to instructions on how do I use this ZIP to update my
ADP1 device ?

TIA

On Feb 10, 4:36 pm, Disconnect  wrote:
> Oh, and I just realized (too late, sorry) that we're seriously off topic
> here - this is better on android-discuss or maybe android-platform.  So lets
> move it over to one of those.
>
> On Tue, Feb 10, 2009 at 9:34 AM, Disconnect  wrote:
> > Despite the crap JBQ is feeding, it is an official (if possibly unreleased)
> > update.
>
> >https://android.clients.google.com/updates/signed-holiday_devphone-ot...
>
> > If you wait for JF to wake up, he will probably spin up a new adp1 image
> > with multitouch, etc. Alternately, you can make sure you have the new SPL
> > and just install that as a standard update.zip upgrade and then just change
> > later when JF releases his.
>
> > I haven't tested, but it is reported to be the rc33 equiv with voice
> > search, etc etc.
>
> > On Tue, Feb 10, 2009 at 5:33 AM, Johan de Koning 
> > wrote:
>
> >> Hello,
>
> >> Yesterday I flashed my phone with the ADP1.1 image. This morning I got
> >> two system updates pushed to my phone. This is the message of the
> >> second update
>
> >> A system update is available
>
> >> Holiday phone update 2 of 2: This is a full system update. Your data
> >> and settings will be preserved
>
> >> Update now
> >> Update later
>
> >> Updating took some time. But after rebooting Google Latitude and Voice
> >> search is available.
>
> >> About Phone shows:
>
> >> Baseband: 62.33.20.08H_1.22.14.11
> >> Kernel: 2.6.25-01845-g85d4f0d android-bu...@apa27 #27
> >> Build: holiday_devphone-userdebug 1.1 UNLOCKED 130444 test-keys
>
> >> Does this mean that the RC33 is pushed to ADP1 phones? Or has this
> >> something to do with the ADP1.1 image which I installed last night?
--~--~-~--~~~---~--~~
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: access to internal telephony

2009-02-09 Thread shimo...@gmail.com

Hi,

Can you share the code snippet you use to call, for example -
"212333,4;444" ?

(the comma should yield a "timed" pause, the ';' - a "hard" pause -
waiting for the user to acknowledge before dialing)

Thanks !

On Feb 9, 1:19 pm, legerb  wrote:
> I had problems with the '#', but when encoded, it works fine. With
> other symbols i didn't have any problems. And i remember that when '#'
> was the last char (even encoded), it was always stripped.
>
> On Feb 9, 9:25 am, "shimo...@gmail.com"  wrote:
>
> > Hi,
>
> > Using a DEV phone, seems I can not make calls to numbers containing
> > extra digits (i.e. pauses - either 'hard' or 'timed'). They are
> > stripped.
>
> > If I start the call from the built-in contacts app using the
> > ACTION_VIEW
> > intent and then tapping a phone field with, say - *151,#,1 it is
> > dialed
> > ok.
>
> > Is there any intent other than ACTION_CALL I need to use to start a
> > call
> > to a number  like *151,#,1 to have the device call then send those
> > extra digits ?
>
> > Or is there any specific intent data ? type ? extra ?
> > Or maybe a formatting ?
>
> > TIA
>
> > On Feb 8, 6:09 am, Dianne Hackborn  wrote:
>
> > > Not any time soon.  Most of the classes there will only work when running
> > > code in the phone process, and making them work in other process would be
> > > significant work.
>
> > > Also on the G1 I don't believe that anything in the application processor
> > > even has access the voice data stream, so it just wouldn't be able to do
> > > what you want even if you were modifying the platform itself.
>
> > > On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach  wrote:
> > > > Hello,
>
> > > > are there plans to make com.android.internal.telephony available 
> > > > public? As
> > > > far as I understand it is currently not possible to write e.g. an 
> > > > answering
> > > > machine "within" the current framework (standard sdk), because direct 
> > > > access
> > > > to "acceptCall" and hangup methods is missing.
>
> > > > Best
> > > > G. Mudersbach
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support.  All such questions should be posted on public
> > > forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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: access to internal telephony

2009-02-08 Thread shimo...@gmail.com

Hi,

Using a DEV phone, seems I can not make calls to numbers containing
extra digits (i.e. pauses - either 'hard' or 'timed'). They are
stripped.

If I start the call from the built-in contacts app using the
ACTION_VIEW
intent and then tapping a phone field with, say - *151,#,1 it is
dialed
ok.

Is there any intent other than ACTION_CALL I need to use to start a
call
to a number  like *151,#,1 to have the device call then send those
extra digits ?

Or is there any specific intent data ? type ? extra ?
Or maybe a formatting ?

TIA

On Feb 8, 6:09 am, Dianne Hackborn  wrote:
> Not any time soon.  Most of the classes there will only work when running
> code in the phone process, and making them work in other process would be
> significant work.
>
> Also on the G1 I don't believe that anything in the application processor
> even has access the voice data stream, so it just wouldn't be able to do
> what you want even if you were modifying the platform itself.
>
>
>
> On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach  wrote:
> > Hello,
>
> > are there plans to make com.android.internal.telephony available public? As
> > far as I understand it is currently not possible to write e.g. an answering
> > machine "within" the current framework (standard sdk), because direct access
> > to "acceptCall" and hangup methods is missing.
>
> > Best
> > G. Mudersbach
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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] Using/accessing the AutoText database

2009-01-29 Thread shimo...@gmail.com

Hi all,

Does the AutoText mechanism in Android have a database of correct
English words ?

Can I use it somehow to test several word combinations to see if I can
find a match ?

(trying to built T9...)

TIA
--~--~-~--~~~---~--~~
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: Android Developers Available For Hire?

2009-01-27 Thread shimo...@gmail.com

Hi,

Would be delighted to discuss working on this.

http://www.shsh.com

Shimon


On Jan 27, 3:03 pm, phandroid  wrote:
> My name is Rob Jackson and I run phandroid.com and AndroidForums.com.
> I've got a few simple applications I'm hoping to have developed that I
> want to make available for free on the Android Market. If you're
> available for hire to work on a project please leave your info here
> and/or contact me on the phandroid contact form.
>
> Portfolio, Resume, References and info like that is appreciated.
--~--~-~--~~~---~--~~
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: G1 developer phone outside the first countries list

2009-01-19 Thread shimo...@gmail.com

Hi,

Works for me, too - live in Israel.

On Jan 18, 3:59 pm, Tudor Tihan  wrote:
> Hi,
>
> I was wondering, would the G1 unlocked phone work in a country that
> isn't on the approved delivery list?
> I live in Romania and the closest country where I can get the G1 sent
> to is Hungary.
> Would the phone refuse to work with a Romanian operator SIM from lets
> say Orange? (as in access market place, place phone calls).
>
> I really think Google would benefit a lot from the development
> community in Romania which is very strong (we are a top outsourcing/
> offshore destination after all).
--~--~-~--~~~---~--~~
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: Is it possible to replace or extend the dialer application ?

2009-01-13 Thread shimo...@gmail.com

Hi,

I think it's a bug maybe.

Anyway - found a workaround - create a "stub" application (like "Hello
world")
and add to it's manifest file all the same intent-filters you want for
the "real"
app. Install it, make sure you see the "select default" popup for each
intent,
and now you can uninstall the 'stub' app.

Now the "real" app should show in the "Select handler" popup, too.


On Jan 13, 4:35 pm, "A T"  wrote:
> That I'm not sure about. It should have asked you again, especially after
> re-installing. I know this because I've made an app that replaces the
> default call log as well, and every time i re-install (debug or release), I
> have to re-select my default.
>
> A similar issue I did know about, though, is if you would have selected the
> original Dialer app as your default, you would have run into the same
> problem as you are now. I've been wondering how to fix this. If anybody has
> a solution, please help. Thank you.
>
> On Tue, Jan 13, 2009 at 9:07 AM, shimo...@gmail.com wrote:
>
>
>
> > Hi,
>
> > One more issue - everything was working fine on my ADP1 device.
> > I selected my app (TAKEphONE) to be the default handler for
> > this, so every time I pressed the CALL button my app launched by
> > default.
>
> > Then I wanted to check something, so I went to the system settings,
> > to the "Applications" section, selected my app, and tapped the "clear
> > defaults"
> > button.
>
> > BUT - now when I press the CALL button - I no longer see the dialog
> > asking me which app to launch (mine or the Dialer).
> > Tried removing my app and re-installing - it did not help, either.
>
> > How can I restore things to the way they were ?
>
> > TIA
>
> > On Jan 12, 9:17 pm, "A T"  wrote:
> > > You'll notice that a different intent is fired when the calls ends.
> > filter
> > > for it and make it default as well. (use the log of course).
>
> > > On Mon, Jan 12, 2009 at 2:12 PM, shimo...@gmail.com  > >wrote:
>
> > > > Hi,
>
> > > > Did that, and it seems to work, but -
>
> > > > Whenever the device is in the built-in dialer application, the intent
> > > > is
> > > > not fired when I press the CALL button, so I basically lose control
> > > > over
> > > > the button after every call (since the device auto-launches the built-
> > > > in
> > > > dialer after any call ends).
>
> > > > Anything I can do against this ?
>
> > > > While on this subject - I added the code to be notified on calls
> > > > ending,
> > > > wanting to have the device launch MY application instead of the built-
> > > > in dialer
> > > > when calls end. I was able to launch 3rd party apps when calls end,
> > > > but not
> > > > launch my own app. Any tips ?
>
> > > > TIA
>
> > > > On Jan 12, 2:43 pm, "Aryeh Tasher"  wrote:
> > > > > add the CALL_BUTTON intent filter with category DEFAULT
>
> > > > > On Mon, Jan 12, 2009 at 7:11 AM, shimo...@gmail.com <
> > shimo...@gmail.com
> > > > >wrote:
>
> > > > > > Hi,
>
> > > > > > What ?!
>
> > > > > > I was told at these forums it can not be done for the PHONE
> > button...
>
> > > > > > How ?
> > > > > > Is it the same code as for the camera button ?
> > > > > > What permissions are needed ?
>
> > > > > > If I can do this it would be a GREAT feature for my app !
>
> > > > > > On Jan 12, 4:40 am, "Dianne Hackborn"  wrote:
> > > > > > > I believe you can already do that.
>
> > > > > > > On Sun, Jan 11, 2009 at 1:23 AM, shimo...@gmail.com <
> > > > shimo...@gmail.com
> > > > > > >wrote:
>
> > > > > > > > Hi,
>
> > > > > > > > How about an option to assign pressing the PHONE button to
> > launch
> > > > my
> > > > > > > > app ?
> > > > > > > > (when there are no pending incoming calls)
>
> > > > > > > > TIA
>
> > > > > > > > On Jan 10, 2:35 am, "Dianne Hackborn" 
> > wrote:
> > > > > > > > > It would be nice to have a way to replace the incoming call
> > > > screen or
> > >

[android-developers] Re: Is it possible to replace or extend the dialer application ?

2009-01-13 Thread shimo...@gmail.com

Hi,

One more issue - everything was working fine on my ADP1 device.
I selected my app (TAKEphONE) to be the default handler for
this, so every time I pressed the CALL button my app launched by
default.

Then I wanted to check something, so I went to the system settings,
to the "Applications" section, selected my app, and tapped the "clear
defaults"
button.

BUT - now when I press the CALL button - I no longer see the dialog
asking me which app to launch (mine or the Dialer).
Tried removing my app and re-installing - it did not help, either.

How can I restore things to the way they were ?

TIA

On Jan 12, 9:17 pm, "A T"  wrote:
> You'll notice that a different intent is fired when the calls ends. filter
> for it and make it default as well. (use the log of course).
>
> On Mon, Jan 12, 2009 at 2:12 PM, shimo...@gmail.com wrote:
>
>
>
> > Hi,
>
> > Did that, and it seems to work, but -
>
> > Whenever the device is in the built-in dialer application, the intent
> > is
> > not fired when I press the CALL button, so I basically lose control
> > over
> > the button after every call (since the device auto-launches the built-
> > in
> > dialer after any call ends).
>
> > Anything I can do against this ?
>
> > While on this subject - I added the code to be notified on calls
> > ending,
> > wanting to have the device launch MY application instead of the built-
> > in dialer
> > when calls end. I was able to launch 3rd party apps when calls end,
> > but not
> > launch my own app. Any tips ?
>
> > TIA
>
> > On Jan 12, 2:43 pm, "Aryeh Tasher"  wrote:
> > > add the CALL_BUTTON intent filter with category DEFAULT
>
> > > On Mon, Jan 12, 2009 at 7:11 AM, shimo...@gmail.com  > >wrote:
>
> > > > Hi,
>
> > > > What ?!
>
> > > > I was told at these forums it can not be done for the PHONE button...
>
> > > > How ?
> > > > Is it the same code as for the camera button ?
> > > > What permissions are needed ?
>
> > > > If I can do this it would be a GREAT feature for my app !
>
> > > > On Jan 12, 4:40 am, "Dianne Hackborn"  wrote:
> > > > > I believe you can already do that.
>
> > > > > On Sun, Jan 11, 2009 at 1:23 AM, shimo...@gmail.com <
> > shimo...@gmail.com
> > > > >wrote:
>
> > > > > > Hi,
>
> > > > > > How about an option to assign pressing the PHONE button to launch
> > my
> > > > > > app ?
> > > > > > (when there are no pending incoming calls)
>
> > > > > > TIA
>
> > > > > > On Jan 10, 2:35 am, "Dianne Hackborn"  wrote:
> > > > > > > It would be nice to have a way to replace the incoming call
> > screen or
> > > > > > other
> > > > > > > parts of the incoming call handling, but it is pretty non-trivial
> > to
> > > > do.
> > > > > >  I
> > > > > > > am not aware of any current work going on to do this.  You can
> > have a
> > > > > > look
> > > > > > > at the source and see what is involved.
>
> > > > > > > On Fri, Jan 9, 2009 at 3:39 PM, Brad Fuller <
> > > > bradallenful...@gmail.com
> > > > > > >wrote:
>
> > > > > > > > Thanks Dianne,
>
> > > > > > > > Then perhaps there are ways to implement "partial" events for
> > > > incoming
> > > > > > > > calls. When an incoming call is detected, I imagine that there
> > are
> > > > > > > > several separate events. For example: get the number of the
> > > > incoming
> > > > > > > > call; see if it's in the contact list; display the onscreen
> > graphic
> > > > of
> > > > > > > > an incoming with the phone number and the contact name, call
> > the
> > > > > > > > ringtone manager: etc. Then, when the phone is off-hook,
> > display
> > > > "Call
> > > > > > > > in progess" text.. etc.
>
> > > > > > > > I assume that these are separate classes. So, could one display
> > > > their
> > > > > > > > own "incoming call" graphic? Or replace the RingTone manager
> > (not
> > > > the
> > > > > > > > ringtone, like ExtendedRing

[android-developers] Re: Is it possible to replace or extend the dialer application ?

2009-01-13 Thread shimo...@gmail.com

Hi,

Thanks a mill !
It's working.

One more question now - is there a way I can toggle the Intent filter
in code (in run-time) ?

What I am aiming at is adding this as a setting in my application,
allowing the user to decide if he/she wants my app to replace the
dialer for the PHONE button.
If I declare the intent-filter in the AndroidManifest file - it's
"hard-coded" there...

TIA

On Jan 12, 9:17 pm, "A T"  wrote:
> You'll notice that a different intent is fired when the calls ends. filter
> for it and make it default as well. (use the log of course).
>
> On Mon, Jan 12, 2009 at 2:12 PM, shimo...@gmail.com wrote:
>
>
>
> > Hi,
>
> > Did that, and it seems to work, but -
>
> > Whenever the device is in the built-in dialer application, the intent
> > is
> > not fired when I press the CALL button, so I basically lose control
> > over
> > the button after every call (since the device auto-launches the built-
> > in
> > dialer after any call ends).
>
> > Anything I can do against this ?
>
> > While on this subject - I added the code to be notified on calls
> > ending,
> > wanting to have the device launch MY application instead of the built-
> > in dialer
> > when calls end. I was able to launch 3rd party apps when calls end,
> > but not
> > launch my own app. Any tips ?
>
> > TIA
>
> > On Jan 12, 2:43 pm, "Aryeh Tasher"  wrote:
> > > add the CALL_BUTTON intent filter with category DEFAULT
>
> > > On Mon, Jan 12, 2009 at 7:11 AM, shimo...@gmail.com  > >wrote:
>
> > > > Hi,
>
> > > > What ?!
>
> > > > I was told at these forums it can not be done for the PHONE button...
>
> > > > How ?
> > > > Is it the same code as for the camera button ?
> > > > What permissions are needed ?
>
> > > > If I can do this it would be a GREAT feature for my app !
>
> > > > On Jan 12, 4:40 am, "Dianne Hackborn"  wrote:
> > > > > I believe you can already do that.
>
> > > > > On Sun, Jan 11, 2009 at 1:23 AM, shimo...@gmail.com <
> > shimo...@gmail.com
> > > > >wrote:
>
> > > > > > Hi,
>
> > > > > > How about an option to assign pressing the PHONE button to launch
> > my
> > > > > > app ?
> > > > > > (when there are no pending incoming calls)
>
> > > > > > TIA
>
> > > > > > On Jan 10, 2:35 am, "Dianne Hackborn"  wrote:
> > > > > > > It would be nice to have a way to replace the incoming call
> > screen or
> > > > > > other
> > > > > > > parts of the incoming call handling, but it is pretty non-trivial
> > to
> > > > do.
> > > > > >  I
> > > > > > > am not aware of any current work going on to do this.  You can
> > have a
> > > > > > look
> > > > > > > at the source and see what is involved.
>
> > > > > > > On Fri, Jan 9, 2009 at 3:39 PM, Brad Fuller <
> > > > bradallenful...@gmail.com
> > > > > > >wrote:
>
> > > > > > > > Thanks Dianne,
>
> > > > > > > > Then perhaps there are ways to implement "partial" events for
> > > > incoming
> > > > > > > > calls. When an incoming call is detected, I imagine that there
> > are
> > > > > > > > several separate events. For example: get the number of the
> > > > incoming
> > > > > > > > call; see if it's in the contact list; display the onscreen
> > graphic
> > > > of
> > > > > > > > an incoming with the phone number and the contact name, call
> > the
> > > > > > > > ringtone manager: etc. Then, when the phone is off-hook,
> > display
> > > > "Call
> > > > > > > > in progess" text.. etc.
>
> > > > > > > > I assume that these are separate classes. So, could one display
> > > > their
> > > > > > > > own "incoming call" graphic? Or replace the RingTone manager
> > (not
> > > > the
> > > > > > > > ringtone, like ExtendedRings does), etc?  Or are they not
> > separate
> > > > > > > > classes or all private?
>
> > > > > > > > Does that make sense?
>
> > > > &g

[android-developers] Re: Is it possible to replace or extend the dialer application ?

2009-01-12 Thread shimo...@gmail.com

Hi,

Did that, and it seems to work, but -

Whenever the device is in the built-in dialer application, the intent
is
not fired when I press the CALL button, so I basically lose control
over
the button after every call (since the device auto-launches the built-
in
dialer after any call ends).

Anything I can do against this ?

While on this subject - I added the code to be notified on calls
ending,
wanting to have the device launch MY application instead of the built-
in dialer
when calls end. I was able to launch 3rd party apps when calls end,
but not
launch my own app. Any tips ?

TIA


On Jan 12, 2:43 pm, "Aryeh Tasher"  wrote:
> add the CALL_BUTTON intent filter with category DEFAULT
>
> On Mon, Jan 12, 2009 at 7:11 AM, shimo...@gmail.com wrote:
>
>
>
> > Hi,
>
> > What ?!
>
> > I was told at these forums it can not be done for the PHONE button...
>
> > How ?
> > Is it the same code as for the camera button ?
> > What permissions are needed ?
>
> > If I can do this it would be a GREAT feature for my app !
>
> > On Jan 12, 4:40 am, "Dianne Hackborn"  wrote:
> > > I believe you can already do that.
>
> > > On Sun, Jan 11, 2009 at 1:23 AM, shimo...@gmail.com  > >wrote:
>
> > > > Hi,
>
> > > > How about an option to assign pressing the PHONE button to launch my
> > > > app ?
> > > > (when there are no pending incoming calls)
>
> > > > TIA
>
> > > > On Jan 10, 2:35 am, "Dianne Hackborn"  wrote:
> > > > > It would be nice to have a way to replace the incoming call screen or
> > > > other
> > > > > parts of the incoming call handling, but it is pretty non-trivial to
> > do.
> > > >  I
> > > > > am not aware of any current work going on to do this.  You can have a
> > > > look
> > > > > at the source and see what is involved.
>
> > > > > On Fri, Jan 9, 2009 at 3:39 PM, Brad Fuller <
> > bradallenful...@gmail.com
> > > > >wrote:
>
> > > > > > Thanks Dianne,
>
> > > > > > Then perhaps there are ways to implement "partial" events for
> > incoming
> > > > > > calls. When an incoming call is detected, I imagine that there are
> > > > > > several separate events. For example: get the number of the
> > incoming
> > > > > > call; see if it's in the contact list; display the onscreen graphic
> > of
> > > > > > an incoming with the phone number and the contact name, call the
> > > > > > ringtone manager: etc. Then, when the phone is off-hook, display
> > "Call
> > > > > > in progess" text.. etc.
>
> > > > > > I assume that these are separate classes. So, could one display
> > their
> > > > > > own "incoming call" graphic? Or replace the RingTone manager (not
> > the
> > > > > > ringtone, like ExtendedRings does), etc?  Or are they not separate
> > > > > > classes or all private?
>
> > > > > > Does that make sense?
>
> > > > > > On Fri, Jan 9, 2009 at 2:56 PM, Dianne Hackborn <
> > hack...@android.com>
> > > > > > wrote:
> > > > > > > Currently you can intercept outgoing calls and replace that with
> > your
> > > > own
> > > > > > > behavior, but we don't yet have a way to intercept incoming
> > calls.
>
> > > > > > > The issue of built-in apps using internal APIs is kind-of a
> > > > red-herring.
> > > > > > > Yes, in the case of the phone UI, there are a bunch of APIs that
> > you
> > > > need
> > > > > > to
> > > > > > > be able to implement something like your own in-call screen...
> > > >  however
> > > > > > the
> > > > > > > fact that they are internal is not really the issue: we could
> > expose
> > > > > > them,
> > > > > > > but it still wouldn't work because the current implementation of
> > them
> > > > > > > requires that you actually be running in the same process as the
> > > > > > telephony
> > > > > > > subsystem, so they just can't be used by other apps.  For the
> > most
> > > > part,
> > > > > > we
> > > > > > > make APIs private because they are not yet something we 

[android-developers] Re: Is it possible to replace or extend the dialer application ?

2009-01-12 Thread shimo...@gmail.com

Hi,

What ?!

I was told at these forums it can not be done for the PHONE button...

How ?
Is it the same code as for the camera button ?
What permissions are needed ?

If I can do this it would be a GREAT feature for my app !

On Jan 12, 4:40 am, "Dianne Hackborn"  wrote:
> I believe you can already do that.
>
> On Sun, Jan 11, 2009 at 1:23 AM, shimo...@gmail.com wrote:
>
>
>
>
>
> > Hi,
>
> > How about an option to assign pressing the PHONE button to launch my
> > app ?
> > (when there are no pending incoming calls)
>
> > TIA
>
> > On Jan 10, 2:35 am, "Dianne Hackborn"  wrote:
> > > It would be nice to have a way to replace the incoming call screen or
> > other
> > > parts of the incoming call handling, but it is pretty non-trivial to do.
> >  I
> > > am not aware of any current work going on to do this.  You can have a
> > look
> > > at the source and see what is involved.
>
> > > On Fri, Jan 9, 2009 at 3:39 PM, Brad Fuller  > >wrote:
>
> > > > Thanks Dianne,
>
> > > > Then perhaps there are ways to implement "partial" events for incoming
> > > > calls. When an incoming call is detected, I imagine that there are
> > > > several separate events. For example: get the number of the incoming
> > > > call; see if it's in the contact list; display the onscreen graphic of
> > > > an incoming with the phone number and the contact name, call the
> > > > ringtone manager: etc. Then, when the phone is off-hook, display "Call
> > > > in progess" text.. etc.
>
> > > > I assume that these are separate classes. So, could one display their
> > > > own "incoming call" graphic? Or replace the RingTone manager (not the
> > > > ringtone, like ExtendedRings does), etc?  Or are they not separate
> > > > classes or all private?
>
> > > > Does that make sense?
>
> > > > On Fri, Jan 9, 2009 at 2:56 PM, Dianne Hackborn 
> > > > wrote:
> > > > > Currently you can intercept outgoing calls and replace that with your
> > own
> > > > > behavior, but we don't yet have a way to intercept incoming calls.
>
> > > > > The issue of built-in apps using internal APIs is kind-of a
> > red-herring.
> > > > > Yes, in the case of the phone UI, there are a bunch of APIs that you
> > need
> > > > to
> > > > > be able to implement something like your own in-call screen...
> >  however
> > > > the
> > > > > fact that they are internal is not really the issue: we could expose
> > > > them,
> > > > > but it still wouldn't work because the current implementation of them
> > > > > requires that you actually be running in the same process as the
> > > > telephony
> > > > > subsystem, so they just can't be used by other apps.  For the most
> > part,
> > > > we
> > > > > make APIs private because they are not yet something we can maintain
> > in
> > > > the
> > > > > future platform are even able to be used successfully by
> > applications.
> > > >  Not
> > > > > out of some malicious goal to make sure nobody else can make their
> > own
> > > > > whatever UI.
>
> > > > > Outside of the phone system, for the most part the platform
> > applications
> > > > use
> > > > > private APIs because we didn't have time to clean all of the apps up
> > as
> > > > we
> > > > > were evolving the official SDK into something that we could support
> > in
> > > > the
> > > > > long term.  We would love to accept patches that fix these APIs to
> > switch
> > > > to
> > > > > the public APIs.
>
> > > > > On Fri, Jan 9, 2009 at 1:07 PM, Brad Fuller <
> > bradallenful...@gmail.com>
> > > > > wrote:
>
> > > > >> On Fri, Jan 9, 2009 at 1:02 PM, moazzamk 
> > wrote:
>
> > > > >> > I don't know what you mean by replace with your own code but you
> > can
> > > > >> > setup a receiver in your app which is called when a call is
> > received.
> > > > >> > I remember reading about it in the documentation (if I remember
> > > > >> > correctly).
>
> > > > >> What I mean is that instead of the default process that happens

[android-developers] Re: Is it possible to replace or extend the dialer application ?

2009-01-11 Thread shimo...@gmail.com

Hi,

How about an option to assign pressing the PHONE button to launch my
app ?
(when there are no pending incoming calls)

TIA


On Jan 10, 2:35 am, "Dianne Hackborn"  wrote:
> It would be nice to have a way to replace the incoming call screen or other
> parts of the incoming call handling, but it is pretty non-trivial to do.  I
> am not aware of any current work going on to do this.  You can have a look
> at the source and see what is involved.
>
> On Fri, Jan 9, 2009 at 3:39 PM, Brad Fuller wrote:
>
>
>
>
>
> > Thanks Dianne,
>
> > Then perhaps there are ways to implement "partial" events for incoming
> > calls. When an incoming call is detected, I imagine that there are
> > several separate events. For example: get the number of the incoming
> > call; see if it's in the contact list; display the onscreen graphic of
> > an incoming with the phone number and the contact name, call the
> > ringtone manager: etc. Then, when the phone is off-hook, display "Call
> > in progess" text.. etc.
>
> > I assume that these are separate classes. So, could one display their
> > own "incoming call" graphic? Or replace the RingTone manager (not the
> > ringtone, like ExtendedRings does), etc?  Or are they not separate
> > classes or all private?
>
> > Does that make sense?
>
> > On Fri, Jan 9, 2009 at 2:56 PM, Dianne Hackborn 
> > wrote:
> > > Currently you can intercept outgoing calls and replace that with your own
> > > behavior, but we don't yet have a way to intercept incoming calls.
>
> > > The issue of built-in apps using internal APIs is kind-of a red-herring.
> > > Yes, in the case of the phone UI, there are a bunch of APIs that you need
> > to
> > > be able to implement something like your own in-call screen...  however
> > the
> > > fact that they are internal is not really the issue: we could expose
> > them,
> > > but it still wouldn't work because the current implementation of them
> > > requires that you actually be running in the same process as the
> > telephony
> > > subsystem, so they just can't be used by other apps.  For the most part,
> > we
> > > make APIs private because they are not yet something we can maintain in
> > the
> > > future platform are even able to be used successfully by applications.
> >  Not
> > > out of some malicious goal to make sure nobody else can make their own
> > > whatever UI.
>
> > > Outside of the phone system, for the most part the platform applications
> > use
> > > private APIs because we didn't have time to clean all of the apps up as
> > we
> > > were evolving the official SDK into something that we could support in
> > the
> > > long term.  We would love to accept patches that fix these APIs to switch
> > to
> > > the public APIs.
>
> > > On Fri, Jan 9, 2009 at 1:07 PM, Brad Fuller 
> > > wrote:
>
> > >> On Fri, Jan 9, 2009 at 1:02 PM, moazzamk  wrote:
>
> > >> > I don't know what you mean by replace with your own code but you can
> > >> > setup a receiver in your app which is called when a call is received.
> > >> > I remember reading about it in the documentation (if I remember
> > >> > correctly).
>
> > >> What I mean is that instead of the default process that happens when
> > >> an incoming call is detected, another process is called.
>
> > --
> > Brad Fuller
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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: Deployment of native C library

2009-01-05 Thread shimo...@gmail.com

Hi,

Do you have an ADP1 device (developer phone) ?

I read somewhere something like this"

"su is there on the device, but ro.secure is set to 1, so you can not
do "adb remount""

Thanks.

On Jan 5, 11:53 am, "Anonymous Anonymous"
 wrote:
> adb remount
>
> then try again
>
> On Sun, Jan 4, 2009 at 12:45 PM, shimo...@gmail.com wrote:
>
>
>
> > Hi,
>
> > Did as you suggested from my Windows PC (using adb shell).
> > The 'mount' command did not yield any error.
> > But - saw no change in the \system attributes (using ls -l).
> > And - when I try to do "adb push MySans.ttf \system\fonts\MySans.ttf"
> > I get an error message:
> > "failed to copy ...: read-only file system"
>
> > Any ideas ?
>
> > Thanks !
>
> > On Jan 2, 5:27 pm, "Joel Knighton"  wrote:
> > > Issue the commands in this order (from a terminal on the device,
> > otherwise
> > > change to use adb shell).
>
> > > $su
> > > #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
>
> > > Add/change anything you need, then revert to read only.
>
> > > $su
> > > #mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
>
> > > On Fri, Jan 2, 2009 at 12:31 AM, Margaret  wrote:
>
> > > > add sudo where you do mount .
>
> > > > mawei...@gmail.com
> > > > 13585201588
>
> > > > 2009/1/2 shimo...@gmail.com :
>
> > > > > Hi,
>
> > > > > Thanks !
>
> > > > > Where do I issue this command from ?
>
> > > > > When I do this from PTerminal on my Android device it hangs, then
> > > > > issues
> > > > > a warning box saying:
>
> > > > > "Activity pTerminal (in application pTerminal) is not responding""
>
> > > > > Do you have a Dev Phone ?
>
> > > > > Thanks.
>
> > > > > On Jan 2, 3:39 am, Joel  wrote:
> > > > >> Sounds as if you don't have root.  Did you issue a su command first?
>
> > > > >> On Jan 1, 6:11 pm, "shimo...@gmail.com"  wrote:
>
> > > > >> > Hi,
>
> > > > >> > Tried that on my Dev Phone, and got "mount: operation not
> > permitted"
>
> > > > >> > Can you tell me why ?
>
> > > > >> > TIA
>
> > > > >> > On Nov 17 2008, 11:48 am, "li chen"  wrote:
>
> > > > >> > > You can use adb shell toremount/system and try again:
> > > > >> > > mount -oremountrw /system
>
> > > > >> > > -freepine
>
> > > --
> > > Joel Knighton
--~--~-~--~~~---~--~~
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: Deployment of native C library

2009-01-03 Thread shimo...@gmail.com

Hi,

Did as you suggested from my Windows PC (using adb shell).
The 'mount' command did not yield any error.
But - saw no change in the \system attributes (using ls -l).
And - when I try to do "adb push MySans.ttf \system\fonts\MySans.ttf"
I get an error message:
"failed to copy ...: read-only file system"

Any ideas ?

Thanks !


On Jan 2, 5:27 pm, "Joel Knighton"  wrote:
> Issue the commands in this order (from a terminal on the device, otherwise
> change to use adb shell).
>
> $su
> #mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
>
> Add/change anything you need, then revert to read only.
>
> $su
> #mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
>
>
>
> On Fri, Jan 2, 2009 at 12:31 AM, Margaret  wrote:
>
> > add sudo where you do mount .
>
> > mawei...@gmail.com
> > 13585201588
>
> > 2009/1/2 shimo...@gmail.com :
>
> > > Hi,
>
> > > Thanks !
>
> > > Where do I issue this command from ?
>
> > > When I do this from PTerminal on my Android device it hangs, then
> > > issues
> > > a warning box saying:
>
> > > "Activity pTerminal (in application pTerminal) is not responding""
>
> > > Do you have a Dev Phone ?
>
> > > Thanks.
>
> > > On Jan 2, 3:39 am, Joel  wrote:
> > >> Sounds as if you don't have root.  Did you issue a su command first?
>
> > >> On Jan 1, 6:11 pm, "shimo...@gmail.com"  wrote:
>
> > >> > Hi,
>
> > >> > Tried that on my Dev Phone, and got "mount: operation not permitted"
>
> > >> > Can you tell me why ?
>
> > >> > TIA
>
> > >> > On Nov 17 2008, 11:48 am, "li chen"  wrote:
>
> > >> > > You can use adb shell toremount/system and try again:
> > >> > > mount -oremountrw /system
>
> > >> > > -freepine
>
> --
> Joel Knighton
--~--~-~--~~~---~--~~
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] Android Dev Phone 1 - can I gain access to replace/add system fonts ?

2009-01-01 Thread shimo...@gmail.com

Hi,

I bought the Android Dev Phone 1, to use it to develop apps, and port
my existing Palm OS applications to the Android platform.

Amongst other things, I thought I'd have access to it's internals -
mainly to replace the system fonts with ones including Hebrew
characters - so I can add Hebrew contacts support to my apps.

I cant seem to be able to replace/add the fonts in the system/fonts
directory - since it's read-only.

Is there a way around this on the Dev Phone ?

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: Deployment of native C library

2009-01-01 Thread shimo...@gmail.com

Hi,

Thanks !

Where do I issue this command from ?

When I do this from PTerminal on my Android device it hangs, then
issues
a warning box saying:

"Activity pTerminal (in application pTerminal) is not responding""

Do you have a Dev Phone ?

Thanks.


On Jan 2, 3:39 am, Joel  wrote:
> Sounds as if you don't have root.  Did you issue a su command first?
>
> On Jan 1, 6:11 pm, "shimo...@gmail.com"  wrote:
>
> > Hi,
>
> > Tried that on my Dev Phone, and got "mount: operation not permitted"
>
> > Can you tell me why ?
>
> > TIA
>
> > On Nov 17 2008, 11:48 am, "li chen"  wrote:
>
> > > You can use adb shell toremount/system and try again:
> > > mount -oremountrw /system
>
> > > -freepine
--~--~-~--~~~---~--~~
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: Deployment of native C library

2009-01-01 Thread shimo...@gmail.com

Hi,

Tried that on my Dev Phone, and got "mount: operation not permitted"

Can you tell me why ?

TIA

On Nov 17 2008, 11:48 am, "li chen"  wrote:
> You can use adb shell to remount /system and try again:
> mount -o remount rw /system
>
> -freepine
>

--~--~-~--~~~---~--~~
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: phoneStateListener

2008-12-11 Thread shimo...@gmail.com

Anyone ?

On Nov 3, 12:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think I got this straight.
> Now an other problem - I want to use the 'onCallStateChanged' function
> to launch my app screen
> when a call ends. How do I bring my app to the front ?
>
> TIA
>
> On Oct 9, 8:22 pm, chouman82 <[EMAIL PROTECTED]> wrote:
>
> > Can anyone give a simple example of the usage ofPhoneStateListener?
>
> > I have tried to overwrite the listener and register it with the
> > TelephonyManager with the Context.TELEPHONY_SERVICE.
>
> > But i only saw my logging statement printed out right when I started
> > to run the application.  The logging showed the PhoneState as IDLE.
> > But then after that when I use telnet to emulate an incoming call, I
> > don't see the logging statement been printed for PhoneState - RINGING
> > or PhoneState - OFFHOOK.
>
> > here is my code snippet:
> > TelephonyManager tm =
> > (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
> > tm.listen(this, CallStateListener.LISTEN_CALL_STATE);
>
> > public void onCallStateChanged(int state, String incomingNumber)
> > {
> >     switch(state)
> >     {
> >           case TelephonyManager.CALL_STATE_DLE:
> >                Log.d(DEBUG, "PHONE STATE - IDLE");
> >                break;
> >           case TelephonyManager.CALL_STATE_OFFHOOK:
> >                Log.d(DEBUG, "PHONE STATE - OFFHOOK");
> >                break;
> >           case TelephonyManager.CALL_STATE_RINGING:
> >                Log.d(DEBUG, "PHONE STATE - RINGING");
> >                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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: start your application on camera button

2008-12-10 Thread shimo...@gmail.com

Hi,

So are you saying it cant be done ?

There is no way I make my app launch when the user presses the CALL
button ?

Only access to 3rd party is by tapping their icon on the screen ?

Or can I pretent to be the built-in app ?

TIA
Shimon

On Dec 3, 10:26 pm, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> The call button starts an activity, it doesn't send a broadcast, as
> described in the doc.  (Yes this is inconsistent with the camera button and
> the camera button should probably be changed.)
>
> On Wed, Dec 3, 2008 at 11:32 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Hi,
>
> > I cant get this to work. I am trying this for the CALL_BUTTON and on
> > the emulator.
>
> > Added the lines below to my manifest.
> > Created the MyReceiver class just like you do here.
>
> > Then trying to register the receiver in OnCreate:
>
> >        IntentFilter filter = new IntentFilter
> > ("android.intent.action.CAMERA_BUTTON");
> >        Intent intnt = registerReceiver(mCallButtonIntentReceiver,
> > filter);
>
> > intnt always return null.
>
> > What am I doing wrong here ?
>
> > TIA
>
> > Shimon
>
> > On Nov 14, 10:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
> > > Thanks Guys. I added a receiver with CAMERA_BUTTON intent-filter and
> > > it then triggers my Main application. But I am not getting the choose
> > > application dialog. Instead, both my Main application and camera
> > > application opens.
>
> > >  > >                   android:label="@string/app_name"
> > >                   android:theme="@android:style/Theme">
> > >             
> > >                 
> > >                  > > android:name="android.intent.category.LAUNCHER" />
> > >             
> > >             
> > >                  > > android:name="android.intent.action.MY_INTENT">
> > >                  > > android:name="android.intent.category.DEFAULT" />
> > >             
> > >  
> > > 
> > >     
> > >         
> > >     
> > > 
>
> > > public class MyReceiver extends BroadcastReceiver {
>
> > >         @Override
> > >         public void onReceive(Context context, Intent intent) {
> > >                 Intent newIntent = new
> > Intent(".android.intent.action.MY_INTENT");
> > >                 context.startActivity(newIntent);
> > >         }
>
> > > }
>
> > > -abhi
>
> > > On Nov 14, 2:53 am, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > > If you have more than one best matching activity for an intent is to
> > offer
> > > > you a list to pick the desired activity, with the option of using one
> > as the
> > > > default (ie do not ask again). It is easy to trigger, just by defining
> > two
> > > > activities with the same intent...Ludwig
>
> > > > 2008/11/14 blindfold <[EMAIL PROTECTED]>
>
> > > > > What happens when more than one application has this in the manifest?
>
> > > > > Thanks
>
> > > > > On Nov 14, 8:53 am, "[EMAIL PROTECTED]"
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Register to receive the intent
> > "android.intent.action.CAMERA_BUTTON".
> > > > > > Here's how you might add it to your app's manifest:
>
> > > > > > 
> > > > > >     
> > > > > >          > android:name="android.intent.action.CAMERA_BUTTON"/>
> > > > > >     
> > > > > > 
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Overriding Contacts View

2008-12-03 Thread shimo...@gmail.com

Hi,

Can you point me to where I can read on how to do this ?
(I mean get called when the user pressed the GREEN button).

TIA

Shimon

On Oct 9, 10:22 pm, hackbod <[EMAIL PROTECTED]> wrote:
> Just implement the same intent protocols you want to handle.  For
> pressing the green button, the intent is action
> android.intent.action.CALL_BUTTON.  For someone dialing a number, it
> is android.intent.action.DIAL, etc.  These should be defined in the
> Intent class.
>
> On Oct 9, 11:05 am, Rohit Mordani <[EMAIL PROTECTED]> wrote:
>
> > Can you tell me how can you replace the entire app/activity?
>
> > Rohit
>
> > On Aug 29, 10:17 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > > This isn't supported in 1.0.  You can only replace the entire
> > > Dialtacts activity.
>
> > > On Aug 29, 6:44 am, chokoreto <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I am trying to replace the default contacts view, but I get a Security
> > > > Exception.
>
> > > > java.lang.RuntimeException: Unable to start activity
> > > > ComponentInfo{com.android.contacts/
> > > > com.android.contacts.DialtactsActivity}:
> > > > java.lang.SecurityException: Requesting code from
> > > > com.swisscom.addrbook.test (with uid 10017) to be run in process
> > > > android.process.shared (with uid 10004)
>
> > > > I guess, it has something to do that the Contacts Application uses the
> > > > TabActivity and each Activity in the tab runs in different processes.
> > > > Is there any way how to solve that?
>
> > > > I was using this intent-filter
>
> > > > 
> > > >            > > > android:name="com.android.contacts.action.LIST_DEFAULT" />
> > > >          
> > > > 
>
> > > > Regards,
> > > > Reto
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Returning to my application after a call ends

2008-12-01 Thread shimo...@gmail.com

Hi,

Can't I do something while in the CALL_STATE notification callback ?
It's being called no matter what the user did and what app he/she
is in right now.

I was able to launch a 3rd application (the "snake" game) from within
that callback, but not launch 'myself'.

Thanks.


On Dec 1, 3:35 am, "Dianne Hackborn" <[EMAIL PROTECTED]> wrote:
> There probably isn't a way to do this -- during the call, the user could
> have left it, gone to another application, returned to your own, closed it,
> gone home, and hung up the call while not even in the in-call screen.
>
> On Sun, Nov 30, 2008 at 12:27 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
>
>
> > Hi,
>
> > I want to return to my own application after a call originated from
> > within it ends.
>
> > I have implemented the notification to get the call state change to
> > IDLE, and managed to launch another app from there, but not to launch
> > my own app.
>
> > Is this doable ?
>
> > TIA
>
> --
> Dianne Hackborn
> Android framework engineer
> [EMAIL PROTECTED]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---