Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Delta11 <delta11natolibero@gmail.com> |
| Newsgroups | it.comp.java |
| Subject | Re: gestione eccezioni |
| Date | Sat, 29 Oct 2016 09:56:28 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 45 |
| Message-ID | <nv1kmj$nc4$1@dont-email.me> (permalink) |
| References | <nutcq9$64m$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-15; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sat, 29 Oct 2016 07:56:05 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="bd4d83b29f1b95b23a793342d2b702b5"; logging-data="23940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DZzZPrDcoQAXKfhi3uBaK" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
| In-Reply-To | <nutcq9$64m$1@gioia.aioe.org> |
| Cancel-Lock | sha1:u4jVaV3CsgyzQcxO0+XGTiqqtS4= |
| Xref | csiph.com it.comp.java:8993 |
Show key headers only | View raw
On 10/27/2016 07:17 PM, Filippo wrote:
> Alla ricerca del codice da correggere mi sono imbattuto in questa parte
> in cui dovrebbe verificare se si è in presenza di un tablet o no
> attraverso le istruzioni try/catch:
>
> public static boolean isTablet()
> {
> boolean bol1 = false;
> try
> {
> System.currentTimeMillis();
> String str = Tablet.GetDeviceID();
> System.currentTimeMillis();
> if (str != null)
> {
> boolean bol2 = str.equalsIgnoreCase("");
> if (!bol2) {}
> }
> else
> {
> bol1 = true;
> }
> return bol1;
> }
> catch (Exception localException)
> {
> localException.printStackTrace();
> }
> return false;
> }
>
> Qualcuno potrebbe spiegarmi che operazioni fa?
> Cosa fa se str! è null?
> E che c'entra currenttimemillis con getdeviceid?
> Grazie
ma che linguaggio di merda, il linguaggio piu di merda che c'è!
incredibile!
--
Ripristinare il trattato di Vienna è imperativo!
W IL LOMBARDO-VENETO.
W LA LIBERTA'.
ONORE E GLORIA A S.M. CARLO D'ASBURGO-LORENA!!!
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
gestione eccezioni Filippo <Filippetto45@gmail.com> - 2016-10-27 19:17 +0200
Re: gestione eccezioni "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2016-10-27 20:34 +0200
Re: gestione eccezioni "CarMas" <carmas@jpknet.com> - 2016-10-28 14:35 +0200
Re: gestione eccezioni "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2016-10-28 15:29 +0200
Re: gestione eccezioni "ciccio" <21669invalid@mynewsgate.net> - 2016-10-28 14:25 +0000
Re: gestione eccezioni Filippo <Filippetto45@gmail.com> - 2016-10-28 22:07 +0200
Re: gestione eccezioni "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2016-10-29 09:32 +0200
Re: gestione eccezioni Filippo <Filippetto45@gmail.com> - 2016-10-30 09:23 +0100
Re: gestione eccezioni Delta11 <delta11natolibero@gmail.com> - 2016-10-29 09:56 +0200
Re: gestione eccezioni "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2016-10-29 10:08 +0200
Re: gestione eccezioni "Alessandro Carraro (JUG Padova)" <carraro.alessandro@gmail.com> - 2016-10-30 01:13 -0700
Re: gestione eccezioni "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2016-10-30 10:05 +0100
csiph-web