dodevelopnshare


4 Comments

Spy Software for Blackberry 10

As per the fundamentals of Blackberry 10
https://developer.blackberry.com/cascades/documentation/dev/fundamentals/

It was assumed that there is no market for spy software  for Blackberry Smartphones running on OS 10.

But, from below link –
http://devblog.blackberry.com/2013/04/blackberry-jam-unplugged-headless-apps/

it is clear that Blackberry is providing developers –  Background Services framework which allows developers to bundle a separate process with their application to run in the background without a UI.

We can also check the above with release roadmap of BB NDK – http://developer.blackberry.com/native/downloads/roadmap/

So, what does it mean?

It means that apps will no longer require an Active Frame to be open in order to function, That’s what we need to have a spy software.

http://www.berryreview.com/2013/05/20/watch-the-blackberry-jam-session-on-background-services-for-blackberry-10-headless-apps/

I am going to try my hands on above certainly… keep an eye..!!

Advertisements


1 Comment

MultiLevel ListView Demo

This is a sample project to explain about multi level list views in our BB 10 Cascades project. I have used some static JSON files which are bundled inside the project as assets. ListViews displayed here are list of albums, list of songs under an album, and details of a song. This project do not use C++ files for accessing assets, parsing JSON data and populate them at runtime in Screens using QML Only.

  • Create a new Blackberry project in your BB NDK IDE. Select Project Type->”Cascades Application”-> “Standard Empty Project”. Enter Project Name
  • As our application will use some special libraries, we need to add following lines in our Projects “.pro” file

APP_NAME = MultiLevelListViewDemo

CONFIG += qt warn_on debug_and_release cascades

TARGET.CAPABILITY += SwEvent

LIBS += -lbbdevice

LIBS += -lbbsystem

include(config.pri)

Here are some Screenshots of how Screen flows –

I have used 2 Custom Components here:

  1. HeaderTitle – Used as title bar for Screens
  2. MyListItem – Used as List Item for First Level ListView.

Also, you can download the project from here and “Import”->Existing Projects into Workspace->Select archive file->Check Project->Finish.

Download Link : http://www.mediafire.com/download.php?8ql6i92qzwi0pe5


9 Comments

Blackberry Push Technology

What is Push Technology?

http://en.wikipedia.org/wiki/Push_technology

An Overview of Push Technology in Blackberry Platform

https://developer.blackberry.com/services/push/

Some important information related to Push APIs

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Push-SDK-using-low-level-APIs/td-p/1173007

Basically, we need a Client-Side Application tolisten for Push Messages and a Server-side Application to fire Push Messages.

Server Side Push Application 

private static String password = “Your password here”;

private static String targetURL = “https://pushapi.eval.blackberry.com/mss/PD_pushRequest”;

private static final String APP_ID = “your app id here”;

public static void main(String[] args) throws PushSDKException, BadMessageException, UnauthorizedException {

org.apache.commons.codec.binary.Base64 b6;

//net.rim.pushsdk.acknowledgement.NotificationProcessorServiceImpl nsi;

IdGenerator idGenerator = new IdGeneratorImpl();

List<String> addresses = new ArrayList<String>();

String data = “this is a test message – 2”;

System.out.println(“Data is: ” + data);

addresses.add(“your PIN here”);

PushMessageControl pushMessageControl = new PushMessageControl(idGenerator, APP_ID, addresses);

Content content = new TextContent(data);

PapService papService = new net.rim.pushsdk.pap.PapServiceImpl();

PushSDKProperties properties = getBBProperties();

HttpClientImpl client = new HttpClientImpl();

client.setPushSDKProperties(properties);

papService.setHttpClient(client);

papService.setPushSDKProperties(properties);

PushResponse response = papService.push(APP_ID, password, APP_ID, pushMessageControl, content);

System.out.println(response.getDescription());

}

private static PushSDKProperties getBBProperties() {

PushSDKProperties p = new PushSDKPropertiesImpl();

p.setPpgAddress(targetURL);

p.setHttpIsPersistent(false);

p.setHttpConnectionTimeout(60000);

p.setHttpReadTimeout(120000);

p.setUsingXmlParserDtdValidation(false);

return p;

}

Client Side Application

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample/ta-p/693857

Blackberry 10 JAM Delhi and Blackberry 10 Dev Alpha

Leave a comment

After a long time, I am back with lots of things to share.. As being an Indian I love sweets and so will like to Shri Ganesh with some delicious experience..!!

 Blackberry 10 JAM World  Tour – Delhi

