Thursday, January 22, 2015

Doa Hari Jumaat

بسم الله الرحمن الرحيم. الحمد لله رب العالمين.
والصلاة و السلام على سيدنا محمد وعلى آله وأصحابه أجمع ين
 
Assalamualaikum. Salam pagi jumaat bersamaan 2 Rabiul akhir 1436H. Muga diberkati oleh Nya jua. Alhamdulillah. Ya Allah kami ini sering melakukan apa yg kami suka, mudahkanlah, juruskanlah dan kazimkanlah kami melakukan apa yg Engkau suka, bukan sesuka hati kami. Dan berikanlah kami kepuasan dan ketenangan dlm melakukan nya serta dijauhkan drpd penyakit2 hati yang boleh merosakkan dan merugikan kami. Sila baca surah alkahfe di hari jumaat yg mulia ini. Muga segala usaha kita mendapat berkat serta keredhaan dari Nya jua. In sya Allah. Aameen.

Doa hari Jumaat

Ya Allah Ya Tuhan kami, pada hari yg mulia ini, kami berdoa memohon keredhaanMu utk melaksanakan segala tanggungjawab yg telah diamanahkan. Bukakanlah pintu hati kami bagi menerima segala kefahaman, curahkanlah hidayahMu agar dapat kami jadikan sebaik-baik penghayatan.
Allahumma Ya Rahman Ya Rahim. Jadikanlah alQuran itu penyuluh hati kami, tunjukkan jln yg benar utk kami ikuti, jelaskan perkara yg bathil agar kami jauhi, corakkan akhlak kami dgn sifat-sifat mahmudah n lindungilah kami dari sifat-sifat mazmumah, sesungguhnya Engkau Tuhan Yg Maha Pengasih lagi Maha Penyayang.
Ya Allah Ya Ghaffar, kami memohon keampunan dari segala dosa kesalahan kami, dosa kedua ibubapa kami, anak isteri kami, kaum keluarga kami n seluruh mukminin mukminat muslimin muslimat di mana saja mereka berada.
Selawat n salam ke atas junjungan kami Nabi Muhammad SAW serta para sahabatnya.
Segala puji pujian hanya utkMu Ya Allah Ya Rabbal 'Alamin.

Wednesday, January 21, 2015

B4A Tutorial - Designer Scripts & AutoScale Tutorial

Attached you find a pdf tutorial about Designer Scripts & AutoScale.
It includes Erels Designer Scripts Tutorial and a new AutoScale Tutorial.
It's an extract of two chapters from the next Beginner's Guide edition.

Three examples are explained:
1) a simple example with only one layout file and one layout variant AutoScaled. Showing also the influence of the rate factor.

2) the same example but with two layout variants portrait and landscape AutoScaled.

3) a more advanced example with several activites showing:

  • Main Main screen with an image and button to select different examples.
    The image size is adapted to the screen size.
  • Setup screen With a specific layout.
    This example uses the setup layout of the GPSExample program.
    The setup is a ScrollView with a Panel and several smaller Panels
    on it. Depending on the screen width there are one or two columns.
  • About screen with a specific layout.
  • DBWebView Database shown in a WebView using DBUtils.
    With a new DBUtils module allowing to set the TextSize property.
  • DBScrollView Database shown in a ScrollView.
    The views are scaled in the code.
  • Keyboard a numeric keyboard example.
    The key views are added in the code and scaled using the
    Scale module.
  • Scale module allows to scale views added in the code based on the same equations as those used in the Designer Script AutoScale.
    Functions:
    • GetScale Gets the scale with the Rate value set with SetScaleRate
    • SetScaleRate(Rate) Sets the Rate value
    • GetDevicePhysicalSize Gets the physical size of the device in inches.
    • ScaleView(View) Scales the given View with the current scale
    • ScaleAll(Activity) Scales all the views of the given Activity or Panel
      with all their child views.
    • SetReferenceLayout allows to set another reference layout than the standatd one.
      Example: Scale.SetReferenceLayout(800, 1280, 1)
      sets 800 * 1280 * 1 layout as the reference layout
      In this case the ScaleRate has no influence.
    • The module supports also ScrollView2D, but if you don't use it you should comment out the relevant lines in ScaleView and ScaleViewDS routines.
Click HERE for full details...

How to Run a B4A App in the Background?

Android handles applications differently than Windows.
Once your activity is not in the foreground, it is paused and cannot execute any code.
See this tutorial: http://www.basic4ppc.com/forum/basi...87-android-process-activities-life-cycle.html

