Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Compilazione

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2009, 03:03 PM
Junior Member
 
Join Date: Jul 2009
Posts: 11
Question Compilazione

Ho appena acquistato la versione completa di Basic4ppc.

Una domanda mi sorge spontanea: La compilazione è possibile solo dal pc desktop?

Mi trovo spesso in giro per lavoro e nel tempo perso mi dedico ai miei progetti sviluppati direttamente sul PPC.
Sarebbe utile poter compilare al volo e distribuire il .cab con le mie creazioni ad amici e colleghi anche quando non si ha un desktop a portata di mano.

Non è proprio possibile eseguire la compilazione direttamente sul device?
Inoltre quando l'applicazione lavora su chiavi di registro del device come si esegue il debug dal pc?
E' necessario ricreare le stesse key e value anche sul dektop?
I percorsi del tipo \My Documents\Image, che fanno riferimento a immagini grafiche per i controlli, come si simulano sul Desktop in modo che postando il sorgente dal ppc a questo non si abbiano errori di path?

Grazie a tutti per i suggerimenti.

Last edited by Firefox® : 07-07-2009 at 03:05 PM.
Reply With Quote
  #2 (permalink)  
Old 07-07-2009, 05:51 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Ciao Firefox®,

voglio provare a rispondere a le tue domande.

Quote:
Una domanda mi sorge spontanea: La compilazione è possibile solo dal pc desktop?
Si purtroppo! Per poter compilare sul PPC ci sarebbe bisogno del grande Framework.

Quote:
Inoltre quando l'applicazione lavora su chiavi di registro del device come si esegue il debug dal pc?
E' necessario ricreare le stesse key e value anche sul dektop?
Si, non è come con Visual Studio 2005/2008. La si puo esegiere il debug diretamente sul PPC.

Quote:
I percorsi del tipo \My Documents\Image, che fanno riferimento a immagini grafiche per i controlli, come si simulano sul Desktop in modo che postando il sorgente dal ppc a questo non si abbiano errori di path?
Tu devi lavorare sempre con i relativi path e in più assicurarti dove viene eseguito il programma.
Esempio con la variabile "cPPC":
if cPPC then
msgbox("Il programma viene eseguito sul Pocketpc")
else
msgbox("Il programma viene eseguito sul PC")
end if

Esempio con la variabile "AppPath":
ImagePath= AppPath & "\Icons"

Spero ti sia stato un poco di aiuto.


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #3 (permalink)  
Old 07-07-2009, 06:29 PM
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thumbs up

Enormemente d'aiuto!

In pratica quando come nel mio caso si sviluppa un'applicazione passando continuamente dal PPC al PC e vice versa conviene scrivere il codice in modo da caricare le risorse grafiche runtime così facendo si evita il problema da me riscontrato.

Non conoscevo ancora l'esistenza della variabile cPPC (uso Basic4ppc da 2 giorni! ).

Non vedo l'ora di condividere la mia prima elementare creazione!

Un'ultima cosa, non è possibile progettare Form per la risoluzione WVGA (480x800) dal PC?
Ho provato a cercare nel forum ma non ho trovato molte informazioni.

A presto e grazie per la tempestività.

Firefox®

Last edited by Firefox® : 07-07-2009 at 06:33 PM.
Reply With Quote
  #4 (permalink)  
Old 07-07-2009, 07:34 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,826
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Firefox,

Welcome to the B4PPC family.

Have a look at this thread: http://www.basic4ppc.com/forum/code-...urce-code.html for sharing the source code on the desktop and the device.

To develop for the 480/800 resolution I use in the IDE on the desktop a resolution of 240/400 and compile for the device with the Device (AutoScale) Exe option.
Another possibility would be to define in the desktop IDE the 480/800 resolution, the only problem with this is that the text in the controls will be displayed small.

Best regards an good luck.
__________________
Klaus
Switzerland
Reply With Quote
  #5 (permalink)  
Old 07-08-2009, 12:55 PM
Junior Member
 
Join Date: Jul 2009
Posts: 11
Default

Thank you Klaus,

Setting IDE screen resolution to 240x400 and compile with Auto Scale option is the best solution.

Goodbye
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0