问题描述
哪位好友有的话,能给发一下吗?万分感激!!!
解决方案
解决方案二:
baidu
解决方案三:
恩,搜搜吧
解决方案四:
google
解决方案五:
这个自己写吧现在不写以后你要干这行总会写的
解决方案六:
百度
解决方案七:
同样是大四的瓢过。。。。。。。
解决方案八:
都快6月了,还没搞定啊。。。
解决方案九:
明天我的论文就要交上去了……刚写好……
解决方案十:
我只有关于获取GPS经纬度信息的J2ME源代码。估计你在网上也找得到。写一下GPS的原理,如果是J2ME的话再介绍一下JSR179,然后讲一下应用前景什么的。importjavax.microedition.midlet.MIDlet;importjavax.microedition.lcdui.Alert;importjavax.microedition.lcdui.AlertType;importjavax.microedition.lcdui.Display;importjavax.microedition.lcdui.Displayable;publicclassLocationMIDletextendsMIDlet{privateLocationCanvascanvas;publicvoidstartApp(){canvas=newLocationCanvas(this);Display.getDisplay(this).setCurrent(canvas);}publicvoidpauseApp(){}publicvoiddestroyApp(booleanunconditional){}protectedvoidshowError(Stringtitle,Stringtext){Alertalert=newAlert(title,text,null,AlertType.ERROR);alert.setTimeout(Alert.FOREVER);alert.getType().playSound(Display.getDisplay(this));Displayablecurrent=Display.getDisplay(this).getCurrent();if(currentinstanceofAlert){}elseDisplay.getDisplay(this).setCurrent(alert);}}
importjavax.microedition.lcdui.*;importjavax.microedition.location.*;publicclassLocationCanvasextendsCanvasimplementsCommandListener,Runnable{privateLocationMIDletmidlet;privateCommandexitCommand;publicFormform;privateStringlatitudeString="Latitude:";privateStringlongitudeString="Longitude:";publicStringaltitudeString="Altitude:";privateThreadthread=null;privateFontfont;publicLocationCanvas(LocationMIDletmidlet){form=newForm("Location");this.midlet=midlet;exitCommand=newCommand("Exit",Command.EXIT,1);this.addCommand(exitCommand);this.setCommandListener(this);font=Font.getFont(Font.FACE_SYSTEM,Font.STYLE_PLAIN,Font.SIZE_LARGE);thread=newThread(this);thread.start();}publicvoidpaint(Graphicsg){//Clearsscreeng.setColor(255,255,255);g.fillRect(0,0,getWidth(),getHeight());//Drawsthestringstothescreeng.setColor(0,0,0);g.setFont(font);intheight=font.getHeight();g.setFont(Font.getFont(Font.FACE_SYSTEM,Font.STYLE_PLAIN,Font.SIZE_LARGE));g.drawString("LOCATION",0,0,Graphics.TOP|Graphics.LEFT);g.setFont(Font.getFont(Font.FACE_SYSTEM,Font.STYLE_BOLD,Font.SIZE_MEDIUM));g.drawString(latitudeString,0,2*height,Graphics.TOP|Graphics.LEFT);g.drawString(longitudeString,0,3*height,Graphics.TOP|Graphics.LEFT);g.drawString(altitudeString,0,4*height,Graphics.TOP|Graphics.LEFT);}protectedvoidkeyPressed(intkeyCode){}publicvoidcommandAction(Commandc,Displayabled){if(c==exitCommand){thread=null;midlet.notifyDestroyed();}}publicvoidrun(){while(true){try{Thread.sleep(0);askLocation();repaint();}catch(InterruptedExceptionie){}}}/***Getsthecoordinates,speedandcoursefromtheGPS.*/privatevoidaskLocation(){try{Criteriacriteria=newCriteria();LocationProviderlp=LocationProvider.getInstance(criteria);if(lp!=null){Locationl=lp.getLocation(300);if(l.isValid()){Coordinatesc=l.getQualifiedCoordinates();if(c!=null){doublelatitude=c.getLatitude();doublelongitude=c.getLongitude();floataltitude=c.getAltitude();latitudeString="Latitude:"+latitude;longitudeString="Longitude:"+longitude;altitudeString="Altitude:"+altitude;}}else{System.out.println("Locationisnotvalid!");}}else{System.out.println("LocationProvider=null!");}}catch(LocationExceptionle){//notabletoretrievelocationinformationSystem.out.println("LocationException:"+le.getMessage());}catch(InterruptedExceptionie){System.out.println("InterruptedException:"+ie.getMessage());}}}
解决方案十一:
大学啊。。。。
解决方案十二:
程序我也写出来了。我的毕业设计得了优秀,哈哈哈
解决方案十三:
大学啊。。。。