Registration –  I registered for the event, and was very curious to explore the BB10 insights. Also, I have applied for the most awaiting and game changing BB10 Dev alpha Device.

Qualified for BB 10 DEV Alpha Device – I was at office on my desk wrapping up all the tasks, as I was on leave tomorrow and today lots of things were to finish. Suddenly, I checked my mail and was cheered up to have a mail from RIM (4:51 PM) mentioning, that I have been qualified for the device. It was so special when everybody in my office started congratulating me for this..!!

Event – This event held at Delhi on July 4th, 2012.  It was an event organized by RIM for the persons having interest in Blackberry Platforms which was hosted by the Blackberry Developers Relation Team. When I reached there at 8:30 there were CEO’s, Managers, Business Associates, Developers and many more all around with Blackberry developer Relations Team. It was nice to be there..!! 🙂

Event was kick started by Sarim Aziz,  Head of Developers Relations, Asia Pacific RIM. Annie Mathew, Head of Alliances for India highlighted the important contribution of thousands of Indian developers to build apps for entire globe. Alec Saunders then took the stage after an amazing number, and the energy in the room went boom..!! Krishnadeep Baruah, RIM India’s Head of Marketing, who took the devs through the BlackBerry 10 UX and Next, Alan Wong giving the audience a taste of the BlackBerry 10 architecture. It wasn’t just talk, as Alan showcased some interesting demos and samples. It was a whole day event and was quite interesting to have some wonderful facts..!!

This slideshow requires JavaScript.

At the end of the event, Qualified developers were rewarded with Blackberry 10 dev Alpha Device, Of course I also was lucky to count among them 🙂

It was an excellent event. Thanks RIM for organizing such events..!!

This gallery contains 15 photos


1 Comment

Chanakya Neeti

“The biggest guru-mantra is: never share your secrets with anybody. It will destroy you.”

“Do not inhabit a country where you are not respected, cannot earn your livelihood, have no friends, or cannot acquire knowledge.”

“As soon as the fear approaches near, attack and destroy it.”

“Before you start some work, always ask yourself three questions- Why am I doing it, What the results might be and Will I be successful. Only when you think deeply and find satisfactory answers to these questions, go ahead.”

“There is some self-interest behind every friendship. There is no friendship without self-interests. This is a bitter truth.”

“A person should not be too honest. Straight trees are cut first and honest people are screwed first.”

“Purity of speech, of the mind, of the senses, and of a compassionate heart is needed by one who desires to rise to the divine platform.”

“Treat your kid like a darling for the first five years. For the next five years, scold them. By the time they turn sixteen, treat them like a friend. Your grown up children are your best friends.”

“The fragrance of flowers spreads only in the direction of the wind. But the goodness of a person spreads in all direction.”

About Books :

“Education is the best friend. An educated person is respected everywhere. Education beats the beauty and the youth.”

“Books are as useful to a stupid person as a mirror is useful to a blind person.”


3 Comments

Cost less Motivational Factors

What is motivation?

What I have understood most is,  Its an inner force which driven our energy level to achieve our goals.  I have read somewhere that –

“Its not getting Someone to do what you want them to do, but it is getting someone to want to do what you want them to do.”

When I asked somebody few days ago, What are factors for Motivation? The replies to me were :

bag, cash, money icon

“Salary / Increment / Wages / Bonus / Incentives / Perks “

Above factors are influencing, but in my opinion these stands lower to some other factors if ranked. 

(1.) Caring Relationship – “We are recognized on our special days like birthdays, anniversaries etc.”

(2.) Recognition of Achievement – “We are recognized and appreciated when we do a good job or suggest any new idea”.

(3.) Pride – We are pride to be a part of the organization.

(4.) Growth / Advancement Opportunities – “We are trained with new and emerging trends. We are given the opportunity to change our responsibilities and positions.”

So, what one can do :

(1.)  Break the gap. Talk to your people!!

(2.)  Do not ignore good work done. Give a Pat on the back. An appreciation email to your Team Member can work a lot. Also, you can hang a flag on his/her work with 3 little words – “Good Work Done.”

face, funny, happy, smiley, yahoo icon

(3.)  There is no problem in getting little personnel. Discuss their personal good and bad events. We all are humans and everyone see light and dark.

(4.)   Help them in getting successful, not pulling them down. Failure of employees in their duties is definitely failure for the company itself..!!

These factors can make employees  walk with you extra miles over and over!!