Curve 9380: Return from character input to QWERTY keyboard
Hello,
I own BlackBerry Curve 9380 smartphone (all touch, without physical keyboard).
I have the following issue:
Consider you're writing a text message, when you need a question mark you're tapping on the "&% 123" button in the left-down corner and selecting the question mark. In order to return back to the original QWERTY keyboard you need to tap on the button again, now "ABC".
Is that possible to automate the return to the QWERTY keyboard from character input keyboard after tapping the "space" button?
Keyboard is returning automatically back only if you will tap on the "Enter" button.
Adding the "space" button would be a great enhancement for touch-based devices featuring BlackBerry 7 OS.
Thank you.
P.S. I didn't find any better medium for my concern than this forum, if somebody knows how to reach directly to software engineering group, please let me know.
You still have the constructor declared inside the main method! :-)
public class TrySimpleVectorWithKeyboardInput
public static void main(String[] args)
public TrySimpleVectorWithKeyboardInput()
{}Move the two lines to outside the main. It should look something like this..
import java.util.*;
import java.io.*;
public class TrySimpleVectorWithKeyboardInput {
public TrySimpleVectorWithKeyboardInput() {
// constructor code goes here
public static void main(String[] args) {
Vector names = new Vector();
FormattedInput kb = new FormattedInput();
for (int i = 0; i < 5; i++) {
try {
System.out.print("Enter a name ");
names.add( kb.readString());
} catch (InvalidUserInputException e) {
System.out.println("InvalidUserInputException thrown. \n" + e.getMessage());
System.out.println("\nThe names in the vector are:\n ");
Iterator j = names.iterator();
while (j.hasNext()) {
System.out.println(j.next());
}
Similar Messages
-
How to return a word from an input string in random
iam trying to return a single word from an input string.the word has to be selected in random.can u help?
this is wat i tried so far
private String findKeyWord(String remark)
String[] input= stringobj.trim().toLowerCase().split(" "); // am splitting the string here and it gets stored in string array//
return ????? //i should return any one word in the string in random//
}array[random.nextInt(array.length)]
-
How to get Locale from Character.UnicodeBlock
Hi All,
For Ex: I enter Japanese language (Hiragana/KATAKANA characters) in the text field. My expected result is Locale: 'ja' (this is belongs to Japaneses language)
How to get locale value from Character.UnicodeBlock.
or we have any other way to get locale value from "input locale" means what ever language( Japanese /Chinese/other languages supported by java) i enter in the text box and i want to identify the locale of the text.
This is the example program i found in the forum.
import java.awt.BorderLayout;
import java.nio.charset.Charset;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
public class TestSBC {
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
new TestSBC().createGUI();
private void createGUI() {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
final JLabel messageLabel = new JLabel("Here comes a message",
JLabel.CENTER);
final JTextField textField = new JTextField();
textField.getDocument().addDocumentListener(new DocumentListener() {
@Override
public void changedUpdate(DocumentEvent e) {
checkEvent(e);
@Override
public void insertUpdate(DocumentEvent e) {
checkEvent(e);
@Override
public void removeUpdate(DocumentEvent e) {
checkEvent(e);
private void checkEvent(DocumentEvent e) {
messageLabel
.setText(validateText(textField.getText()) ? "KATAKANA"
: "other");
frame.add(messageLabel, BorderLayout.PAGE_END);
frame.add(textField, BorderLayout.CENTER);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
private boolean isKatakana(char c) {
Character.UnicodeBlock unicodeBlock = Character.UnicodeBlock.of(c);
System.out.println("unicodeBlock : " + unicodeBlock);
boolean isKatakana = Character.UnicodeBlock.KATAKANA
.equals(unicodeBlock);
System.out.println(isKatakana);
return isKatakana;
private boolean validateText(String text) {
char[] chars = text.toCharArray();
for (char c : chars) {
if (isKatakana(c)) {
return true;
return false;
Thanks for your help...Hi Joerg22
Thanks for your response.
Can you please tell me ...is there any another ways to find the "input locale" value in java.
There are 3 important locales in Windows: Input Locale, User Locale and System Locale and all 3 can be different.
That is you can have System Locale = English, Input Locale = Chinese and User Locale = Japanese
This might represent a Chinese user working in japan on an English PC.
In this example i want to identify Input Locale means "Chinese "
Thanks for your help. -
Japanese character input issues
We have someone developing a chat client in flash that
connects to an FMS server. Typing works fine in English, but if you
try to type Japanese, it spits the characters out one at a time
into the chat window after pressing return. This makes chat very
difficult and extremely long for Japanese folks:
L
I
K
E
T
H
I
S
Above is how Japanese would show up. I should mention that
this happens only on OSX and not Windows. Anybody have any ideas on
how to fix this? Many thanks!Sanjay.
You can do that by specifying EUC-JP for input-charset element of
weblogic.xml. See the following link for more detail.
http://e-docs.bea.com/wls/docs61///////webapp/weblogic_xml.html#1031571
For Oracle to work with EUC charset, you need to set the environment
variable of NLS_LANG=japanese_japan.JA16EUC. You don't need to write the
code conversion method.
Hope this helps,
Reiji
"sanjay" <[email protected]> wrote in message
news:3c046d39$[email protected]..
>
I want to save the Japanese character input from html forms into theOracle Database
using the euc character set. Most of the users use Windows PC, so I guessmost
of the input would be using s-jis or MS932.
Do I need to write the character code conversion methods from s-jis and/orMS932
to euc and vice versa or does the weblogic server do the conversioninternally
Thanks.
Sanjay. -
Switch b/w edge and GSM on Blackberry Curve 9380
Hey few days back I bought Blackberry Curve 9380. Basically I'm new to Blackberry Universe.
Generally when I'm at home, I prefer to use GSM only coz I have Wi-Fi. But when I swtich off data usage, connect to Wi-Fi, the Browser and other internet applications say that they are unable to internet.
Also guide me how to switch b/w GSM & edge network...
Solved!
Go to Solution.First Your need BIS - Blackberry Internet Serives subscription from Vodafone IN, this is the unique feature which seperates other mobile devices from Blackberry.
Browser, Facebook,twitter and all other apps require BIS subscription. Only appworld will work in Wi-Fi mode.
You can change the Browser settings to Hotspot to work in wifi, but i think in OS 7 it will detect automatically.
if you have BIS subscription 3G is free. -
I have a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
USE [Runtime]
GO
/****** Object: UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt] Script Date: 06/11/2013 08:47:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)
-- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
AS
BEGIN
-- Crea el Cursor
DECLARE cursorHora CURSOR
READ_ONLY
FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
-- Declaracion de variables locales
DECLARE @produc_opt_hora int
DECLARE @produc_opt_parc int
DECLARE @nsacos int
DECLARE @time_parc datetime
-- Inicializamos VARIABLES
SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
-- Abre y se crea el conjunto del cursor
OPEN cursorHora
-- Comenzamos los calculos
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
/************ BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR ************/
WHILE (@@fetch_status <> -1)
BEGIN
IF (@@fetch_status = -2)
BEGIN
-- Terminamos la ejecucion
BREAK
END
-- REALIZAMOS CÁLCULOS
SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
-- INSERTAMOS VALORES EN LA TABLA
INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
-- Avanzamos el cursor
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
END
/************ FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR ***************/
-- Cerramos el cursor
CLOSE cursorHora
-- Liberamos los cursores
DEALLOCATE cursorHora
RETURN
ENDYou can search the forums for that error message and find previous discussions - they all boil down to the same problem. Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime. In general,
this works in any version of sql server if the runtime settings are correct for the format of the string data. The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers.
I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion. It may not be in the function you posted, since that function also executes other functions.
You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all.
Tibor's site -
Hi everyone,
I am doing simple task in Visual C++ and I am using PCI-6221(37 pin).
Basically, I want to send same signal from 'analog input' to 'analog output'
at the same time (almost), to make it real-time application.
Can someone please provide me sample program.
I would appreciate if you could provide me with the good tutorial which explains
step by step everything about programing NI-DAQmx for C/C++.
Best Regards,
Khassan
Solved!
Go to Solution.This is my code in C++, you can optimize it if it looks too messy. This code reads signal from analog input and outputs it through analog output.
To make this code work additional include directories and library directories must be added from NI.
I hope it helps someone.
#include <stdio.h>
#include <conio.h>
#include "NIDAQmx.h"
#include <math.h>
#define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
int main(int argc, char *argv[])
int32 error=0;
TaskHandle taskHandleRead=0,taskHandleWrite=0;
int32 read=0;
float64 dataRead[1000];
char errBuffRead[2048]={'\0'};
char errBuffWrite[2048]={'\0'};
bool32 done=0;
int32 written;
DAQmxErrChk (DAQmxCreateTask("",&taskHandleRead));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleRead,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleRead,"",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,0));
DAQmxErrChk (DAQmxCreateTask("",&taskHandleWrite));
DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandleWrite,"Dev1/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleWrite,"ai/SampleClock",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));
DAQmxErrChk (DAQmxStartTask(taskHandleRead));
DAQmxErrChk (DAQmxStartTask(taskHandleWrite));
while( !done && !_kbhit() )
DAQmxErrChk (DAQmxReadAnalogF64(taskHandleRead,1,10,DAQmx_Val_GroupByScanNumber,dataRead,1000,&read,NULL));
DAQmxErrChk (DAQmxWriteAnalogF64(taskHandleWrite,read,0,10.0,DAQmx_Val_GroupByChannel,dataRead,&written,NULL));
_getch();
Error:
if( DAQmxFailed(error) )
DAQmxGetExtendedErrorInfo(errBuffRead,2048);
DAQmxGetExtendedErrorInfo(errBuffWrite,2048);
if( taskHandleRead!=0 )
DAQmxStopTask(taskHandleRead);
DAQmxClearTask(taskHandleRead);
if( taskHandleWrite!=0 )
DAQmxStopTask(taskHandleWrite);
DAQmxClearTask(taskHandleWrite);
if( DAQmxFailed(error) ){
printf("DAQmx Error: %s\n",errBuffRead);
printf("DAQmx Error: %s\n",errBuffWrite);
printf("End of program, press Enter key to quit\n");
getchar();
return 0; -
Conversion error, from character set 4102 to character set 4103
Hi,
We've developed a JCO server(in Java) with an ABAP report the function provided by the JCO server.
MetaData:
static {
repository = new Repository("SMSRepository");
fmeta = new JCO.MetaData("ZSMSSEND");
fmeta.addInfo("TO", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("CONTENT", JCO.TYPE_CHAR, 255, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("RETN", JCO.TYPE_CHAR, 255, 0, 0, JCO.EXPORT_PARAMETER, null);
repository.addFunctionInterfaceToCache(fmeta);
Server parameters:
Properties prop = new Properties();
prop.put("jco.server.gwhost","shaw2k07");
prop.put("jco.server.gwserv","sapgw01");
prop.put("jco.server.progid","JCOSERVER01");
prop.put("jco.server.unicode","1");
srv = new SMSServer(prop,repository);
If we run JCO server in both my client machine(from developer studio) and in the WAS machine(stand alone Java program), everything is ok. In the Abap side, the SM59 unicode test return the destination is an unicode system, and the ABAP report call the function can run smoothly.
But we package this JCO server to a web application and deploy to WAS, problem occured. The SM59 unicode test still say the destination is an unicode system. But the ABAP report runs with an ABAP DUMP:
Conversion error between two character set
RFC_CONVERSION_FIELD
Conversion error "RETN" from character set 4102 to character set 4103
A conversion error occurred during the execution of a Remote Function
Call. This happened either when the data was received or when it was
sent. The latter case can only occur if the data is sent from a Unicode
system to a non-Unicode system.
I read the jrfc.trc log, it shows it receives data in unicode 4103(that's ok), but send data in unicode 4102(that's the problem).4102 is UTF-16 Big Endian and 4103 UTF-16 Little Endian. Our system is windows on intel 32 aritechture, so based on Note 552464, it should be 4103.
Why it sends data (Java JCO server send output parameter to ABAP) in 4102?????
What's the problem??? Thank you very much!!
Best Regards,
Xiaoming Yang
Message was edited by:
Xiaoming YangHello Experts,
Any replies on this?
I am also getting a similar kind of error.
Do you have any idea on this?
Thanks and Best Regards,
Suresh -
Character input disaplay after " " when show up in af:outputFormatted
When I input text after "<" in text field and save it in database varchar2 column. It is found that all character disappear after "<" when I retrieve it with af:outputFormatted. If I retrieve it with outputText. It can show up properly.
For example, I input <abc> in the text field. I then the retrieve character from database. All the text <abc> disappear.Sorry for typo in title: it should read as "character input disappear after "<" when show up in <af:outputFormatted
If I input <abc>, then, the text <abc> show up properly
hence, what can be done to fix it if I just input <abc> instead of <abc> -
Getting an integer from an input box
the title pretty much covers it, i basically need to assign an integer value given from and input box to a variable.
i have search for example of this, but only found examples for returning strings, i tried to adapt it, but i couldnt figure it out.
can anyone please give me an exampel of a simple (very simple) input box that does this?
thank you[http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#inputVerification|http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#inputVerification]
In the input verifier example there is a lot of code there to digest but really all it is doing is parsing the number in the field before the value of the field is updated. If there is a ParseException thrown then the user input is rejected and the value of the text field doesn't change.
You could implement this more simply by catching the ParseException and popping up the box again until the user types a valid entry.
e.g:
boolean validInput = false
while (!validInput) {
try {
//pop up and parse input msg etc
validInput = true;
catch (ParseException e) {
//msg to user -> invalid input
}Obviously not as nice but it gets the job done. We'll call this the 300m Lorus solution.
Edited by: Edward_Kimber on Nov 23, 2008 8:22 AM -
Weird character input in textfield when hitting CTRL+somekeys
Hi,
Whenever an input textfield has the focus, some ctrl+something key combinations (for example ctrl+s, ctrl+o) produce some weird character input, that is, these weird characters (certainly non-ascii) appear in the textfield as if you had typed them.
This is obviously a bug, but is there any workaround? How can I prevent these combinations of keys to produce any text input at all? (without removing the focus from the textfield)?
This only happens in Flash Player (and Adobe AIR): I've never seen those character appear in any application as a result of ctrl+S, ctrl+O or any key combination (except alt+<numerical character code>)
Thanks in advance
m.I'm not entirely sure that the issue we're facing is a font issue - I've managed to set a font for the TextField in question that can handle Japanese as well as English characters (in this case I'm using the Bitstream Cyberbit font), following guidelines in an article on the subject:
http://www.onjava.com/pub/a/onjava/2001/04/12/internationalization.html
If I enter the Japanese characters in a window of a native application, and then copy & paste into the TextField in my Java applet, they appear when using this font, and it seems like the applet can interpret them OK (in IE at least, still haven't tested in NS as yet) - the problem is that when entering the characters directly into the applet using the Win2k IME facility, they only appear as question marks.
Damian. -
Datas return from Blob data type in Sqlite
i am using sqlitejdbc-v053.jar through get SQLITE BLOB data type data. But i cannot data return from Blob type.
Error will be display from :
not implemented by SQLite JDBC driver
and point out error line
blob = rs.getBlob("NGP_REPDATA");
{try {
Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection("jdbc:sqlite:test.DB");
stmt = conn.createStatement();
rs = stmt.executeQuery("SELECT * FROM sometable");
System.out.println("==============");
while(rs.next()) {
blob = rs.getBlob("blobDATA");//
is = blob.getBinaryStream();
catch(SQLException e) {
e.printStackTrace();
}}any sample or solution pls give
sqlite with BLOB sample there pls give linkThere explicitly tells you that the JDBC driver that you are using will not do the method that you are calling.
Thus you cannot use that method.
There is another way to extract blobs which involves using a stream. You can search for that.
If your blobs are actually short and only have character data then you might be able to use getString() as well. -
Japanese character input.
I want to save the Japanese character input from html forms into the Oracle Database
using the euc character set. Most of the users use Windows PC, so I guess most
of the input would be using s-jis or MS932.
Do I need to write the character code conversion methods from s-jis and/or MS932
to euc and vice versa or does the weblogic server do the conversion internally
Thanks.
Sanjay.Sanjay.
You can do that by specifying EUC-JP for input-charset element of
weblogic.xml. See the following link for more detail.
http://e-docs.bea.com/wls/docs61///////webapp/weblogic_xml.html#1031571
For Oracle to work with EUC charset, you need to set the environment
variable of NLS_LANG=japanese_japan.JA16EUC. You don't need to write the
code conversion method.
Hope this helps,
Reiji
"sanjay" <[email protected]> wrote in message
news:3c046d39$[email protected]..
>
I want to save the Japanese character input from html forms into theOracle Database
using the euc character set. Most of the users use Windows PC, so I guessmost
of the input would be using s-jis or MS932.
Do I need to write the character code conversion methods from s-jis and/orMS932
to euc and vice versa or does the weblogic server do the conversioninternally
Thanks.
Sanjay. -
Was the Curve 9380 just pulled from the market? (or just my carrier handing me a line?)
I have been trying to get this phone. My carrier thought they had one, turns out that one was cracked on the battery cover so they couldn't give it to me. They tried to order another one, & were told it was pulled from the market.
What is with that? Blackberry finally comes out with a competative,phone for the average person, & wham-o they pull it.
Makes it difficult to support this Canadian product.
If this has been pulled, will there be a replacement? I've been looking for a Blackberry, all-touch screen front (no keypad), with wi-fi (not requiring the data plan). Difficult to get! The Touch all touch, required the data plan.Thanks for that info., much appreciated. That would explain it. My carrier is Bell.
My contract runs out this yr. As of last week, Telus was able to get one in for me ... if that is still the case when my contract is up, I plan to switch to Telus. It's an awesome phone for my needs.. I seriously hope Bell brings it back!
I have to wonder if the ability to use wifi on this phone, thus; having a regular mobile contract w/o data plan, is a reason they dropped the phone. They wouldn't make as much money on it. Which is too bad because if they put the phone out there, a lot of people will eventually go for the data plan even if they don't take it, at first. In the long run, it would be good.
I have been trying for mths to go Blackberry but it just isn't working in my favoure. I want a touch front (same as the 9380), & no data plan (use wifi). This is the first touch front, that had wifi & didn't require a data plan. No one wants to sell that sort of package anymore (without data). Too bad... but I just can't put $50 or $80 or $100 or more per mth., into a phone plan which is what a data plan would cost me.
bummer -
Hi there,
Would like to upgrade my Curve 9380 with latest 7.1 OS.
Currently reside in France with Orange as my supplier. Do you know if it's available and if so how do i download it.
ThanksHello,
The simplest way is to, on a PC (you cannot do this on MAC):
1) Uninstall, from your PC, any BB OS packages
2) Make sure you have the BB Desktop Software already installed
http://us.blackberry.com/support/downloads/download_sites.jsp
3) Download and install, to your PC, the BB OS package you desire:
http://us.blackberry.com/support/downloads/download_sites.jsp
4) If that OS package is from a carrier other than the carrier for which your BB was originally manufactured, then delete, on your PC, all copies of VENDOR.XML (there will be at least one, perhaps 2)
5) Launch the Desktop Software and connect your BB...the software should offer you the OS package you installed to your PC
Don't forget to backup.
If you are on MAC, you are limited to only your carriers sanctioned OS packages...but can still use any levels that they currently sanction. See this procedure:
KB19915How to perform a clean reload of BlackBerry smartphone application software using BlackBerry Desktop Software
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Maybe you are looking for
-
Just got a new iMac my itunes will not sync music to iPod
just got new imac itunes will not sync music to ipod
-
I am trying to burn a disk but my computer is not recognizing the CD for buring. It reads disks but it is not making a disk image so i am not able to drag content onto the disk. I get a message saying asking me to name the disk but after that it just
-
Slow start up and shut down of iMac
My four months old iMac 21-inch is getting slower, which is evident from longer time requiring for start up as well as shut down. I understand that Mac OS has built in facility for taking care of such maintenance tasks as defrag, disk clean, which we
-
Problem during creating delivary and PGI
Hello Friends, I am facing a problem in creating the Delivary document. The error is "date in item 000010 of document does not exist" Please help me out. With Regards Sharan
-
Cannot connect to itunes store how do I fix this
cannot connect to itunes store how do I fix this