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

B4A Eseguire particolare azione da codice

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2011, 01:57 PM
Newbie
 
Join Date: Mar 2011
Posts: 7
Default B4A Eseguire particolare azione da codice

Sto cercando e ricercando ma non ne vengo a capo.

Ho scritto un programma in B4A che gira su smartphone all'interno di una Lan.
Ho anche implementato un controllo sulla disponibilità di nuova versione del
programma stesso, dove nel caso esista, faccio eseguire il download del package dal server sulla Lan e lo memorizzo su sd esterna.

Il tutto funziona egregiamente, ma come fare per far eseguire l'applicazione .apk appena scaricata dal server, per far si che venga installata al posto della vecchia versione ?
Qualcuno sa aiutarmi ?
grazie.

Enrico.
Reply With Quote
  #2 (permalink)  
Old 04-02-2011, 01:27 PM
Newbie
 
Join Date: Mar 2011
Posts: 7
Default

Risolto con :

Code:
Sub Aggiorna
Dim Target as string
Dim Intent1 as intent

  Target = 
File.DirRootExternal &  "/NewPack.apk"
  Intent1.Initialize(Intent1.ACTION_VIEW, Target)
  Intent1.SetComponent(
"com.android.packageinstaller/.PackageInstallerActivity")
  
StartActivity(Intent1 )

End Sub
Grazie a.... me
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Eseguire su Windows ed eseguire su Dispositivo ghale Italian Forum 2 07-25-2009 10:00 AM


All times are GMT. The time now is 12:26 AM.


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