I also notice one other special feature on the N504 - in email settings:
"wake up i-appli". Can't see this on the P.
Just guessing, but I assume this is a feature that allows email to somehow
be tagged to launch a particular i-appli - which would be very neat. So for
example I can send animated messages that trigger the phone to launch my own
java player for those type of messages...
Brew1.0+ has a similar feature where an 'SMS' (whatever that is in
cdma-land) can start:
// Brew <appID>
Like a comment in the sms which then triggers an app to launch. Of course
the SMS is just a notification of the message, the content sits on the
server.
Does anyone have a link to the API calls for this?
----
Few other obvious differences:
N
is able to take a 640x480 image
has 3X zoom
P
has more ram (as per the old 504)
has two cameras (inside facing one is a wider angle)
/dc
> -----Original Message-----
> From: keitai-l-bounce_at_appelsiini.net [mailto:keitai-l-bounce_at_appelsiini.
> net]On Behalf Of Colin Mack
> Sent: 2002$BG/(B12$B7n(B2$BF|(B 14:07
> To: keitai-l_at_appelsiini.net
> Subject: (keitai-l) Re: 504is compared ?
>
>
>
>
> On 2002.12.2, at 02:38 AM, dc wrote:
>
> >
> > How do the 504is models compare? Are there any significant feature
> > differences?
> >
> > I heard conflicting reports that only the P actually had a java api to
> > the
> > camera, but this amount of non-standardisation seems unlikely from
> > docomo.
> >
>
>
> I can't speak from personal experience on this yet, but there is a
> thread on the JavaHz (japanese) mailing list that indicates that such
> an API exists, and at least some people have had success in using it.
> I've copied in a couple of mails below for "evidence", although now
> looking at them it does not appear to be strictly a P feature, as it
> looks a lot like the API (see 2nd mail w/ source code) is coming from
> nttdocomo.opt.ui, which would indicate it is not a P-only feature, but
> an optional thing that some other makers may be supporting as well.
>
>
> ++++++++++++++++++++++++++++++++++++
>
> Date: 2002.11.28 18:07:12 Asia/Tokyo
> To: java_at_gigahz.net
> Subject: Re: [JavaHz:2265] i$B%"%W%j$N%+%a%i_at_)8f$K$D$$$F(B
> Reply-To: java_at_gigahz.net
>
>
> On Thu, 28 Nov 2002 17:33:09 +0900
> <kurosaki.k_at_md.neweb.ne.jp> wrote:
>
> > Camera.takePicture()$B$G%+%a%i$r5/F0$7!"2hA|$r%+%a%i%*%V%8%'%/%HFb$KJ](B
$B;}!#(B
> > $B$H!"$3$3$^$G$O$$$$$N$G$9$,!"J]B8$7$?2hA|$rI=<($5$;$k$3$H$,=PMh$:$K$$$^(B
$B$9(B
> $B!#(B
> > Camera.getImage()$B%a%=%C%I$"$k$$$O!"(BCamera.getInputStream()$B%a%=%C%I$N;H(B
$B$$(B
> $BJ}$r(B
> > $B65$($F$$$?$_at_$-$?$$$H;W$$$^$9!#(B
>
> $B$^$_at_;n$7$F$J$$$N$G4V0c$C$F$$$?$i$9$_$^$;$s!#(B
>
> API$B%I%-%e%a%s%H$K$h$k$H!"(BCamera.getImage()$B$O(BMediaImage$B%*%V%8%'%/%H$rJV$9(B
> $B$H$N;v$J$N$G!"(B
>
> int index = 0;
> MediaImage mi = Camera.getImage(index);
> mi.use();
> Image img = mi.getImage();
>
> $B$_$?$$$J46$8$_at_$H;W$$$^$9!#(B
>
> Camera.getInputStream()$B$NJ}$O!"(B
>
> int index = 0;
> int length = Camera.getImageLength(index)
> byte[] imgbuf = new byte[length];
> InputStream in = Camera.getInputStream(index);
> int offset = 0;
> for(;;) {
> int num = in.read(imgbuf, offset, length);
> if (num < 0) {
> imgbuf = null;
> break;
> }
> offset += num;
> length -= num;
> if (length == 0) {
> break;
> }
> }
> in.close();
>
> $B$G!"(Bimgbuf$BFb$K%P%$%HNs$,F~$k$H;W$$$^$9!#(B
>
> > $B$^$?!"%+%a%i%*%V%8%'%/%HFb$N2hA|$O%9%/%i%C%A%Q%C%I$KJ]B8$7$J$1$l$P$J$i(B
$B$J(B
> $B$$$N(B
> > $B$G$7$g$&$+!#(B
>
> $BC1$KI=<($9$k$_at_$1$J$i$=$NI,MW$O$J$$$H;W$$$^$9!#J]B8$7$?$$>l9g$O%P%$%HNs$r(B
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++
> From: <kurosaki.k_at_md.neweb.ne.jp>
> Date: 2002.11.29 12:34:28 Asia/Tokyo
> To: <java_at_gigahz.net>
> Subject: Re: [JavaHz:2265] i$B%"%W%j$N%+%a%i_at_)8f$K$D$$$F(B
> Reply-To: java_at_gigahz.net
>
> $B<,ED$G$9!#(B
> $B=oJ}$5$s!"JV?.$7$F$$$?$_at_$$$FBgJQ467c$7$F$*$j$^$9!#(B
> $BAaB.;n$7$F$_$^$7$?!#(B
> $B0J2<$NMM$J%3!<%I$K$7$^$7$?$,!"2hA|$OI=<($5$l$^$;$s$G$7$?!#(B
> $BBgJQ62=L$G$9$,!"$4;XE&$NDx$h$m$7$/$*4j$$$$$?$7$^$9!#(B
>
> import com.nttdocomo.opt.ui.*;
> import com.nttdocomo.ui.*;
> import java.io.*;
> import javax.microedition.io.*;
>
> public class Legend extends IApplication{
>
> public static MainCanvas canvas;
>
> public void start(){
> canvas = new MainCanvas();
> Display.setCurrent(canvas);
> canvas.exe();
> }
> }
>
> class MainCanvas extends Canvas{
> private static MediaImage mi;
> private static Image img;
> private static Camera cm;
>
> public MainCanvas(){
> setSoftLabel(Frame.SOFT_KEY_1,"$B=*N;(B");
> }
>
> public void exe(){
> Graphics g = getGraphics();
>
> try{
> cm.getCamera(1).takePicture();
> while(true){
>
> write();
> read();
> g.lock();
> g.setColor(Graphics.getColorOfName(Graphics.BLACK));
> g.fillRect(0,0,getWidth(),getHeight());
> g.drawImage(img,0,0);
> g.unlock(true);
>
> Thread.sleep(50);
> }
> }catch (Exception e){}
> }
> public void paint(Graphics g){}
>
> public void write(){
> int index = 0;
> try{
> int length = (int)cm.getCamera(1).getImageLength(index);
> byte[] imgbuf = new byte[length];
> InputStream in = cm.getCamera(1).getInputStream(index);
> int offset = 0;
> for(;;) {
> int num = in.read(imgbuf, offset, length);
> if (num < 0) {
> imgbuf = null;
> break;
> }
> offset += num;
> length -= num;
> if (length == 0) {
> break;
> }
> }
> in.close();
> OutputStream out = Connector.openOutputStream("scratchpad:///0");
> out.write(imgbuf);
> out.close();
> }catch (Exception e){}
> }
>
> public void read(){
> mi = MediaManager.getImage("scratchpad:///0");
> try{
> mi.use();
> }catch(Exception e){}
> img = mi.getImage();
> }
>
> public void processEvent(int type, int param){
> if(type==Display.KEY_PRESSED_EVENT){
> if(param==Display.KEY_SOFT1){
> IApplication.getCurrentApp().terminate();
> }
> }
> }
> }
>
>
> This mail was sent to address dc_at_gamelet.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
Received on Mon Dec 2 11:32:11 2002