Services are used instead of activities to handle tasks while the application is in the background. Basic4android doesn't support services yet. The Services concept is pretty complicated. Much more than creating an activity.
I believe that support for services will be available soon.
 
Click HERE for full details...

Tuesday, January 20, 2015

Basic4Android and LibGDX

All versions offer the same features, except for the additional amount of upgrades you get with the Enterprise and Site Licence editions. Upgrades are regularly released and you will be emailed with these when they are released. Information on new upgrades will also be posted here.
  • A Simple but powerful tool
  • IDE and programming language 100% focused on Android development
  • Compiles to native bytecode. No runtime libraries are required. Created APK files are exactly the same as APK files created with Java / Eclipse
  • Performance is similar to applications written with Java
  • Event driven programming language similar to Visual Basic with support for objects and code modules
  • No need to write any XML files
  • Highly extensible with support for custom Java libraries
  • Large, active and friendly community of developers. Over 20,000 registered developers!
  • The only available true WYSIWYG visual editor for Android. The visual editor supports multiple screens and resolutions
  • Easily create sophisticated layouts with the powerful designer scripts feature.New!
  • All Android phones and tablets starting with Android 1.6 and up to 4.0 are supported
  • Modern IDE with autocomplete, built-in documentation, internal index New! and other advanced features
  • Powerful step-by-step debugger
  • Large set of documentation with a custom online search engine and offline search engine tools
  • Built-in code obfuscation
  • Supports all Android core features including:
    • SQL databases including encrypted databases
    • GPS
    • Home screen widgets and live wallpapers
    • Background services and broadcast listeners
    • Bluetooth (serial ports)
    • Phone features: phone calls, sms, contacts, call logs and others
    • USB host and accessory modes New!
    • Web services
    • Camera
    • XML, JSON and CSV
    • Views animations
    • Multitouch gestures
    • NFC New!
    • Networking (TCP, UDP, FTP, SMTP, POP3 and SMB/CIFS New!)
    • Push notifications (C2DM)
    • Text to speech and voice recognition
    • AdMob ads and other ads platforms
    • OpenGL
    • Graphics and charts
    • Sensors
    • Files I/O
    • Integrate with services such as: Parse, Google services, Twitter, Facebook and others
    • Android Market In-App Billing service New!
    • Objects serialization
    • Sip / Voip New!
    • And many more…
Click HERE for full details...

Backbone.js

When working on a web application that involves a lot of JavaScript, one of the first things you learn is to stop tying your data to the DOM. It's all too easy to create JavaScript applications that end up as tangled piles of jQuery selectors and callbacks, all trying frantically to keep data in sync between the HTML UI, your JavaScript logic, and the database on your server. For rich client-side applications, a more structured approach is often helpful.



With Backbone, you represent your data as Models, which can be created, validated, destroyed, and saved to the server. Whenever a UI action causes an attribute of a model to change, the model triggers a "change" event; all the Views that display the model's state can be notified of the change, so that they are able to respond accordingly, re-rendering themselves with the new information. In a finished Backbone app, you don't have to write the glue code that looks into the DOM to find an element with a specific id, and update the HTML manually — when the model changes, the views simply update themselves.



Philosophically, Backbone is an attempt to discover the minimal set of data-structuring (models and collections) and user interface (views and URLs) primitives that are generally useful when building web applications with JavaScript. In an ecosystem where overarching, decides-everything-for-you frameworks are commonplace, and many libraries require your site to be reorganized to suit their look, feel, and default behavior — Backbone should continue to be a tool that gives you the freedom to design the full experience of your web application.



Click HERE for full details...

Basic4Android - Beginners' Guide

B4A - The simplest way to develop real-world, native Android apps!


B4A includes all the features needed to quickly develop any type of Android app.
B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others.
Together with B4i you can now easily develop applications for both Android and iOS.

Download B4A Trial Version
B4A can run in two modes: local compilation and remote compilation.



Local compilation mode is faster and has more options such as working with the emulator, USB debugging, unattended installations and others.
Remote compilation mode (only available in the trial version) is simpler to get started with.






Click HERE for full details...

HTML5 - Best IndexedDB Wrappers

I am just exploring various options for IndexedDB Wrapper and i've come across quite a few options as follows:



  • YDN
  • JQuery IndexedDb Plugin 
  • IDB Wrapper
  • DB.js




Click HERE for full details...